Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes | Static Private Attributes
CMFPlone.PropertiesTool.PropertiesTool Class Reference
Inheritance diagram for CMFPlone.PropertiesTool.PropertiesTool:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.PropertiesTool.PropertiesTool:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def all_meta_types
def title
def addPropertySheet
def manage_addPropertySheet
def editProperties

Static Public Attributes

 id = BaseTool.id
string toolicon = 'skins/plone_images/topic_icon.gif'
 meta_type = ToolNames.PropertiesTool
tuple meta_types
tuple manage_options
tuple manage_addPropertySheetForm
tuple security = ClassSecurityInfo()

Static Private Attributes

tuple __implements__

Detailed Description

Definition at line 18 of file PropertiesTool.py.


Member Function Documentation

def CMFPlone.PropertiesTool.PropertiesTool.addPropertySheet (   self,
  id,
  title = '',
  propertysheet = None 
)
Add a new PropertySheet

Definition at line 50 of file PropertiesTool.py.

00050 
00051     def addPropertySheet(self, id, title='', propertysheet=None):
00052         """ Add a new PropertySheet
00053         """
00054         o = SimpleItemWithProperties(id, title)
00055 
00056         # copy the propertysheet values onto the new instance
00057         if propertysheet is not None:
00058             if not hasattr(propertysheet, 'propertyIds'):
00059                 raise TypeError, 'propertysheet needs to be a PropertyManager'
00060 
00061             for property in propertysheet.propertyMap():
00062                 pid=property.get('id')
00063                 ptype=property.get('type')
00064                 pvalue=propertysheet.getProperty(pid)
00065                 if not hasattr(o, pid):
00066                     o._setProperty(pid, pvalue, ptype)
00067 
00068         self._setObject(id, o)
00069 

Here is the call graph for this function:

Here is the caller graph for this function:

def CMFPlone.PropertiesTool.PropertiesTool.all_meta_types (   self,
  interfaces = None 
)

Definition at line 42 of file PropertiesTool.py.

00042 
00043     def all_meta_types(self, interfaces=None):
00044         return self.meta_types

Change portal settings

Definition at line 84 of file PropertiesTool.py.

00084 
00085     def editProperties(self, props):
00086         """Change portal settings
00087         """
00088         aq_parent(aq_inner(self)).manage_changeProperties(props)
00089         if hasattr(self, 'propertysheets'):
00090             ps = self.propertysheets
00091             if hasattr(ps, 'props'):
00092                 ps.props.manage_changeProperties(props)
00093 
00094 
00095 PropertiesTool.__doc__ = BaseTool.__doc__
00096 
00097 InitializeClass(PropertiesTool)
00098 

def CMFPlone.PropertiesTool.PropertiesTool.manage_addPropertySheet (   self,
  id,
  title = '',
  propertysheet = None,
  REQUEST = None 
)
Add a instance of a Property Sheet if handed a
propertysheet put the properties into new propertysheet.

Definition at line 71 of file PropertiesTool.py.

00071 
00072                                 propertysheet=None, REQUEST=None):
00073         """ Add a instance of a Property Sheet if handed a
00074         propertysheet put the properties into new propertysheet.
00075         """
00076         self.addPropertySheet(id, title, propertysheet)
00077 
00078         if REQUEST is not None:
00079             return self.manage_main()

Here is the call graph for this function:

Here is the caller graph for this function:

Return BaseTool title

Definition at line 45 of file PropertiesTool.py.

00045 
00046     def title(self):
00047         """ Return BaseTool title
00048         """
00049         return BaseTool.title(self)

Here is the caller graph for this function:


Member Data Documentation

Initial value:
((z2IPropertiesTool,) +
                      (Folder.__implements__, ))

Definition at line 31 of file PropertiesTool.py.

Definition at line 20 of file PropertiesTool.py.

Initial value:
PageTemplateFile('www/addPropertySheet',
                                                   globals())

Definition at line 37 of file PropertiesTool.py.

Initial value:
((Folder.manage_options[0],) +
                        BaseTool.manage_options)

Definition at line 34 of file PropertiesTool.py.

Definition at line 23 of file PropertiesTool.py.

Initial value:
((
        {'name' : 'Plone Property Sheet',
         'action' : 'manage_addPropertySheetForm'
         },
        ))

Definition at line 24 of file PropertiesTool.py.

tuple CMFPlone.PropertiesTool.PropertiesTool.security = ClassSecurityInfo() [static]

Definition at line 40 of file PropertiesTool.py.

string CMFPlone.PropertiesTool.PropertiesTool.toolicon = 'skins/plone_images/topic_icon.gif' [static]

Definition at line 21 of file PropertiesTool.py.


The documentation for this class was generated from the following file: