Diff for /ImageArchive/ImageArchive.py between versions 1.72 and 1.73

version 1.72, 2005/11/23 17:41:04 version 1.73, 2005/12/21 08:54:11
Line 1599  class ImageCollection(Folder, Persistent Line 1599  class ImageCollection(Folder, Persistent
                   
                   
     security.declareProtected('View','index_html')      security.declareProtected('View','index_html')
     def index_html(self,fn=None):      def index_html(self,fn=None,generic=None):
         """main template collection"""          """main template collection"""
           
         if fn:          if fn:
Line 1618  class ImageCollection(Folder, Persistent Line 1618  class ImageCollection(Folder, Persistent
                       
             overview=self.ZopeFind(self,obj_ids=['overview_selected.html'])              overview=self.ZopeFind(self,obj_ids=['overview_selected.html'])
                           
             if overview:              if overview and (generic is None):
                 return overview[0][1]()                  return overview[0][1]()
             else:              else:
                 pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','overview_selected.zpt')).__of__(self)                  pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','overview_selected.zpt')).__of__(self)
Line 1639  class ImageCollection(Folder, Persistent Line 1639  class ImageCollection(Folder, Persistent
                           
   
         overview=self.ZopeFind(self,obj_ids=['overview.html'])          overview=self.ZopeFind(self,obj_ids=['overview.html'])
         if overview:          if overview and (generic is None):
             return overview[0][1]()              return overview[0][1]()
         elif hasattr(self,'templates'):          elif hasattr(self,'templates'):
             pt=self.templates.imgcoll_main.__of__(self)              pt=self.templates.imgcoll_main.__of__(self)

Removed from v.1.72  
changed lines
  Added in v.1.73


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>