Package ZenWidgets :: Module Portlet :: Class Portlet
[hide private]
[frames] | no frames]

Class Portlet

source code

Products.ZenModel.ZenModelRM.ZenModelRM --+
                                          |
                                         Portlet

A wrapper for a portlet javascript source file that can include metadata such as a name, a title, a description and permissions.

Portlets should not be instantiated directly. They should only be created by a PortletManager object.

Instance Methods [hide private]
 
__init__(self, sourcepath, id='', title='', description='', preview='', permission=ZEN_COMMON) source code
 
_getSourcePath(self) source code
 
check(self) source code
 
_read_source(self) source code
 
get_source(self, debug_mode=False) source code
Class Variables [hide private]
  source = ''
  meta_type = 'Portlet'
  portal_type = 'Portlet'
  _relations = "portletManager", ToOne(ToManyCont, "Products.Zen...
  _properties = {'id': 'title', 'type': 'string', 'mode': 'w'}, ...
Class Variable Details [hide private]

_relations

Value:
"portletManager", ToOne(ToManyCont, "Products.ZenWidgets.PortletManage\
r", "portlets"),

_properties

Value:
{'id': 'title', 'type': 'string', 'mode': 'w'}, {'id': 'description', \
'type': 'string', 'mode': 'w'}, {'id': 'permission', 'type': 'string',\
 'mode': 'w'}, {'id': 'sourcepath', 'type': 'string', 'mode': 'w'}, {'\
id': 'preview', 'type': 'string', 'mode': 'w'},