[Zope-dev] ZPatterns and ZClass Views
Roch'e Compaan
roche@ybm.co.za
Tue, 9 Jan 2001 08:42:47 +0200
I was wondering to what extent people using ZPatterns find the Views one can
set up for a ZClass tolerant of the Role-centric approach followed by
ZPatterns. For example:
I have two Specialists, DocumentedProducts and Products. The Products
specialist manages ZClasses of type 'Product'. Products are remapped to
DocumentedProducts (where product plays the role of documented product).
Typically in Zope, ZClass Views has bearing on a single Zope Object and
Views are filtered according to User Roles, thus the focus is security.
ZPatterns makes it possible to extend the roles an object has. Ideally the
Views in a ZPatterns Application framework would be security AND role (the
role the object plays) focused ie. when I look at a Product instance where
it plays the role of documented product, I might have the views FAQs,
HOWTOs, etc. But when I look at a Product inside the Products specialist I
want the views Properties, Associated Files, etc.
I like the idea of making the Views of a ZClass my starting point because at
least it already filters according to the role a user might have.
Any other ideas/comments?
Roché