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

from sourceforge:
> Patches item #629317, was opened at 2002-10-27 04:50
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=305690&aid=629317&group_id=5690
>
> Category: None
> Group: None
> Status: Open
> Resolution: None
> Priority: 5
> Submitted By: Bertrand Croq (bcroq)
> Assigned to: Nobody/Anonymous (nobody)
> Summary: Problem when root documents
>
> Initial Comment:
> When I want a document to be a root document in the
> ZWiki map, I use the "backlinks" page to reparent it
> with no document. Problem: when doing so, it is
> reparented to ['']? instead of [].
>
> Here is a patch to fix this problem.
>
> Once this patch applied, the documents have to be
> reparented. It might be easy to write a script that
> does it for you...
>
> ? patch.reparent.1
> Index: Parents.py
> ===================================================================
> RCS file: /cvsroot/zwiki/zwiki/Parents.py,v
> retrieving revision 1.22
> diff -u -r1.22 Parents.py
> --- Parents.py 25 Sep 2002 03:22:31 -0000 1.22
> +++ Parents.py 27 Oct 2002 03:37:16 -0000
> @@ -56,7 +56,7 @@
> parents = pagename
> if parents is None:
> parents = REQUEST.get(parents, None)
> - if parents is None:
> + if parents is None or parents == '':
> self.parents = []
> else:
> if type(parents) != ListType?:
>
>
> ----------------------------------------------------------------------
>
> You can respond by visiting:
> https://sourceforge.net/tracker/?func=detail&atid=305690&aid=629317&group_id=5690


comments:

(property change) already resolved --simon, Sun, 26 Feb 2006 15:00:45 -0800 reply
Name: '#360 Re: [ zwiki-Patches-629317 ]? Problem when root documents' => #360 sourceforge patch to fix reparent to top Status: open => closed

Thanks!