| 36 | |
| 37 | # Create a VocabString class for our CustomVocab-1.0 vocabular |
| 38 | class CustomVocab(vocabs.VocabString): |
| 39 | _namespace = 'http://customvocabs.com/vocabs-1' |
| 40 | _XSI_TYPE = 'customVocabs:CustomVocab-1.0' |
| 41 | _ALLOWED_VALUES = ('FOO', 'BAR') |
| 42 | |
| 43 | # Register the namespace of the CustomVocab |
| 44 | mixbox.namespaces.register_namespace( |