fixes #962
This commit is contained in:
@@ -744,7 +744,7 @@ def edit():
|
|||||||
viewlist.append(aviewpath + '.html')
|
viewlist.append(aviewpath + '.html')
|
||||||
if len(viewlist):
|
if len(viewlist):
|
||||||
editviewlinks = []
|
editviewlinks = []
|
||||||
for v in viewlist:
|
for v in sorted(viewlist):
|
||||||
vf = os.path.split(v)[-1]
|
vf = os.path.split(v)[-1]
|
||||||
vargs = "/".join([viewpath.replace(os.sep, "/"), vf])
|
vargs = "/".join([viewpath.replace(os.sep, "/"), vf])
|
||||||
editviewlinks.append(A(vf.split(".")[0],
|
editviewlinks.append(A(vf.split(".")[0],
|
||||||
@@ -754,6 +754,7 @@ def edit():
|
|||||||
if len(request.args) > 2 and request.args[1] == 'controllers':
|
if len(request.args) > 2 and request.args[1] == 'controllers':
|
||||||
controller = (request.args[2])[:-3]
|
controller = (request.args[2])[:-3]
|
||||||
functions = find_exposed_functions(data)
|
functions = find_exposed_functions(data)
|
||||||
|
functions = functions and sorted(functions) or []
|
||||||
else:
|
else:
|
||||||
(controller, functions) = (None, None)
|
(controller, functions) = (None, None)
|
||||||
|
|
||||||
@@ -1067,7 +1068,7 @@ def design():
|
|||||||
for c in controllers:
|
for c in controllers:
|
||||||
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
|
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
|
||||||
items = find_exposed_functions(data)
|
items = find_exposed_functions(data)
|
||||||
functions[c] = items
|
functions[c] = items and sorted(items) or []
|
||||||
|
|
||||||
# Get all views
|
# Get all views
|
||||||
views = sorted(
|
views = sorted(
|
||||||
@@ -1205,7 +1206,7 @@ def plugin():
|
|||||||
for c in controllers:
|
for c in controllers:
|
||||||
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
|
data = safe_read(apath('%s/controllers/%s' % (app, c), r=request))
|
||||||
items = find_exposed_functions(data)
|
items = find_exposed_functions(data)
|
||||||
functions[c] = items
|
functions[c] = items and sorted(items) or []
|
||||||
|
|
||||||
# Get all views
|
# Get all views
|
||||||
views = sorted(
|
views = sorted(
|
||||||
|
|||||||
Reference in New Issue
Block a user