Back to index

plone3  3.1.7
Public Member Functions
Archetypes.customizationpolicy.ArchetypesSitePolicy Class Reference
Inheritance diagram for Archetypes.customizationpolicy.ArchetypesSitePolicy:
Inheritance graph
Collaboration diagram for Archetypes.customizationpolicy.ArchetypesSitePolicy:
Collaboration graph

List of all members.

Public Member Functions

def customize
def installArchetypes

Detailed Description

Site policy for SA

Definition at line 34 of file

Member Function Documentation

Definition at line 38 of file

00039     def customize(self, portal):
00040         DefaultCustomizationPolicy.customize(self, portal)
00041         out = StringIO()
00042         self.installArchetypes(portal, out)
00043         return out.getvalue()

Here is the call graph for this function:

Install Archetypes with all dependencies

Definition at line 44 of file

00045     def installArchetypes(self, portal, out):
00046         """Install Archetypes with all dependencies
00047         """
00048         print >>out, 'Installing Archetypes ...'
00049         qi = getToolByName(portal, 'portal_quickinstaller')
00050         for product in PRODUCTS:
00051             if not qi.isProductInstalled(product):
00052                 qi.installProduct(product)
00053                 # Refresh skins
00054                 if shasattr(portal, '_v_skindata'):
00055                     portal._v_skindata = None
00056                 if shasattr(portal, 'setupCurrentSkin'):
00057                     portal.setupCurrentSkin()
00058                 print >>out, '   Installed %s' % product
00059             else:
00060                 print >>out, '   %s already installed' % product
00061         print >>out, 'Done\n'

Here is the call graph for this function:

Here is the caller graph for this function:

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