version 1.15, 2004/04/18 08:58:28
|
version 1.16, 2004/04/28 15:30:42
|
Line 21 class ZSQLExtendFolder(Persistent, Impli
|
Line 21 class ZSQLExtendFolder(Persistent, Impli
|
"""Folder""" |
"""Folder""" |
meta_type="ZSQLExtendFolder" |
meta_type="ZSQLExtendFolder" |
|
|
|
def content_html(self): |
|
"""template fuer content""" |
|
|
|
try: |
|
obj=getattr(self,"ZSQLBibliography_template") |
|
return obj() |
|
except: |
|
pt=PageTemplateFile('Products/ZSQLExtend/zpt/ZSQLBibliography_template_standard.zpt').__of__(self) |
|
pt.content_type="text/html" |
|
return pt() |
|
|
|
|
|
def getLabel(self): |
|
"""getLabe""" |
|
try: |
|
return self.label |
|
except: |
|
return "" |
|
|
|
def getDescription(self): |
|
"""getLabe""" |
|
try: |
|
return self.description |
|
except: |
|
return "" |
|
|
|
manage_options=Folder.manage_options+( |
|
{'label':'Main Config','action':'changeZSQLExtendForm'}, |
|
) |
|
|
|
def changeZSQLExtendForm(self): |
|
"""change folder config""" |
|
pt=PageTemplateFile('Products/ZSQLExtend/zpt/changeZSQLExtendForm.zpt').__of__(self) |
|
return pt() |
|
|
|
|
|
def changeZSQLExtend(self,label,description,REQUEST=None): |
|
"""change it""" |
|
|
|
self.label=label |
|
self.description=description |
|
|
|
if REQUEST is not None: |
|
return self.manage_main(self, REQUEST) |
|
|
def formatAscii(self,str,url=None): |
def formatAscii(self,str,url=None): |
"""ersetze ascii umbrueche durch <br>""" |
"""ersetze ascii umbrueche durch <br>""" |
Line 325 class ZSQLExtendFolder(Persistent, Impli
|
Line 369 class ZSQLExtendFolder(Persistent, Impli
|
value=urllib.unquote(q.split("=",1)[1]) |
value=urllib.unquote(q.split("=",1)[1]) |
except: |
except: |
value="" |
value="" |
|
#print "Hi",name[0:3],q |
if name[0:3]==iCT+"op": |
if name[0:3]==iCT+"op": |
op=value |
op=value |
|
|
Line 442 class ZSQLExtendFolder(Persistent, Impli
|
Line 487 class ZSQLExtendFolder(Persistent, Impli
|
self.REQUEST.SESSION[storename]['searchFields']=searchFields |
self.REQUEST.SESSION[storename]['searchFields']=searchFields |
|
|
#print "Q",query |
#print "Q",query |
return self.search(var=query) |
return self.ZSQLQuery(query) |
|
|
|
def ZSQLQuery(self,query): |
|
"""query""" |
|
return self.search(var=query) |
|
|
def ZSQLSearch(self): |
def ZSQLSearch(self): |
"""To be done""" |
"""To be done""" |
Line 643 class ZSQLExtendFolder(Persistent, Impli
|
Line 691 class ZSQLExtendFolder(Persistent, Impli
|
|
|
manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals()) |
manage_addZSQLExtendFolderForm=DTMLFile('ZSQLExtendFolderAdd', globals()) |
|
|
def manage_addZSQLExtendFolder(self, id, title='', |
def manage_addZSQLExtendFolder(self, id, title='', label='', description='', |
createPublic=0, |
createPublic=0, |
createUserF=0, |
createUserF=0, |
REQUEST=None): |
REQUEST=None): |
Line 660 def manage_addZSQLExtendFolder(self, id,
|
Line 708 def manage_addZSQLExtendFolder(self, id,
|
ob.title=title |
ob.title=title |
self._setObject(id, ob) |
self._setObject(id, ob) |
ob=self._getOb(id) |
ob=self._getOb(id) |
|
setattr(ob,'label',label) |
|
setattr(ob,'description',description) |
|
|
checkPermission=getSecurityManager().checkPermission |
checkPermission=getSecurityManager().checkPermission |
|
|
Line 683 def manage_addZSQLExtendFolder(self, id,
|
Line 733 def manage_addZSQLExtendFolder(self, id,
|
|
|
|
|
|
|
class ZSQLBibliography(ZSQLExtendFolder): |
class ZSQLBibliography(Folder,ZSQLExtendFolder): |
"""Bibliography""" |
"""Bibliography""" |
meta_type="ZSQLBibliography" |
meta_type="ZSQLBibliography" |
def getLabel(self): |
def getLabel(self): |
Line 724 class ZSQLBibliography(ZSQLExtendFolder)
|
Line 774 class ZSQLBibliography(ZSQLExtendFolder)
|
if REQUEST is not None: |
if REQUEST is not None: |
return self.manage_main(self, REQUEST) |
return self.manage_main(self, REQUEST) |
|
|
manage_options=ZSQLExtendFolder.manage_options+( |
manage_options=Folder.manage_options+( |
{'label':'Edit Biblio','action':'changeZSQLBibliographyForm'}, |
{'label':'Main Config','action':'changeZSQLBibliographyForm'}, |
) |
) |
|
|
|
|