- b = uidh.getBrain(uid)
- size = b.getThumbnailSize
- size = {'width':int(size['width']/2.0), 'height':int(size['height']/2.0)}
-
- className = selDict.has_key(uid) and 'selected' or ''
- if uid == photouid :
- className = ('%s displayed' % className).lstrip()
- posOfPhoto = i
-
- relPhotoPath = '/'.join(b.getPath().split('/')[portalDepth:])
- href = '%s/lightboxcontext/%s' % (lightboxUrl, relPhotoPath)
-
- d = {'src': '%s/getThumbnail' % b.getURL()
- ,'href': href
- ,'thumbSize': size
- ,'title' : b.Title
- ,'className': className
- , 'index': i
- }
- infos.append(d)
+ b = uidh.getBrain(uid)
+ size = b.getThumbnailSize
+ size = {'width':int(size['width']/2.0), 'height':int(size['height']/2.0)}
+
+ className = selDict.has_key(uid) and 'selected' or ''
+ if uid == photouid :
+ className = ('%s displayed' % className).lstrip()
+ posOfPhoto = i
+
+ relPhotoPath = '/'.join(b.getPath().split('/')[portalDepth:])
+ href = '%s/lightboxcontext/%s' % (lightboxUrl, relPhotoPath)
+
+ d = {'src': '%s/getThumbnail' % b.getURL()
+ ,'href': href
+ ,'thumbSize': size
+ ,'title' : b.Description
+ ,'className': className
+ ,'displayed' : uid == photouid
+ , 'index': i
+ }
+ infos.append(d)