Menu

#1 Problem when root documents

open
nobody
None
5
2002-10-27
2002-10-27
No

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:

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.