version 1.67, 2006/11/14 09:47:20
|
version 1.70, 2008/11/20 10:44:24
|
Line 358 class zogiLib(Folder):
|
Line 358 class zogiLib(Folder):
|
return {} |
return {} |
|
|
|
|
def zogilibPath(self, otherbase=None): |
def zogilibPathOLD(self, otherbase=None): |
"""returns an URL to the zogiLib instance""" |
"""returns an URL to the zogiLib instance""" |
url = self.REQUEST['URL1'] |
url = self.REQUEST['URL1'] |
# should end with "/" |
# should end with "/" |
Line 373 class zogiLib(Folder):
|
Line 373 class zogiLib(Folder):
|
url += '/' |
url += '/' |
return url |
return url |
|
|
|
def zogilibPath(self, otherbase=None): |
|
"""returns an URL to the zogiLib instance""" |
|
url = self.absolute_url() |
|
# should end with "/" |
|
if len(url) > 0 and url[-1] != '/': |
|
url += '/' |
|
if type(otherbase) is str: |
|
url += otherbase |
|
else: |
|
url += self.basePath |
|
# should still end with "/" |
|
if len(url) > 0 and url[-1] != '/': |
|
url += '/' |
|
return url |
def zogilibAction(self, action, otherbase=None): |
def zogilibAction(self, action, otherbase=None): |
"""returns a URL with zogilib path and action""" |
"""returns a URL with zogilib path and action""" |
url = self.zogilibPath(otherbase) |
url = self.zogilibPath(otherbase) |
Line 464 class zogiLib(Folder):
|
Line 478 class zogiLib(Folder):
|
# make shure to remove unused parameter |
# make shure to remove unused parameter |
del self.REQUEST.SESSION['scalerDiv'] |
del self.REQUEST.SESSION['scalerDiv'] |
|
|
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt/zogilib_img_div')).__of__(self) |
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt/img_div')).__of__(self) |
return pt() |
return pt() |
|
|
def index_html(self): |
def index_html(self): |
Line 901 def manage_addZogiLibPageTemplate(self,
|
Line 915 def manage_addZogiLibPageTemplate(self,
|
id = 'main_%s'%layout |
id = 'main_%s'%layout |
self._setObject(id, zogiLibPageTemplate(id)) |
self._setObject(id, zogiLibPageTemplate(id)) |
ob = getattr(self, id) |
ob = getattr(self, id) |
ob.pt_edit(open(os.path.join(package_home(globals()),'zpt/main_%s.zpt'%layout)).read(),None) |
ob.pt_edit(open(os.path.join(package_home(globals()),'zpt/main_%s.zpt'%layout)).read(),'text/html') |
if title: |
if title: |
ob.pt_setTitle(title) |
ob.pt_setTitle(title) |
try: |
try: |