Back to index

plone3  3.1.7
Variables
getMainGlobals Namespace Reference

Variables

tuple atool = getToolByName(script, 'portal_actions')
tuple caltool = getToolByName(script, 'portal_calendar', None)
tuple mtool = getToolByName(script, 'portal_membership')
tuple ptool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')
tuple utool = getToolByName(script, 'portal_url')
tuple wtool = getToolByName(script, 'portal_workflow')
tuple portal_object = utool.getPortalObject()
tuple default_charset = ptool.getProperty('default_charset', None)
tuple message = context.REQUEST.get('portal_status_message')
dictionary globals

Variable Documentation

tuple getMainGlobals.atool = getToolByName(script, 'portal_actions')

Definition at line 8 of file getMainGlobals.py.

tuple getMainGlobals.caltool = getToolByName(script, 'portal_calendar', None)

Definition at line 9 of file getMainGlobals.py.

tuple getMainGlobals.default_charset = ptool.getProperty('default_charset', None)

Definition at line 19 of file getMainGlobals.py.

Initial value:
00001 {'utool': utool,
00002            'mtool': mtool,
00003            'atool': atool,
00004            'wtool': wtool,
00005            'caltool_installed': caltool is not None,
00006            'portal_object': portal_object,
00007            'portal_title': portal_object.Title(),
00008            'object_title': context.Title(),
00009            'object_description': context.Description(),
00010            'portal_url': utool(),
00011            'member': mtool.getAuthenticatedMember(),
00012            'membersfolder': mtool.getMembersFolder(),
00013            'isAnon': mtool.isAnonymousUser(),
00014            'wf_state': wtool.getInfoFor(context, 'review_state', ''),
00015            'status_message': message}

Definition at line 29 of file getMainGlobals.py.

tuple getMainGlobals.message = context.REQUEST.get('portal_status_message')

Definition at line 24 of file getMainGlobals.py.

tuple getMainGlobals.mtool = getToolByName(script, 'portal_membership')

Definition at line 10 of file getMainGlobals.py.

tuple getMainGlobals.portal_object = utool.getPortalObject()

Definition at line 14 of file getMainGlobals.py.

tuple getMainGlobals.ptool = getUtilityByInterfaceName('Products.CMFCore.interfaces.IPropertiesTool')

Definition at line 11 of file getMainGlobals.py.

tuple getMainGlobals.utool = getToolByName(script, 'portal_url')

Definition at line 12 of file getMainGlobals.py.

tuple getMainGlobals.wtool = getToolByName(script, 'portal_workflow')

Definition at line 13 of file getMainGlobals.py.