fixed a problem with missing OrderedDict
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 1.99.3 (2011-12-09 20:55:52) stable
|
||||
Version 1.99.3 (2011-12-09 21:05:04) stable
|
||||
|
||||
@@ -3,10 +3,9 @@
|
||||
EXPERIMENTAL_STUFF = True
|
||||
|
||||
if EXPERIMENTAL_STUFF:
|
||||
is_mobile = True #request.user_agent().is_mobile
|
||||
is_mobile = request.user_agent().is_mobile
|
||||
if is_mobile:
|
||||
response.view = response.view.replace(
|
||||
'default/','default.mobile/')
|
||||
response.view = response.view.replace('default/','default.mobile/')
|
||||
response.menu = []
|
||||
|
||||
from gluon.admin import *
|
||||
|
||||
@@ -170,8 +170,7 @@ for c in controllers: controller_functions+=[c[:-3]+'/%s.html'%x for x in functi
|
||||
{{if not statics:}}<p><strong>{{=T("There are no static files")}}</strong></p>{{pass}}
|
||||
<ul data-role="listview" data-inset="true">
|
||||
{{
|
||||
from collections import OrderedDict
|
||||
tree=OrderedDict()
|
||||
tree={}
|
||||
for file in statics+['']:
|
||||
items=file.partition('/')
|
||||
if not items[0] in tree:
|
||||
@@ -180,7 +179,7 @@ for c in controllers: controller_functions+=[c[:-3]+'/%s.html'%x for x in functi
|
||||
tree[items[0]].append(items[2])
|
||||
pass
|
||||
}}
|
||||
{{for k, v in tree.iteritems():}}
|
||||
{{for k, v in sorted(tree.items()):}}
|
||||
{{if k:}}
|
||||
<li><a>{{=k}}</a>
|
||||
<ul data-theme='c'>
|
||||
|
||||
Reference in New Issue
Block a user