summaryrefslogtreecommitdiff
path: root/contrib/keepass2pass.py
diff options
context:
space:
mode:
authorErik Mackdanz <erikmack@gmail.com>2014-03-20 02:00:13 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2014-03-20 02:26:16 -0600
commit9be03f7601428c68a40bd457c000329e2ad41314 (patch)
tree71f1d2f78354b6a6db18f3c736782182e3e755ea /contrib/keepass2pass.py
parent2bac6dd4bdc7f666057df1943d80d7c0cf31efd8 (diff)
downloadpass-9be03f7601428c68a40bd457c000329e2ad41314.tar.gz
pass-9be03f7601428c68a40bd457c000329e2ad41314.tar.bz2
pass-9be03f7601428c68a40bd457c000329e2ad41314.zip
Keepass import should include root-level entries
Repro steps: 1. In KeePass, add some entries as children of the root node 2. Export the KeePass to foo.xml 3. 'keepass2pass.py -f foo.xml' Expect: all entries imported Actual: root-level entries are skipped
Diffstat (limited to '')
-rwxr-xr-xcontrib/keepass2pass.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/keepass2pass.py b/contrib/keepass2pass.py
index 16764bd..80a2ad9 100755
--- a/contrib/keepass2pass.py
+++ b/contrib/keepass2pass.py
@@ -90,6 +90,7 @@ def import_passwords(xml_file, root_path=None):
xml_tree = ElementTree.XML(text)
root = xml_tree.find('Root')
root_group = root.find('Group')
+ import_group(entries,root_group,'')
if root_path is None: root_path = root_group.find('Name').text
groups = root_group.findall('Group')
for group in groups:
td colspan='5' class='logmsg'> Suggested-by: Matthieu Weber <mweber@free.fr> 2014-03-22clip: rename SELECTION to X_SELECTIONJason A. Donenfeld2-6/+6 2014-03-22Version bump ahead of release.Jason A. Donenfeld1-1/+1 2014-03-22Makefile: do not use recursion and organizeJason A. Donenfeld12-9/+7 2014-03-22clip: suppress kill errorJason A. Donenfeld2-3/+3 2014-03-22clip: do not race on osxJason A. Donenfeld1-5/+5 2014-03-22clip: use pkill instead of procJason A. Donenfeld1-1/+1 2014-03-20Keepass import should include root-level entriesErik Mackdanz1-0/+1 Repro steps: 1. In KeePass, add some entries as children of the root node 2. Export the KeePass to foo.xml 3. 'keepass2pass.py -f foo.xml' Expect: all entries imported Actual: root-level entries are skipped 2014-03-20keepassx2pass: friendly title fieldPhilip Chase1-1/+24 This patch removes several special characters while attempting to preserve as much meaning in the filename as possible. These changes are made to the KeepassX title before it is used as a file password store filename: - Spaces between words in file names are replaced with camelCasing. - The characters \ | ( ) are each replaced with a hyphen. - Trailing hypens are removed. - @ is replaced with "At" - ' is removed