Skip to content

Commit

Permalink
Replace generic <item>-tag with <file> in xml-output
Browse files Browse the repository at this point in the history
  • Loading branch information
clausjuhl committed Jan 3, 2023
1 parent c61d2d7 commit b4c679b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Der arbejdes med releases af .exe-filer.
### Releases
Pyinstaller virker (indtil videre!) med følgende kald:

`pyinstaller --onefile --windowed --name smartarkivering .\smart_client\main.py`
`poetry run pyinstaller --onefile --windowed --name smartarkivering .\smart_client\main.py`

Kaldet genererer en enkelt smartarkivering.exe fil, som ikke åbner et konsolvindue.

Expand All @@ -25,6 +25,13 @@ Fra smartarkivering.dk's forside kan der linkes til samme formular, men modtagen
- [Aalborg](https://selvbetjening.aarhuskommune.dk/da/content/smartarkivering?archive=aal)
- [Aarhus](https://selvbetjening.aarhuskommune.dk/da/content/smartarkivering?archive=aar)

Eller via det kommende smartarkivering.dk;

- [Kolding](https://aarhusstadsarkiv.github.io/smart-web/form?archive=kol)
- [Aalborg](https://aarhusstadsarkiv.github.io/smart-web/form?archive=aal)
- [Aarhus](https://aarhusstadsarkiv.github.io/smart-web/form?archive=aar)


**Man kan have alle felter præ-udfyldte, hvis man vil!**

Når man følger linket, bliver man redirected til Mitid, og efter login, videre til formularen. Man kan også benytte links'ne direkte fra andre sider/facebook-opslag m.v. Man skal bare huske at informere brugeren om, at de først bliver sendt til Mitid.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "smart-client"
version = "0.1.5"
version = "0.1.6"
description = "Klient til Smartarkivering.dk-submissions"
authors = ["Claus Juhl Knudsen <[email protected]>"]
include = ["pyproject.toml"]
Expand Down
2 changes: 1 addition & 1 deletion smart_client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def save_submission_info(submission: dict, format: str, out_dir: Path) -> None:
if format == "json":
json.dump(submission, f, ensure_ascii=False, indent=4)
else:
xml = dicttoxml.dicttoxml(submission, custom_root="submission", attr_type=False)
xml = dicttoxml.dicttoxml(submission, custom_root="submission", attr_type=False, item_func=lambda _: 'file')
f.write(parseString(xml).toprettyxml())


Expand Down

0 comments on commit b4c679b

Please sign in to comment.