Re: Schema-by-interface options
Martin Aspeli <[email protected]> Fri, 8 Sep 2006 08:29:40 -0700 (PDT)
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
Sidnei da Silva-2 wrote: > > | 2) Add a particular schema field to a number of content types (e.g. add > a > | "tags" field to all or some content types when a tagging solution is > | installed) > > If you need to do that your model is fatally flawed. We should > research instead about ways of 'merging' different schema/forms into a > single one at the presentation level. > Otherwise known as Archetypes. We are trying to come up with options that don't require us to re-invent all of AT or pretend like every content type out there isn't using AT and depending on how AT fits together, or could be re-written with something different. The idea is that you want to be able to enforce side-wide metadata (which could be use-case specific, or something like a generic tagging engine) and get it into the AT edit form (e.g. to make it required). The fact is that base_edit, base_validate and content_edit (are those the names? the form, the validator and the save handler) all rely on being able to iterate over the Schema(), and rely on what comes back to be AT field types and widget types. I don't see that it's a huge problem - we're not takling about persistently stuffing new fields into the ZODB on a per-instance basis. This is merely a way of making sure that what Schema() returns (for UI purposes...) is able to include more useful things drawn in from more than just the 'schema' class (or worse, instance) attribute. What else is Schema() (as an iterable list of fields) used for? Martin -- View this message in context: http://www.nabble.com/Schema-by-interface-options-tf2239709.html#a6211255 Sent from the Archetypes - devel forum at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642