Classmethod definition using the decorator syntax.
svn: r10740
This commit is contained in:
parent
53964f88e6
commit
f0b1808c71
@ -95,14 +95,13 @@ class GrampsType(object):
|
||||
|
||||
__metaclass__ = GrampsTypeMeta
|
||||
|
||||
@classmethod
|
||||
def __class_init__(cls, namespace):
|
||||
cls._I2SMAP = _init_map(cls._DATAMAP, 0, 1, cls._BLACKLIST)
|
||||
cls._S2IMAP = _init_map(cls._DATAMAP, 1, 0, cls._BLACKLIST)
|
||||
cls._I2EMAP = _init_map(cls._DATAMAP, 0, 2, cls._BLACKLIST)
|
||||
cls._E2IMAP = _init_map(cls._DATAMAP, 2, 0, cls._BLACKLIST)
|
||||
|
||||
__class_init__ = classmethod(__class_init__)
|
||||
|
||||
def __init__(self, value=None):
|
||||
"""
|
||||
Create a new type, initialize the value from one of several possible
|
||||
|
Loading…
Reference in New Issue
Block a user