Op 29-04-10 00:37, Diego Rubert schreef: > PortariaSchema = schemata.ATContentTypeSchema.copy() + atapi.Schema(( > > atapi.TextField( > 'description', > .. > ))
ATContentTypeSchema already has a 'description' field. Now you copy that schema and add a second 'description' field. I am not surprised that this gives problems. I would expect your new field to overwrite the existing one, but am not sure if that is the case. It is better to not add that second field, but change the existing field, like you are already doing with the storage option: PortariaSchema['description'].storage = atapi.AnnotationStorage() Also, the standard description field has an accessor specifically called 'Description'. Your field does not specify an accessor specifically, so you get the default behaviour, which means it gets called 'getDescription'. It looks like Archetypes makes both accessors available. Maurits _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
