[Plone-IT] Settare un campo da script

SauZheR sauzher a gmail.com
Mer 22 Giu 2011 08:35:55 UTC


> mi sa che con schemaextender non va, non crea i mutator accessor di default.
>  cambiato qualcosa nel frattempo?

 class MyBooleanField(ExtensionField, BooleanField):
         """A trivial field."""

schemaextender can not use the standard Archetypes fields directly
since those rely on the class generation logic generating accessors
and mutator methods. By using the ExtensionField mix-in class we can
still use them. Make sure the ExtensionField mix-in comes first, so it
properly overwrites the standard methods.



RTFM ;)
http://pypi.python.org/pypi/archetypes.schemaextender

-- 
 bye
SauZheR
************************************
l'iterazione  umana...
la ricorsione, Divina!
************************************
reply to: sauzher AT gmail DOT com


Maggiori informazioni sulla lista Plone-IT