Hi Varun, Am Mi den 28. Mär 2007 um 14:34 schrieb Varun Hiremath: > Thanks for the report. I could reproduce it. But, I don't know how to > fix this, so I have forwarded it upstream. I am waiting for their > response.
I debugged the problem a bit. flickrfs try to get a not existent attrib named originalformat. I did a small patch to not fix the error finally but do a workaround that work. Gruß Klaus -- Klaus Ethgen http://www.ethgen.de/ pub 2048R/D1A4EDE5 2000-02-26 Klaus Ethgen <[EMAIL PROTECTED]> Fingerprint: D7 67 71 C4 99 A6 D4 FE EA 40 30 57 3C 88 26 2B
diff -Nur /usr/share/pycentral/flickrfs/site-packages/flickrfs/flickrapi.py /tmp/flickrfix/flickrapi.py
--- /usr/share/pycentral/flickrfs/site-packages/flickrfs/flickrapi.py 2007-03-27 14:11:51.000000000 +0200
+++ /tmp/flickrfix/flickrapi.py 2007-03-29 00:08:09.000000000 +0200
@@ -108,7 +108,10 @@
def __getitem__(self, key):
"""Retrieve a node's attribute from the attrib hash."""
- return self.attrib[key]
+ if self.attrib.has_key(key):
+ return self.attrib[key]
+ else:
+ return ''
# Modified here: add a couple of methods to make it even easier to handle errors.
# Mod by: R. David Murray <[EMAIL PROTECTED]>
diff -Nur /usr/share/pycentral/flickrfs/site-packages/flickrfs/transactions.py /tmp/flickrfix/transactions.py
--- /usr/share/pycentral/flickrfs/site-packages/flickrfs/transactions.py 2007-02-12 18:36:49.000000000 +0100
+++ /tmp/flickrfix/transactions.py 2007-03-29 00:08:09.000000000 +0200
@@ -329,7 +329,8 @@
info = {}
info['id'] = photo['id']
info['title'] = photo['title'].replace('/', '_')
- info['format'] = photo['originalformat']
+ #info['format'] = photo['originalformat']
+ info['format'] = 'jpg'
info['dupload'] = photo['dateupload']
info['dupdate'] = photo['lastupdate']
info['perms'] = perms
signature.asc
Description: Digital signature

