def create(self, cls=None):
    attr = super(Enum, self).create(cls)
    for (index, field) in enumerate(self['fields']):
        self.Fn.addField(field, index)
    return attr
def create(self, cls=None):
    attr = super(Enum, self).create(cls)
    for (index, field) in enumerate(self['fields']):
        self.Fn.addField(field, index)
    return attr