Beispiel #1
0
 def __new__(cls, name, bases, attrs):
     base = type(name, (object, ), attrs)
     if attrs.get('__hook_reverse_order__', None) is not False:
         bases = list(bases) + [base]
     else:
         bases = [base] + list(bases)
     appPool.hook_class_new(name, bases, attrs)
     new_class = type(name, tuple(bases), {})
     return new_class
Beispiel #2
0
 def __new__(cls, name, bases, attrs):
     base = type(name, (object, ), attrs)
     if attrs.get('__hook_reverse_order__', None) is not False:
         bases = list(bases) + [base]
     else:
         bases = [base] + list(bases)
     appPool.hook_class_new(name, bases, attrs)
     new_class = type(name, tuple(bases), {})
     return new_class
Beispiel #3
0
 def __new__(cls, name, bases, attrs):
     base = type(name, (object, ), attrs)
     bases = list(bases) + [base]
     appPool.hook_class_new(name, bases, attrs)
     new_class = type(name, tuple(bases), {})
     return new_class