some pep8 changes (fixed spacing at end)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
|
||||
@@ -441,7 +441,3 @@ def ccache():
|
||||
|
||||
return dict(form=form, total=total,
|
||||
ram=ram, disk=disk, object_stats=hp != False)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -198,5 +198,3 @@ def toggle_breakpoint():
|
||||
except Exception, e:
|
||||
session.flash = str(e)
|
||||
return response.json({'ok': ok, 'lineno': lineno})
|
||||
|
||||
|
||||
|
||||
@@ -1697,5 +1697,3 @@ def git_push():
|
||||
session.flash = T("Push failed, git exited abnormally. See logs for details.")
|
||||
redirect(URL('site'))
|
||||
return dict(app=app,form=form)
|
||||
|
||||
|
||||
|
||||
@@ -89,6 +89,3 @@ def callback():
|
||||
except:
|
||||
errors=''
|
||||
return (output+errors).replace('\n','<br/>')
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -80,6 +80,3 @@ def revision():
|
||||
desc=ctx.description(),
|
||||
form=form
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -58,4 +58,3 @@ class EXISTS(object):
|
||||
if os.path.exists(value):
|
||||
return (value,None)
|
||||
return (value,self.error_message)
|
||||
|
||||
|
||||
@@ -6,6 +6,3 @@ def index():
|
||||
|
||||
def about():
|
||||
return locals()
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -43,6 +43,3 @@ def reset():
|
||||
session['commands:'+app] = []
|
||||
session['history:'+app] = gluon.contrib.shell.History()
|
||||
return 'done'
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -27,6 +27,3 @@ def profiler():
|
||||
size += len(data)
|
||||
response.cookies[KEY] = size
|
||||
return data
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -127,5 +127,3 @@ def detach_debugger():
|
||||
def call():
|
||||
session.forget()
|
||||
return service()
|
||||
|
||||
|
||||
|
||||
@@ -554,6 +554,3 @@ def call(): return service()
|
||||
path = os.path.join(request.folder,'..',app,'databases','*')
|
||||
for file in glob.glob(path):
|
||||
os.unlink(file)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -19,5 +19,3 @@ for filename in os.listdir(path):
|
||||
os.unlink(fullpath)
|
||||
except:
|
||||
logging.exception('failure to check %s'%fullpath)
|
||||
|
||||
|
||||
|
||||
@@ -78,6 +78,3 @@ PLUGINS_APP = 'http://web2py.com/plugins'
|
||||
# set the language
|
||||
if 'adminLanguage' in request.cookies and not (request.cookies['adminLanguage'] is None):
|
||||
T.force(request.cookies['adminLanguage'].value)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -28,6 +28,3 @@ from gluon.languages import findT, update_all_languages
|
||||
from gluon.myregex import *
|
||||
from gluon.restricted import *
|
||||
from gluon.compileapp import compile_application, remove_compiled_application
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -168,5 +168,3 @@ elif session.authorized and \
|
||||
if request.controller=='appadmin' and DEMO_MODE:
|
||||
session.flash = 'Appadmin disabled in demo mode'
|
||||
redirect(URL('default','sites'))
|
||||
|
||||
|
||||
|
||||
@@ -34,6 +34,3 @@ def helpicon():
|
||||
|
||||
def searchbox(elementid):
|
||||
return TAG[''](LABEL(IMG(_id="search_start",_src=URL('static', 'images/search.png'), _alt=T('filter')), _class='icon', _for=elementid), ' ', INPUT(_id=elementid, _type='text', _size=12))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,3 @@ def is_manager():
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -33,6 +33,3 @@ if os.path.exists('applications/examples'):
|
||||
response.menu.append((T('Help'), False, URL('examples','default','index')))
|
||||
else:
|
||||
response.menu.append((T('Help'), False, 'http://web2py.com/examples'))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
response.files.append(URL('static','plugin_multiselect/jquery.multi-select.js'))
|
||||
response.files.append(URL('static','plugin_multiselect/multi-select.css'))
|
||||
response.files.append(URL('static','plugin_multiselect/start.js'))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +1 @@
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
|
||||
@@ -18,7 +18,3 @@ def flash():
|
||||
|
||||
def fade():
|
||||
return dict()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -441,7 +441,3 @@ def ccache():
|
||||
|
||||
return dict(form=form, total=total,
|
||||
ram=ram, disk=disk, object_stats=hp != False)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
import time
|
||||
|
||||
|
||||
@@ -47,6 +46,3 @@ def cache_controller_and_view():
|
||||
t = time.ctime()
|
||||
d = dict(time=t, link=A('click to reload', _href=URL(r=request)))
|
||||
return response.render(d)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -73,5 +73,3 @@ def changelog():
|
||||
import os
|
||||
filename = os.path.join(request.env.gluon_parent, 'CHANGELOG')
|
||||
return response.render(dict(changelog=MARKMIN(read_file(filename))))
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
def form():
|
||||
""" a simple entry form with various types of objects """
|
||||
|
||||
@@ -23,7 +20,3 @@ def form():
|
||||
else:
|
||||
response.flash = 'please fill the form'
|
||||
return dict(form=form, vars=form.vars)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
session.forget()
|
||||
|
||||
response.menu = [['home', False, '/%s/default/index'
|
||||
@@ -77,7 +76,3 @@ def vars():
|
||||
doc=doc,
|
||||
attributes=attributes,
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,3 @@ def basic():
|
||||
['basic', True, URL('basic')]]
|
||||
response.flash = 'you clicked on basic'
|
||||
return dict(message='you clicked on basic')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
def counter():
|
||||
""" every time you reload, it increases the session.counter """
|
||||
|
||||
@@ -8,7 +5,3 @@ def counter():
|
||||
session.counter = 0
|
||||
session.counter += 1
|
||||
return dict(counter=session.counter)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -137,5 +137,3 @@ Quoted text
|
||||
|
||||
def ajaxwiki_onclick():
|
||||
return MARKMIN(request.vars.text).xml()
|
||||
|
||||
|
||||
|
||||
@@ -7,5 +7,3 @@ def index():
|
||||
sheet = cache.ram('sheet1',lambda:Sheet(10,10,URL('callback')),0)
|
||||
#sheet.cell('r0c3',value='=r0c0+r0c1+r0c2',readonly=True)
|
||||
return dict(sheet=sheet)
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
def variables():
|
||||
return dict(a=10, b=20)
|
||||
|
||||
@@ -31,7 +28,3 @@ def xml():
|
||||
|
||||
def beautify():
|
||||
return dict(message=BEAUTIFY(request))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
def group_feed_reader(group,mode='div',counter='5'):
|
||||
"""parse group feeds"""
|
||||
|
||||
@@ -43,8 +42,3 @@ def code_feed_reader(project,mode='div'):
|
||||
|
||||
|
||||
return html
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -37,5 +37,3 @@ def get_content(b=None,\
|
||||
openedfile.close()
|
||||
|
||||
return html
|
||||
|
||||
|
||||
|
||||
@@ -42,5 +42,3 @@ def toggle_menuclass(cssclass='pressed',menuid='headermenu'):
|
||||
return XML(jscript)
|
||||
else:
|
||||
return ''
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
|
||||
@@ -441,7 +441,3 @@ def ccache():
|
||||
|
||||
return dict(form=form, total=total,
|
||||
ram=ram, disk=disk, object_stats=hp != False)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -71,4 +71,3 @@ def data():
|
||||
LOAD('default','data.load',args='tables',ajax=True,user_signature=True)
|
||||
"""
|
||||
return dict(form=crud())
|
||||
|
||||
|
||||
@@ -81,4 +81,3 @@ use_janrain(auth,filename='private/janrain.key')
|
||||
|
||||
## after defining tables, uncomment below to enable auditing
|
||||
# auth.enable_record_versioning(db)
|
||||
|
||||
|
||||
@@ -98,5 +98,3 @@ def _():
|
||||
]
|
||||
)]
|
||||
_()
|
||||
|
||||
|
||||
|
||||
@@ -37,4 +37,3 @@ routers = {
|
||||
#NOTE! To change language in your application using these rules add this line
|
||||
#in one of your models files:
|
||||
# if request.uri_language: T.force(request.uri_language)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user