This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import pprint | |
import inspect | |
from copy import deepcopy | |
class NimbisActionPluginMeta(type): | |
# we use __init__ rather than __new__ here because we want | |
# to modify attributes of the class *after* they have been | |
# created |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
class TestMeta(type): | |
# we use __init__ rather than __new__ here because we want | |
# to modify attributes of the class *after* they have been | |
# created | |
def __init__(cls, name, bases, dct): | |
if not hasattr(cls, 'registry'): | |
# this is the base class. Create an empty registry | |
print "cls is {0}".format(cls) |