[Zope-dev] Re: The bleak Future of Zope?
Tres Seaver
tseaver at zope.com
Mon Apr 26 11:46:57 EDT 2004
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.
--
===============================================================
Tres Seaver tseaver at zope.com
Zope Corporation "Zope Dealers" http://www.zope.com
-------------- next part --------------
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ grep getToolByName Action*.py
ActionInformation.py:from utils import getToolByName
ActionInformation.py: 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'.
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ grep getToolByName Skins*.py
SkinsTool.py:from utils import UniqueObject, getToolByName, _dtmldir
SkinsTool.py: pm = getToolByName(self, 'portal_membership')
SkinsTool.py: 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.
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ grep getToolByName FS*.py
FSObject.py:from utils import expandpath, getToolByName
FSObject.py: portal_skins = getToolByName(self,'portal_skins')
# Uses 'portal_skins' to do customization.
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ grep getToolByName Member*.py RegistrationTool.py
MemberDataTool.py:from utils import UniqueObject, getToolByName, _dtmldir
MemberDataTool.py: membertool = getToolByName(self, 'portal_membership')
MemberDataTool.py: mtool = getToolByName(self, 'portal_membership')
MemberDataTool.py: membertool= getToolByName(self, 'portal_membership')
MemberDataTool.py: membership = getToolByName(self, 'portal_membership')
MemberDataTool.py: registration = getToolByName(self, 'portal_registration', None)
MembershipTool.py:from utils import getToolByName, _dtmldir
MembershipTool.py: registration = getToolByName(self, 'portal_registration', None)
MembershipTool.py: md = getToolByName(parent, 'portal_memberdata')
MembershipTool.py: 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.
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ grep getToolByName Workflow*.py
WorkflowCore.py:from utils import getToolByName
WorkflowCore.py: wf = getToolByName(instance, 'portal_workflow', None)
WorkflowTool.py:from utils import getToolByName
WorkflowTool.py: types_tool = getToolByName( self, 'portal_types', None )WorkflowTool.py: pt = getToolByName(self, 'portal_types', None)
# Uses 'portal_types', *if present*, to compute list of type names, and to
# verify type-specific bindings.
[/home/tseaver/projects/CMF/CMF-1.4-head/CMFCore]
$ cd ../DCWorkflow
[/home/tseaver/projects/CMF/CMF-1.4-head/DCWorkflow]
$ grep getToolByName *.py
DCWorkflow.py:from Products.CMFCore.utils import getToolByName
DCWorkflow.py: catalog = getToolByName(self, 'portal_catalog')
# Uses 'portal_catalog' to build work lists.
More information about the Zope-Dev
mailing list