[CMF-checkins] CVS: CMF/DCWorkflow - ContainerTab.py:1.2

Shane Hathaway shane@digicool.com
Fri, 31 Aug 2001 10:22:19 -0400


Update of /cvs-repository/CMF/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv4053

Modified Files:
	ContainerTab.py 
Log Message:
- Added a __getattr__() to ContainerTab to prevent accidental
acquisition.


=== CMF/DCWorkflow/ContainerTab.py 1.1 => 1.2 ===
             return default
 
+    def __getattr__(self, name):
+        ob = self._mapping.get(name, None)
+        if ob is not None:
+            return ob
+        raise AttributeError, name
+
     def _setOb(self, name, value):
         mapping = self._mapping
         mapping[name] = aq_base(value)
@@ -181,3 +187,4 @@
         if REQUEST is not None:
             return self.manage_main(REQUEST)
         return None
+