Great! thanks! -- Diego P. Rubert Coordenadoria de Informática Procuradoria da República no Estado de Mato Grosso do Sul Ministério Público Federal Em 29-04-2010 17:45, Maurits van Rees-3 [via Plone] escreveu: 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 [hidden email] http://lists.plone.org/mailman/listinfo/product-developers View message @ http://plone.293351.n2.nabble.com/Strange-things-when-Overwriting-description-at-product-new-type-tp4977325p4982584.html To unsubscribe from (Strange things when) Overwriting description at product new type, click here . -- View this message in context: http://plone.293351.n2.nabble.com/Strange-things-when-Overwriting-description-at-product-new-type-tp4977325p4987137.html Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
