[Zope3-dev] forms and schemas

Marcus J. Ertl marcus.ertl@larp-welt.de
Wed, 19 Feb 2003 12:01:46 +0100


On Wed, 19 Feb 2003 12:43:38 +0200, Steve Alexander wrote:

Hi again!

>> I need to build the schema at runtime, because the set of fields may
>> vary!
>Do you need to say that objects implement this schema, or are you using 
>it only to describe forms?

I'm afraid, I need both! What I want to do is this:

Have a utility, that fetchs data from a rdb, joining some tables. And I
will have a set of Zope3-Objects, only carrying an id, and fetching all
of it's data from rdb.

To this point, all is easy, I have done a proof of concept allready!

But now I decided, that my rdb will change, adding new columns for new
data, and my Zope3-Object should be able to handle this new
informations to, withouthaving to change it! (In the best case, it
would handle this information as it's attributes, each columns as one
attribute.)

So I thought, I should build a schema (or more then one, for different
views/subsets) from the "tablestructur" for having a way to generate
the forms.

I would be easy to do this just in ZPT, but in this case, I loose the
posibility to manage my object in other ways (XUL, mxWindows, ...)!
Schemas seems to me as powerful way to be output-device independent!

I hope I was able to describe the picture to you, in my broken,
humbling english!

Bye
  Marcus
-- 
 Das LARP-Portal im Internet:
LARP-Welt: http://larp-welt.de

!fantasy

PGP Public Key Fingerprint: 7FE0 CB09 6658 F6A3  2749 D4AE E023 ACB0