[Zope3-dev] RFC: preCreation view, postCreation view use cases
Guido van Rossum
guido@python.org
Thu, 28 Mar 2002 10:17:58 -0500
> * we ought to be able to specify pre-creation views (plural!) of an
> object, that will let us provide TTW the values needed to
> instantiate an object (including a file upload). This seems
> particularly important to me to be able to use non-Zope specific
> classes.
Very interesting. That need came up in the jobboard example too! It
has two pre-creation views: one is a form that lets you enter the
content fields, one is a preview page that lets you see how the object
would be shown after creation. IMO this is a pretty useful pattern; I
used it in the Python FAQ wizard. I'm curious how you can provide a
general framework for this feature -- maybe a look at the jobboard
example (checked in as Packages/JobBoardEx on cvs.zope.org) would help
you.
> * we ought to be able to specify a default post-creation view of an
> object, to which the creation process will automatically direct the
> user after object creation.
Also very interesting. The jobboard example has the need of a default
view (also for the whole jobboard itself). We discussed this with Jim
over lunch yesterday, and he agreed that a default view was a good
idea. But then he hopped on a plane to Europe where he'll stay for
three weeks, so it may be a while.
--Guido van Rossum (home page: http://www.python.org/~guido/)