Submitted by : betabug at: 2007-04-10T07:21:24+00:00 (10 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

This is only the code in darcs I believe, the latest change towards fixing AttributeError from unit tests got this.

Here is the traceback, it seems to happen on every page whenever reaching the /diff method (e.g. clicking on "last edited XX days ago"):

  Module ZPublisher.Publish, line 194, in publish_module_standard
  Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish
  Module ZPublisher.Publish, line 146, in publish
  Module Zope2.App.startup, line 222, in zpublisher_exception_hook
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module Products.ZWiki.Diff, line 70, in diff
  Module Products.ZWiki.Views, line 391, in diffform
  Module Shared.DC.Scripts.Bindings, line 311, in __call__
  Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
  Module Products.PageTemplates.PageTemplateFile, line 113, in _exec
  Module Products.CacheSetup.patch_cmf, line 56, in PT_pt_render
  Module Products.CacheSetup.patch_utils, line 9, in call_pattern
  Module Products.PageTemplates.PageTemplate, line 104, in pt_render
  <PageTemplateFile at /zwikib/diffform used for /zwikib/ViewGeddon>
  Module TAL.TALInterpreter, line 238, in __call__
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 749, in do_useMacro
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 457, in do_optTag_tal
  Module TAL.TALInterpreter, line 442, in do_optTag
  Module TAL.TALInterpreter, line 437, in no_tag
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 772, in do_defineSlot
  Module TAL.TALInterpreter, line 281, in interpret
  Module TAL.TALInterpreter, line 507, in do_setLocal_tal
  Module Products.PageTemplates.TALES, line 221, in evaluate
  URL: diffform
  Line 25, Column 4
  Expression: <PythonExpr here.revisionInfoFor(revA-1)>
  Names:
  {'container': <BTreeFolder2 at /zwikib>,
   'context': <ZWikiPage 'ViewGeddon' at 0x4328266c>,
   'default': <Products.PageTemplates.TALES.Default instance at 0x40d31c4c>,
   'here': <ZWikiPage 'ViewGeddon' at 0x4328266c>,
   'loop': <Products.PageTemplates.TALES.SafeMapping object at 0x44176dcc>,
   'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x40d5a86c>,
   'nothing': None,
   'options': {'args': (<ZWikiPage 'ViewGeddon' at 0x4328266c>,
                        <HTTPRequest, URL=http://zwiki.org/ViewGeddon/diff>),
               'difftext': '\n<b>changed:</b><span style="color:red;text-decoration:line-through">\n-:Status: in progress since 0.51</span><span style="color:green">\n:Status: begun around 0.51, now done (double-check)</span>\n',
               'revA': '1'},
   'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0x44176dcc>,
   'request': <HTTPRequest, URL=http://zwiki.org/ViewGeddon/diff>,
   'root': <Application at >,
   'template': <PageTemplateFile at /zwikib/diffform used for /zwikib/ViewGeddon>,
   'traverse_subpath': [],
   'user': <SpecialUser 'Anonymous User'>}
  Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
  __traceback_info__: here.revisionInfoFor(revA-1)
  Module Python expression "here.revisionInfoFor(revA-1)", line 1, in <expression>
  AttributeError


comments:

caused by renaming of revisionInfoFor - patch sent to darcs --betabug, Fri, 13 Apr 2007 12:24:06 +0000 reply
Status: open => closed

Assuming the patch gets through to darcs and as soon as zwiki.org restarts this should be fixed.