534 def __init__(cls, name, bases, dct):
535 """Class constructor.
536
537 Keyword Parameters:
538
539 cls -- This is a pointer to the class being constructed
540
541 name -- The name that the class will have
542
543 bases -- These are the classes, objects of the new generated type will
544 inherit from. It is useful in our context, to express the OKS
545 inheritance relations between the classes.
546
547 dct -- This is a dictionary that will contain mappings between
548 methods/attributes of the newly generated class and values or methods
549 that will be bound to it. The dictionary should contain a pointer to
550 the class schema, and that should be called '__schema__'.
551 """
552
553 alltypes = [name]
554 for b in bases:
555 if hasattr(b, 'pyoksTypes'):
556 for t in b.pyoksTypes():
557 if t not in alltypes:
558 alltypes.append(t)
559
560 super(DalType, cls).__init__(name, bases, dct)
561 cls.__okstypes__ = alltypes
562