version 1.8, 2006/04/06 16:49:14
|
version 1.9, 2006/04/07 09:35:38
|
Line 39 class BasketBasis(OrderedFolder):
|
Line 39 class BasketBasis(OrderedFolder):
|
|
|
security=ClassSecurityInfo() |
security=ClassSecurityInfo() |
|
|
|
def content_html(self,type): |
|
"""generische ausgabe des objectes als html""" |
|
if hasattr(self,type+"_template"): |
|
obj=getattr(self,type+"_template") |
|
return obj() |
|
else: |
|
pt=PageTemplateFile(os.path.join(package_home(globals()),'zpt','%s_template_standard.zpt'%type)).__of__(self) |
|
pt.content_type="text/html" |
|
return pt() |
|
|
def checkPermission(self,modus): |
def checkPermission(self,modus): |
"""check permission""" |
"""check permission""" |
if modus=='open': |
if modus=='open': |