Martijn Faassen wrote:
Dieter Maurer wrote:

Martijn Faassen wrote at 2004-4-24 22:49 +0200:

In practice right now the picture is 'Use all of the CMF or none of it'.

No, not really...

  We use "SkinsTool", "ActionsTool" and "DCWorkflow" a lot,
  "MembershipTool" sometimes and most other tools not at all.

Okay, point taken. :)

How much do the tools listed interdepend on each other?

See the attached file.

Tres Seaver                                [EMAIL PROTECTED]
Zope Corporation      "Zope Dealers"
$ grep getToolByName Action*.py utils import getToolByName        membership = getToolByName(tool, 'portal_membership')

# uses 'portal_membership' to compute whether the user is anonymous, and
#   to look up the user's ID.
# uses 'Expression' class heavily;   Expression also depends on
#   'portal_membership'.

$ grep getToolByName Skins*.py utils import UniqueObject, getToolByName, _dtmldir        pm = getToolByName(self, 'portal_membership')        pu = getToolByName(self, 'portal_url')

#  Uses 'portal_membership' to look up member skin prefs
#  Uses 'portal_url' to compute the path of the site object, in order to set
#    the path on the skin cookie.

$ grep getToolByName FS*.py utils import expandpath, getToolByName        portal_skins = getToolByName(self,'portal_skins')

#  Uses 'portal_skins' to do customization.

$ grep getToolByName Member*.py utils import UniqueObject, getToolByName, _dtmldir        membertool   = getToolByName(self, 'portal_membership')        mtool   = getToolByName(self, 'portal_membership')        membertool= getToolByName(self, 'portal_membership')        membership = getToolByName(self, 'portal_membership')        registration = getToolByName(self, 'portal_registration', 
None) utils import getToolByName, _dtmldir        registration = getToolByName(self, 'portal_registration', 
None)            md = getToolByName(parent, 'portal_memberdata')        md = getToolByName( self, 'portal_memberdata' )
from utils import getToolByName
        membership = getToolByName(self, 'portal_membership')
        membership = getToolByName(self, 'portal_membership')

#   Membership, memberdata, and registration are self-contained.

$ grep getToolByName Workflow*.py utils import getToolByName        wf = getToolByName(instance, 'portal_workflow', None) utils import getToolByName        types_tool = getToolByName( self, 'portal_types', None 
)        pt = getToolByName(self, 'portal_types', None)

# Uses 'portal_types', *if present*, to compute list of type names, and to
#    verify type-specific bindings.

$ cd ../DCWorkflow
$ grep getToolByName *.py Products.CMFCore.utils import getToolByName                        catalog = getToolByName(self, 'portal_catalog')

# Uses 'portal_catalog' to build work lists.
Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to