--- ECHO_content/VLPExtension.py 2005/03/10 15:46:59 1.44 +++ ECHO_content/VLPExtension.py 2005/06/08 07:07:27 1.46 @@ -358,9 +358,10 @@ class VLP_subcollection(ECHO_collection) for item in self.ZSQLSimpleSearch("select * from vl_literature where volumeid like '%s'"%self.id): manage_addECHO_link(self,item.reference,item.titlerefdisplay,item.titlerefdisplay) + def index_html(self): """erzeuge darstellung""" - + if hasattr(self,'subCollection_template.html'): return getattr(self,'subCollection_template.html')() @@ -430,6 +431,7 @@ class VLP_collection(ECHO_collection): def updateCollection(self,RESPONSE=None): """liest verzeichnisse aus dem pfad und legt sie dann als objekte in den ordner""" + files=os.listdir(self.vlp_basis) for fileName in files: @@ -442,7 +444,8 @@ class VLP_collection(ECHO_collection): RESPONSE.write("got: %s\n"%fileName) genObj=getattr(self,fileName) - genObj.createIndexFile() + if hasattr(genObj,'createIndexFile'): + genObj.createIndexFile() self.generateSubCollections()