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', |
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)) |
|
|
|
|
|
|
|