no menu in wiki
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.00.0 (2012-07-14 18:43:38) dev
|
Version 2.00.0 (2012-07-14 20:15:46) dev
|
||||||
|
|||||||
+9
-8
@@ -4422,14 +4422,15 @@ class Wiki(object):
|
|||||||
menu = []
|
menu = []
|
||||||
tree = {'.':menu}
|
tree = {'.':menu}
|
||||||
for row in rows:
|
for row in rows:
|
||||||
key = './'+row.menu
|
if row.menu:
|
||||||
base = key.rsplit('/',1)[0]
|
key = './'+row.menu
|
||||||
subtree = tree[key] = []
|
base = key.rsplit('/',1)[0]
|
||||||
if base in tree:
|
subtree = tree[key] = []
|
||||||
tree[base].append((current.T(row.title),
|
if base in tree:
|
||||||
request.args(0)==row.slug,
|
tree[base].append((current.T(row.title),
|
||||||
URL(controller,function,args=row.slug),
|
request.args(0)==row.slug,
|
||||||
subtree))
|
URL(controller,function,args=row.slug),
|
||||||
|
subtree))
|
||||||
if self.check_authorization(act=False):
|
if self.check_authorization(act=False):
|
||||||
submenu = []
|
submenu = []
|
||||||
if URL() == URL(controller,function) and \
|
if URL() == URL(controller,function) and \
|
||||||
|
|||||||
Reference in New Issue
Block a user