Submitted by : simon at: 2003-10-26T21:32:01+00:00 (14 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Page deletion in SubWiki-s does not move them to recycle_bin

recyle_bin is usually not installed --FlorianKonnertz, 2003/04/22 10:52 GMT
When adding SubWiki-s, a recyle_bin is usually not installed. And even if one setups one, the deleted pages are not moved to there, they keep existing in the subwiki folder.

versions: 2.6.1 - 0.17rc2

Re: recyle_bin is usually not installed --2003/04/24 13:52 GMT
I am working with the same version as Florian, but I do not experiment the same problem. Actually, the page is moved to the recycle_bin Folder of a "parent" wiki if no "recycle_bin" is present is this wiki. I think we should test the presence of the "recycle_bin" Folder without acquisition. Here is a little working patch for that:

  --- ZWikiPage.py.orig Thu Apr 24 15:41:13 2003
  +++ ZWikiPage.py      Thu Apr 24 15:42:01 2003
  @@ -1921,7 +1921,7 @@
           """
           # create recycle_bin folder if needed
           f = self.folder()
  -        if not hasattr(f,'recycle_bin'):
  +        if not hasattr(f.aq_explicit,'recycle_bin'):
               f.manage_addFolder('recycle_bin', 'deleted wiki pages')
           # & move page there
           id=self.id()


comments:

This is fixed since we do deletion via the "revisions" folder now --betabug, Fri, 16 May 2008 00:05:54 -0700 reply
Status: open => closed

Closing this, since history has passed it by :-)