Re: zope 3 schema's and the rest of us

Rocky Burt <[email protected]> Thu, 13 Jul 2006 14:32:19 -0230
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Organization ServerZen Software
Message-ID <1152810131.1863.14.camel@localhost>
On Thu, 2006-13-07 at 14:18 -0230, Rocky Burt wrote:

> Perhaps.  The big thing is that Archetypes schema's are about data
> definition as well as UI for that data.  Zope 3 schema's (as you know)
> are only for data definition, not UI.  This is where the separated
> widget stuff in zope3 tries to step in.  formlib has a huge set of
> reusable utility functions for building up widgets based on form fields
> based on schema's so that'd would definitely be some code to look at.
> https://lists.sourceforge.net/lists/listinfo/archetypes-devel


I want to elaborate on this a bit.

Comparisons between Archetypes and functionally similar zope3 tech:


Description
Archetypes
Zope 3
1
data definition
for content types
atapi.Schema &
atapi.Field
zope.interface &
zope.schema
2
automatic UI for
data fields
atapi.Widget which
atapi.Field
already depends on
zope.widget
3
automatic UI for
forms using data
fields
base_edit,
base_view, &
friends
zope.formlib

In the case of Archetypes, all 3 items are dependent on each other and
cannot easily be separated (with the exception of possibly doing
myobj.widget('somefield') inside a custom zpt).  Zope 3 has very
separate ideas of these.  What does this mean?  This means you can build
an auto-generated search interface with a zope 3 schema since its not
tied a content type whereas you cannot with an archetypes schema.  This
means AT cannot provide arbitrary auto-generated "pages" anywhere on the
system whereas zope.formlib can.

Anyhow, sorry about the html email ... just wanted to try and visualize
this a bit for myself as well.

- Rocky


-- 
Rocky Burt
ServerZen Software -- http://www.serverzen.com
News About The Server (blog) -- http://www.serverzen.net


-------------------------------------------------------------------------
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

_______________________________________________
Archetypes-devel mailing list
Archetypes-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/archetypes-devel
signature.asc (application/pgp-signature, 191 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQBEtnyT1PysfgyHvo0RArs8AJkB1IWiAm0ji/dmMvp+sdHTkP1CjACgjLur
O10rlrjv9toTXU4NMTU7b4g=
=NYl9
-----END PGP SIGNATURE-----