[Zope3-checkins] 
	SVN: Zope3/branches/jim-wf/src/zope/wfmc/process.py
	Allowed workflow and application data to be accessed via getitem as
    Jim Fulton 
    jim at zope.com
       
    Wed Mar  2 12:34:15 EST 2005
    
    
  
Log message for revision 29384:
  Allowed workflow and application data to be accessed via getitem as
  well as getattr.
  
Changed:
  U   Zope3/branches/jim-wf/src/zope/wfmc/process.py
-=-
Modified: Zope3/branches/jim-wf/src/zope/wfmc/process.py
===================================================================
--- Zope3/branches/jim-wf/src/zope/wfmc/process.py	2005-03-02 17:34:07 UTC (rev 29383)
+++ Zope3/branches/jim-wf/src/zope/wfmc/process.py	2005-03-02 17:34:15 UTC (rev 29384)
@@ -249,6 +249,14 @@
     """Container for workflow-relevant and application-relevant data
     """
 
+    # XXX need tests for next 2 methods
+
+    def __getitem__(self, name):
+        return self.__dict__[name]
+
+    def get(self, name):
+        return self.dict.get(name)
+
 class ProcessStarted:
     interface.implements(interfaces.IProcessStarted)
 
    
    
More information about the Zope3-Checkins
mailing list