aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lesana/command.py4
-rwxr-xr-xscripts/tellico2lesana2
2 files changed, 3 insertions, 3 deletions
diff --git a/lesana/command.py b/lesana/command.py
index c2bdf28..3c72e68 100644
--- a/lesana/command.py
+++ b/lesana/command.py
@@ -116,7 +116,7 @@ class Edit(Command):
def main(self):
collection = self.collection_class(self.args.collection)
- entries = collection.entries_from_short_uid(self.args.eid)
+ entries = collection.entries_from_short_eid(self.args.eid)
if len(entries) > 1:
return "{} is not an unique eid".format(self.args.eid)
if not entries:
@@ -151,7 +151,7 @@ class Show(Command):
def main(self):
collection = self.collection_class(self.args.collection)
- entries = collection.entries_from_short_uid(self.args.eid)
+ entries = collection.entries_from_short_eid(self.args.eid)
if len(entries) > 1:
return "{} is not an unique eid".format(self.args.eid)
if not entries:
diff --git a/scripts/tellico2lesana b/scripts/tellico2lesana
index 4bd0810..a24415e 100755
--- a/scripts/tellico2lesana
+++ b/scripts/tellico2lesana
@@ -128,7 +128,7 @@ class T2L():
# import data
for xe in xml_collection.findall('tellico:entry', NS):
data = {
- 'uid': xe.attrib['id']
+ 'eid': xe.attrib['id']
}
for xfield in xe.getchildren():
field_name = xfield.tag.replace(