Hi, I had originally been thinking that ZClasses would allow you to override ZClass-level methods, etc. with methods at the instance level. But, this is not the case... and you're also not able to edit the methods for each instance, as you have found. I have a solution to this, and I should probably write it up in a HOWTO because this has come up a couple of times. If you download KM|Net News, you can see my solution pretty easily. In the KMArticleStore ZClass, there are methods labelled "default_article_header" and "default_article_footer", etc. The KMArticleStore_add method will automatically take the contents of those methods and copy them to the new instance. I have also added a view called "Defaults" which allows the user to easily restore the defaults. One side note: make sure you map the Access Contents Information property on your "default" methods. I'll try to write a complete howto about this in my copious free time. Hopefully, the paragraph above will point you where you want to go... Kevin -----Original Message----- From: Albert Kinderman <albert.kinderman@csun.edu> To: zope@zope.org <zope@zope.org> Date: Friday, October 01, 1999 2:40 PM Subject: [Zope] ZClass Question
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.