Hi,
I'm just curious of what the preferred method of doing changes to a schema
would be?

Usecase:
base_package has the schema:

class BaseSchema(colander.Schema):
    some field = <etc...>

Another package is a plugin, and would like to add a field to that schema.

At least in my head, this would be quite simple with a zope object event,
something like SchemaCreated that would fire every time a schema was
instantiated. This would work with Pyramids subscribers.
(Pretty much like repoze.folder does when something is added)

This won't work AFAIK, since the schema will be of the SchemaNode class
once instantiated. Any relation to the initial class is gone for this
object.

Any thoughts on a smart solution for this that doesn't require monkeys with
wrenches? :)

Thanks in advance,
Robin

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to