Re: Re: What does Five and Z3 mean for Archetypes?
Sidnei da Silva <sidnei-/awGbKECNgO/3pe1ocb+swC/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <20051118170502.GP9554@cotia> |
On Fri, Nov 18, 2005 at 05:53:19PM +0100, Martijn Faassen wrote: | >AT paradigm Z3 equiv | >--------- -------- | >schemata Interface inheritance / multiple schema | | So what does schemata do in Archetypes? It's a stupid name for separating widgets in 'groups' for presentation. | >storage adapters for getting and setting | | Do annotations fit in somewhere? Zope 3 doesn't have a storage framework | yet, so I think Zope 3 has some work to do here. ZPatterns gurus speak | up.. :) One of the available storage components is a annotation storage. | >a widget 3 views / 2 z3 schemas (search, edit, view) | | Views for fields (i.e. sub page views) are called "widgets" in Zope 3 as | well. | | An AT widget contains both a search, an edit and a display facility? Put it this way. A AT widget Page Template has usually 3 macros, view, edit and search. It could just as well be 3 different templates, or in Zope 3, 3 different interfaces. Say IDisplayWidget, IEditWidget, ISearchWidget. | Zope 3 right now has a pattern of separate edit and display widgets. I | don't know what the equivalent of 'search' would be -- what does this do | in AT? Search is underused, but usually it's exact the same as edit. It's for building a search form automatically for a given schema. | >a field z3 content object or an attr on a z3 content object | | Okay, and to avoid confusing, Z3 does use the word "field", but for | that's for the attribute declaration on the schema/interface, i.e. we | have Text fields, Int fields and the like. | | >a reffield nothing currently | | What do reffields do in AT? References *wink*. | >marshalling a view? nothing currently | | What's marshalling exactly? Marshalling provides different 'marshalled' representations for the data of a object. For example, you can get a XMLMarshaller and spit out a xml representation for a object's data and a schema. Think of it as an adapter between (object, schema). It can also be used for the reverse operation, populating a object's fields from a file representation. So if you have some XML, you run it through a marshaller adapter and get your object populated. This feature is also very underused currently. I'm probably the (only?) one that uses it. We hope to change that with the 'Marshall' product, which lets you control which marshaller gets used through a UI. Sort of a local adapter registry. -- Sidnei da Silva Enfold Systems, LLC. http://enfoldsystems.com ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click