Submitted by : at: 2004-07-13T07:44:28+00:00 (16 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

I'm using Zope 2.6.2 and ZWiki 0.32 and when I click on full, simple, minimal or useroptions, I get this traceback:

 Traceback (innermost last):
  Module ZPublisher.Publish, line 98, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 39, in call_object
  Module Products.ZWiki.UI, line 452, in useroptions
  Module App.special_dtml, line 61, in __call__
  Module DocumentTemplate.DT_String, line 474, in __call__
  Module DocumentTemplate.DT_With, line 76, in render
  Module DocumentTemplate.DT_Util, line 201, in eval
   - __traceback_info__: aq_parent
  Module <string>, line 0, in ?
NameError: name 'getattr' is not defined

It should be noted that changing displaymode works if I use back on the browser and doing reload, so the cookie seems to be set as it should.
Author unknown


property change -- Tue, 13 Jul 2004 09:12:09 -0700 reply
Severity: serious => critical

property change -- Tue, 13 Jul 2004 09:12:20 -0700 reply
Severity: critical => serious

try this --simon, Tue, 13 Jul 2004 10:41:59 -0700 reply
I think you've found a bug. Try adding _. in that third-last line of ZWiki/skins/standard/useroptionsdtml.dtml:

 value="<dtml-var "REQUEST.get('zwiki_displaymode',_.getattr(aq_parent,'default_displaymode','minimal'))">">

and restart zope. There's another one like this in issuepropertiesformdtml.dtml. I think it works without the _. in 2.7 upwards. Thanks!

property change --simon, Tue, 13 Jul 2004 10:45:55 -0700 reply
Status: open => closed