[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Folder - FolderAdder.py:1.1.2.3
Tres Seaver
tseaver@zope.com
Sat, 9 Feb 2002 09:40:42 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Folder
In directory cvs.zope.org:/tmp/cvs-serv21198/App/OFS/Folder
Modified Files:
Tag: Zope-3x-branch
FolderAdder.py
Log Message:
- Add adder for ServiceManagers, including refactoring FolderAdder
to indirect lookup of addables through overridable method.
=== Zope3/lib/python/Zope/App/OFS/Folder/FolderAdder.py 1.1.2.2 => 1.1.2.3 ===
+ def _listAddables( self ):
+ """
+ Derived classes override this to change the registry
+ in which factories are looked up.
+ """
+ return ContentAddables.getAddables( self._folder )
+
def listAddableInfo( self ):
"""
Return a sequence of mappings for the addables for our
folder.
"""
- return map( self._extractAdderInfo, ContentAddables.getAddables( self._folder ) )
-
+ return map( self._extractAdderInfo, self._listAddables() )
def action( self, id, type_name, REQUEST=None):
"""