Classmethod definition using the decorator syntax.

svn: r10740
This commit is contained in:
Zsolt Foldvari 2008-05-18 17:57:02 +00:00
parent 53964f88e6
commit f0b1808c71

View File

@ -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