- try : posOfPhoto = selection.index(photouid)
- except ValueError : pass
- options['backToContextUrl'] = '%s?b_start:int=%s' % (selectionUrl, posOfPhoto/bsize*bsize)
- photoPath = list(photo.getPhysicalPath())
- photoPath.insert(portalDepth, 'selectioncontext')
- options['lastBcUrl'] = toUrl(photoPath)
- meth = getattr(photo, 'photo_view_ajax_template')
- return meth(req, resp, **options)
+ try : posOfPhoto = selection.index(photouid)
+ except ValueError : pass
+ options['backToContextUrl'] = '%s?b_start:int=%s' % (selectionUrl, posOfPhoto/bsize*bsize)
+ photoPath = list(photo.getPhysicalPath())
+ photoPath.insert(portalDepth, 'selectioncontext')
+ options['lastBcUrl'] = toUrl(photoPath)
+ meth = getattr(photo, 'photo_view_ajax_template')
+ return meth(req, resp, **options)