Submitted by : 192.168.1.21 at: 2004-01-09T15:01:20+00:00 (13 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Hello,

please, follow these steps, and help me find out if this is really a bug with ZWiki:

Here it bombs with:

  Traceback (innermost last):
  Module ZPublisher.Publish, line 100, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 40, in call_object
  Module OFS.CopySupport, line 172, in manage_pasteObjects
  Module OFS.ObjectManager, line 277, in _setObject
  Module Products.CMFCore.CMFCatalogAware, line 148, in manage_afterAdd
  Module Products.CMFCore.CMFCatalogAware, line 177, in __recurse
  Module Products.ZWiki, line 130, in manage_afterAdd
  AttributeError: setCreator

I'm using CVS versions of the following products:

Regards,

Dorneles Treméa


comments:

try cvs --SimonMichael, Sun, 25 Jan 2004 08:52:50 -0800 reply
Hi Dorneles.. I think a recent "fix" in those manage_after* methods was mistaken. Can you try again with the latest __init__.py ? Get it from here in case sourceforge is not up to date.

ack --SimonMichael, Sun, 25 Jan 2004 08:58:16 -0800 reply
That's interesting, it seems LocalFS hides that file. Just replace these methods in ZWiki/__init__.py:

 def manage_afterAdd(self, item, container):
     self.setCreator(getattr(self,'REQUEST',None)) # save creation info
     self.wikiOutline().add(self.pageName()) # update the wiki outline
     self.index_object()
 ZWikiPage.ZWikiPage.manage_afterAdd = manage_afterAdd

 def manage_afterClone(self, item):
     self.setCreator(getattr(self,'REQUEST',None)) # save creation info
     self.wikiOutline().add(self.pageName()) # update the wiki outline
     self.index_object()
 ZWikiPage.ZWikiPage.manage_afterClone = manage_afterClone

 def manage_beforeDelete(self, item, container):
     self.wikiOutline().delete(self.pageName()) # update the wiki outline
     self.unindex_object()
 ZWikiPage.ZWikiPage.manage_beforeDelete = manage_beforeDelete

yes --SimonMichael, Sun, 25 Jan 2004 09:19:08 -0800 reply
That seems to fix it. Thanks!

fixed for 0.27 --SimonMichael, Sun, 25 Jan 2004 09:19:36 -0800 reply
Status: open => closed