evennia/apps/objects/managers/attribute.py

19 lines
470 B
Python
Raw Normal View History

"""
Custom manager for Attribute objects.
"""
from django.db import models
2008-06-15 20:04:06 +00:00
from src import defines_global
class AttributeManager(models.Manager):
def is_modifiable_attrib(self, attribname):
"""
Check to see if a particular attribute is modifiable.
attribname: (string) An attribute name to check.
"""
if attribname.upper() not in defines_global.NOSET_ATTRIBS:
return True
else:
return False