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: