def __init__(cls, name, bases, new_attrs):
        cls._meta_init_attrs(new_attrs)
        cls._combine_base_fields(bases)
        cls._update_dbo_fields(new_attrs)
        if getattr(cls, 'template_id', None):
            cls._template_init()
        cls._update_actions(new_attrs)

        if 'class_id' in new_attrs:
            # Override any existing class id reference with this child class
            set_dbo_class(cls.class_id, cls)

        elif 'dbo_key_type' in new_attrs:
            # Override or set the class_id to the database key if present
            cls.class_id = cls.dbo_key_type
            set_dbo_class(cls.class_id, cls)
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/core/meta.py/CommonMeta.__init__/original