--- ECHO_content/VLPExtension.py 2007/06/28 18:37:49 1.59 +++ ECHO_content/VLPExtension.py 2007/07/24 09:11:46 1.61 @@ -145,7 +145,7 @@ def manage_addSendMailForm(self, id, toA class VLP_essay(Folder): - """classe für VLP essays""" + """classe fr VLP essays""" meta_type="VLP_essay" @@ -263,6 +263,12 @@ class VLP_essay(Folder): retstr=url+"?p="+str(int(pagenum)+1) return retstr + def lastURL(self,pagenum,url): + # teste ob performance ok, sonst in variable + pages=len(self.ZopeFind(self,obj_metatypes=['DTML Document','File'])) + + return url+"?p="+str(pages) + def previousURL(self,pagenum,url): if int(pagenum)-1 > 0: @@ -505,10 +511,10 @@ class VLP_collection(ECHO_collection): except: error=sys.exc_info()[0:2] RESPONSE.write("

(ERROR (%s): %s %s)

\n"%(fileName,error[0],error[1])) - errorsTXT+="

File not created:%s "+"(ERROR: %s %s)

"%error + errorsTXT+="

File not created:%s (ERROR: %s %s)

"%(fileName,error[0],error[1]) errorsTXT+=self.generateSubCollections() - errorsTXT+="/n" + errorsTXT+="\n" RESPONSE.write(errorsTXT) if RESPONSE is not None: RESPONSE.redirect('manage_main')