Summary: | Exported account template cannot be imported again | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Thomas Baumgart <tbaumgart> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | ralf.habacker, rexkarz00 |
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kmymoney/229570f64cc6dff6a4882cf81ad17adb347074e2 | Version Fixed In: | 4.8.1,5.0.0 |
Bug Depends on: | |||
Bug Blocks: | 347037 |
Description
Thomas Baumgart
2012-01-03 07:54:14 UTC
~/.kde4/share/apps/kmymoney/templates/<country> is already scanned by current code, so creating this directory (any existing country will do as long as it is either in format 'xx' or 'xx_xx', I tried here with de_DE) and dropping the file there allows KMyMoney to pick it up and display the entry in the import dialog under the selected country. Tried this: Created a .kmy file. Manually added some accounts. Did a File->Export->Template to: ~/.kde4/share/apps/kmymoney/templates/us/baseline-template-experiment.kmt Created a new kmymoney file Attempted File->import->Account Template selected "United States of America" It could not find the template Further, manual examination of the exported file did not contain anything looking like the accounts I expected to be exported. Here's the file: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE KMYMONEY-TEMPLATE> <kmymoney-account-template> <title/> <shortdesc/> <longdesc/> <accounts> <account type="12" name=""/> <account type="13" name=""/> </accounts> </kmymoney-account-template> My environment: Xubuntu 12.04 KMyMoney 4.6.3 from the Ubuntu PPA: deb http://ppa.launchpad.net/claydoh/kmymoney2-kde4/ubuntu precise main Git commit 229570f64cc6dff6a4882cf81ad17adb347074e2 by Ralf Habacker. Committed on 06/10/2016 at 15:48. Pushed by habacker into branch '4.8'. Export templates into kmymoney default templates save location. On importing templates kmymoney also looks in the default templates save location for template files which makes it able to reimport exported templates without any manual interaction like moving file to a only by root accessable path. The currently exported template does not have any title or description which may be entered before exporting through an export options dialog or wizard. REVIEW:129107 M +3 -1 kmymoney/kmymoney.cpp http://commits.kde.org/kmymoney/229570f64cc6dff6a4882cf81ad17adb347074e2 |