--- ZSQLExtend/ZSQLExtend.py 2004/07/13 17:41:37 1.25 +++ ZSQLExtend/ZSQLExtend.py 2004/07/19 17:31:02 1.26 @@ -606,10 +606,10 @@ class ZSQLExtendFolder(Persistent, Impli limit="1" newRangeStart=int(self.REQUEST.SESSION[storename]['rangeStart'])+int(limit) except: - limit=0 + limit=1 newRangeStart=0 - if newRangeStart>self.REQUEST.SESSION[storename]['count']: + if newRangeStart>=self.REQUEST.SESSION[storename]['count']: #newRangeStart=self.REQUEST.SESSION[storename]['count']-1 return "" @@ -637,7 +637,7 @@ class ZSQLExtendFolder(Persistent, Impli if query[0]=="_" : query[0]="-" if query.split("=")[0].lower()=="-skip": - print "d", newRangeStart + skipFound=1 query="-skip=%i"%newRangeStart newquery.append(query) @@ -925,6 +925,16 @@ class ZSQLBibliography(Folder,ZSQLExtend else: return "" + def getMetaDataXML2(self): + """crate index meta""" + + fn=os.path.splitext(self.REQUEST['fn'])[0]+"." + self.REQUEST['fn']=fn + + pt=PageTemplateFile('Products/ZSQLExtend/zpt/record2.xml').__of__(self) + pt.content_type="text/xml" + return pt() + def getMetaDataXML(self): """crate index meta""" pt=PageTemplateFile('Products/ZSQLExtend/zpt/record.xml').__of__(self) @@ -942,6 +952,7 @@ class ZSQLBibliography(Folder,ZSQLExtend ret+="""\n"""%(link,metalink) return ret+"\n" + manage_addZSQLBibliographyForm=DTMLFile('ZSQLBibliographyAdd', globals())