Author: dmeyer
Date: Tue Oct 24 18:56:31 2006
New Revision: 1927

Modified:
   trunk/beacon/src/item.py

Log:
handle no image for items without parent

Modified: trunk/beacon/src/item.py
==============================================================================
--- trunk/beacon/src/item.py    (original)
+++ trunk/beacon/src/item.py    Tue Oct 24 18:56:31 2006
@@ -111,13 +111,12 @@
             return self._beacon_media.get('volume.read_only')
 
         if key in ('image', 'thumbnail'):
-            image = ''
-            if self._beacon_data.has_key('image'):
-                image = self._beacon_data['image']
-            if not image and self._beacon_parent:
-                # This is not a good solution, maybe the parent is not
-                # up to date. Well, we have to live with that for now.
-                image = self._beacon_parent.get('image')
+            image = self._beacon_data.get('image')
+            if not image:
+                if self._beacon_parent:
+                    # This is not a good solution, maybe the parent is not
+                    # up to date. Well, we have to live with that for now.
+                    image = self._beacon_parent.get('image')
                 if not image:
                     return None
             if key == 'image':

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to