Add option group support to the document type default metadata types and sets view
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from acls.classes import EncapsulatedObject
|
||||
|
||||
|
||||
class MetadataClass(object):
|
||||
def __init__(self, dictionary):
|
||||
@@ -10,3 +12,7 @@ class MetadataClass(object):
|
||||
return self.dictionary.get(name)
|
||||
else:
|
||||
raise AttributeError(_(u'\'metadata\' object has no attribute \'%s\'') % name)
|
||||
|
||||
|
||||
class MetadataObjectWrapper(EncapsulatedObject):
|
||||
source_object_name = u'metadata_object'
|
||||
|
||||
Reference in New Issue
Block a user