[Subversion] / PEAK / src / peak / binding / once.py  

Diff of /PEAK/src/peak/binding/once.py

Parent Directory | Revision Log

version 1942, Tue Nov 23 23:26:05 2004 UTC version 1946, Thu Nov 25 03:01:35 2004 UTC
Line 11 
Line 11 
 from warnings import warn  from warnings import warn
 from types import ClassType  from types import ClassType
 from attributes import activateClass, classAttr, Activator, supertype  from attributes import activateClass, classAttr, Activator, supertype
 from attributes import declareAttribute  from attributes import declareAttribute, initAttrs
   
 __all__ = [  __all__ = [
     'Make', 'ActiveClass',      'Make', 'ActiveClass',
Line 144 
Line 144 
         this constructor is used by the subclass)."""          this constructor is used by the subclass)."""
   
         _warnIfPermission(kw)          _warnIfPermission(kw)
         klass = self.__class__          initAttrs(self,kw.iteritems())
   
   
   
   
   
   
         for k,v in kw.items():  
             if hasattr(klass,k):  
                 setattr(self,k,v)  
             else:  
                 raise TypeError("%r has no keyword argument %r" % (klass,k))  
   
   
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1942  
changed lines
  Added in v.1946

cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help