[Zope] ZClass Question

Albert Kinderman albert.kinderman@csun.edu
Fri, 01 Oct 1999 11:17:25 -0700


Help!  I am Zenless.  8=(

I want to keep things simple for content managers.  I have a ZClass
(agendaClass) that contains a dtml method index_html and a dtml document
with id content.  The index_html calls the standard header and footer
with <dtml-var content> inbetween.

I know that the ZDG chapter 1 on ZClasses says that the only permission
you should grant to documents and methods in instances is view because
you don't want managers to be able to edit the documents and methods,
but that is exactly what I want. I want them to edit content to contain
the appropriate html content for that particular agenda.

I have tried all sorts of permission combinations, but I can't seem to
get it right.  When I create an instance (agenda), the Contents page
appears empty (index_html and content are not listed), but when I view
the instance I see the page correctly with the default contents from the
agendaClass.  I would like "content" to appear on the Contents page of
the instance.  Clicking on "content" should take the content manager to
a set of pages that include Edit, Upload, Properties, and View. I do not
want the index_html to be editable.

I can achieve a similar result by leaving content out of the agendaClass
and teaching all my content managers to Add a DTML Document and give it
the id content as soon as they create an instance, but I want this to be
automated.

Thanks for your help.

Al

-- 
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Albert Kinderman             California State University, Northridge
albert.kinderman@csun.edu    Department of Management Science