[CMF-checkins] CVS: CMF/CMFWorkspaces - OrganizationTool.py:1.5

Matthew T. Kromer matt@zope.com
Fri, 14 Feb 2003 11:14:03 -0500


Update of /cvs-repository/CMF/CMFWorkspaces
In directory cvs.zope.org:/tmp/cvs-serv11415

Modified Files:
	OrganizationTool.py 
Log Message:
Add a method to add a single type/skin rather than the whole set


=== CMF/CMFWorkspaces/OrganizationTool.py 1.4 => 1.5 ===
--- CMF/CMFWorkspaces/OrganizationTool.py:1.4	Mon Jun 17 16:25:17 2002
+++ CMF/CMFWorkspaces/OrganizationTool.py	Fri Feb 14 11:14:02 2003
@@ -115,6 +115,12 @@
         return res
 
 
+    security.declareProtected(ManagePortal, 'setTypeLocation')
+    def setTypeLocation(self, type, location, skin_name=''):
+        """Sets a single location and skin name for a type.
+        """
+        self._types[type] = (location, skin_name)
+
     security.declareProtected(ManagePortal, 'setLocationInfo')
     def setLocationInfo(self, info, RESPONSE=None):
         """Sets the list of types, locations, and skin names.