[Zope-dev] "Constrained" ZClasses

Anthony Pfrunder s341625@student.uq.edu.au
Thu, 9 Dec 1999 09:50:22 +1000 (GMT+1000)


Hi,

I take that you mean allowing ZClass "implementations" (not instances) to
reside within the main ZODB and hence be able to use permissions etc.  If
this is the case check out VisualZope for some ideas.  The *new* address
(with content still coming but I can email you the tgz if ur in a hurry)
is:

	http://visualzope.linuxbox.com/

Other Zopeisters - linuxbox offers free hosting of your Zope projects
with *full* access to Zope source (ie Products directory).

VisualZope provides a Widget.  A widget is like a Zclass (ie can inherit
from other widgets and widget types) and contains dtml, python methods
etc.  A number of "renderable" methods are also provided.  To *use* them,
just place a VZ editor in the acquisition chain somewhere.  If one is
found, the Zope Management system is modified to use this instead.  Every
editor can display a list of all widgets in the acqusition path.  Needless
to say, if you don't have permissions on that widget you just don't see it
and it is never activated.  Editors proivde a document type specific way
of editing a document.  Remember, the document type can be changed on the
fly and can have a number of types at one time.

Ignore the name, VisualZope, it is much more than that.  Basically, it is
my version of the Multiple document format ideas that were floating about.
Closest description is that of the XSL renderer.  However, you can apply
different renderers to different parts of the document (ie one part can be
a dtml document, another a word file etc) 

Cheers,

Anthony Pfrunder