Re: [Zope] acessing parameters in a helper class

2000-11-08 Thread Dieter Maurer
Max M writes: dtml-in getAllComments idtml-var author/ibr . Traceback: Unauthorized: author def addComment(self, comment='', author='' , RESPONSE=None): "Adds a comment" self.comments.append(aComment(comment, author))

RE: [Zope] acessing parameters in a helper class

2000-11-08 Thread Max M
From: Dieter Maurer You may consider to provide security rules. There is a nice document from Brian which explains your options. Yes there is indeed. I just hadn't noticed it before. I have just added: "__allow_access_to_unprotected_subobjects__=1" to the aComment class and everythings dandy.

[Zope] acessing parameters in a helper class

2000-11-07 Thread Max M
I have the below class "mxm_guestbook_base" that is subclassed by a zClass. So far so good. But when in a "index_html" dtml-method I try to acces the value "author" of the "aComment" class returned in the "getAllComments" method like so: dtml-in getAllComments dtml-var author dtml-var