Héctor Velarde wrote:
class NITFExtender(object):
adapts(IATNewsItem)
implements(ISchemaModifier)
ok, sorry, I found that this one is the only possible solution... but
now I'm starting over again: do I have to do this?
def fiddle(self, schema):
schema = schema + MetadataSchema((...))
schema['relatedItems'].schemata = 'metadata'
schema.moveField('relatedItems', before='contributors')
schema['subject'].schemata = 'default'
schema.moveField('subject', after='imageCaption')
what about the new fields? what about default and vocabulary methods?
after this I think we can document all possible variants.
saludos
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers