version 1.77, 2006/07/27 15:27:34
|
version 1.78, 2007/01/23 16:50:11
|
Line 52 class ECHO_basis:
|
Line 52 class ECHO_basis:
|
security.declarePublic('getImageTag') |
security.declarePublic('getImageTag') |
|
|
management_page_charset="utf-8" |
management_page_charset="utf-8" |
|
isVisible = True |
|
|
def manage_addECHO_locale(self,lang,title,label,text=None,content_type=None,RESPONSE=None): |
def manage_addECHO_locale(self,lang,title,label,text=None,content_type=None,RESPONSE=None): |
return ECHO_collection.manage_addECHO_locale(self,lang,title,label) |
return ECHO_collection.manage_addECHO_locale(self,lang,title,label) |
Line 138 class ECHO_basis:
|
Line 139 class ECHO_basis:
|
|
|
return content_html(self,type) |
return content_html(self,type) |
|
|
|
def getIsVisible(self): |
|
"""return if object and all parents are visible""" |
|
|
|
# if object is not visible return False |
|
if hasattr(self,'isVisible'): |
|
if not self.isVisible : return False |
|
|
|
# else if parent of object is not ECHO_root, ECHO_basis or None |
|
if not self.aq_parent.meta_type in ['ECHO_root','ECHO_basis',None] : |
|
return self.aq_parent.getIsVisible() |
|
|
|
# else return True |
|
return True |
|
|
|
def setIsVisible(self, isVisible): |
|
""" set object attribute isVisible""" |
|
self.isVisible = isVisible |
|
|
|
def getAttributeIsVisible(self): |
|
""" return object attribute isVisible""" |
|
if hasattr(self,'isVisible'): |
|
return self.isVisible |
|
return True |
|
|
def getTitle(self): |
def getTitle(self): |
"""title""" |
"""title""" |
if hasattr(self,'getLanguage'): |
if hasattr(self,'getLanguage'): |