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

Class PortletManager

source code

Products.ZenModel.ZenModelRM.ZenModelRM --+
                                          |
                                         PortletManager

A registry for portlet source and metadata. Provides access functions and handles portlet permissions.

Instance Methods [hide private]
 
register_portlet(self, sourcepath, id='', title='', description='', preview='', permission=ZEN_COMMON)
Registers a new source file and creates an associated Portlet to store the metadata and provide access methods.
source code
 
unregister_portlet(self, id) source code
 
get_portlets(self)
Looks up in the registry and returns all portlet objects to which the current user has access.
source code
 
find(self, id='', sourcepath='')
Look for a registered portlet with an id or source path.
source code
 
update_source(self, REQUEST=None)
Reread the source files for all portlets.
source code
 
get_source(self, REQUEST=None)
Return the source of the portlets permitted to this user as a javascript file.
source code
 
edit_portlet_perms(self, REQUEST=None)
blargh
source code
Class Variables [hide private]
  meta_type = 'PortletManager'
  portal_type = 'PortletManager'
  _relations = "portlets", ToManyCont(ToOne, "Products.ZenWidget...
Class Variable Details [hide private]

_relations

Value:
"portlets", ToManyCont(ToOne, "Products.ZenWidgets.Portlet", "portletM\
anager"),