removed unwanted whitespaces

This commit is contained in:
mdipierro
2012-08-16 11:56:07 -05:00
parent f78f27982b
commit a608df5a29
90 changed files with 253 additions and 162 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.0 (2012-08-16 11:06:01) dev Version 2.00.0 (2012-08-16 11:56:03) dev
+2
View File
@@ -4,3 +4,5 @@
+1
View File
@@ -308,3 +308,4 @@ if __name__=='__main__':
+1
View File
@@ -5,3 +5,4 @@ def webapp_add_wsgi_middleware(app):
+1
View File
@@ -64,3 +64,4 @@ wsgiref.handlers.CGIHandler().run(gluon.main.wsgibase)
+1
View File
@@ -54,3 +54,4 @@ fcgi.WSGIServer(application, bindAddress='/tmp/fcgi.sock').run()
+1
View File
@@ -102,3 +102,4 @@ if __name__ == '__main__':
+2
View File
@@ -50,3 +50,5 @@ if 0:
+1
View File
@@ -464,3 +464,4 @@ def create_missing_app_folders(request):
+1
View File
@@ -497,3 +497,4 @@ def lazy_cache(key=None,time_expire=None,cache_model='ram'):
return g return g
return decorator return decorator
+1
View File
@@ -55,3 +55,4 @@ def getcfs(key, filename, filter=None):
+1
View File
@@ -690,3 +690,4 @@ if __name__ == '__main__':
+1
View File
@@ -722,3 +722,4 @@ def contenttype(filename, default='text/plain'):
+1
View File
@@ -262,3 +262,4 @@ if __name__=='__main__':
+1
View File
@@ -242,3 +242,4 @@ if __name__=='__main__':
+1
View File
@@ -4,3 +4,4 @@
+1
View File
@@ -500,3 +500,4 @@ aes_Rcon = array('B',
'c697356ad4b37dfaefc5913972e4d3bd' 'c697356ad4b37dfaefc5913972e4d3bd'
'61c29f254a943366cc831d3a74e8cb'.decode('hex') '61c29f254a943366cc831d3a74e8cb'.decode('hex')
) )
+1
View File
@@ -196,3 +196,4 @@ if __name__=="__main__":
print expand_html(open(sys.argv[1]).read()) print expand_html(open(sys.argv[1]).read())
else: else:
print test() print test()
+1
View File
@@ -193,3 +193,4 @@ if __name__ == "__main__":
+1
View File
@@ -3909,3 +3909,4 @@ def parse(url_file_stream_or_string, etag=None, modified=None, agent=None, refer
+1
View File
@@ -54,3 +54,4 @@ class MemcacheClient(Client):
+1
View File
@@ -89,3 +89,4 @@ def autoretry_datastore_timeouts(attempts=5.0, interval=0.1, exponent=2.0):
+1
View File
@@ -66,3 +66,4 @@ def pdf_from_html(html):
+1
View File
@@ -18,3 +18,4 @@ def button(merchant_id="123456789012345",
+1
View File
@@ -8,3 +8,4 @@ from gluon.dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, driv
+1
View File
@@ -57,3 +57,4 @@ def THUMB(image, nx=120, ny=120, gae=False, name='thumb'):
return thumb return thumb
else: else:
return image return image
+1
View File
@@ -910,3 +910,4 @@ if __name__ == '__main__':
+1
View File
@@ -126,3 +126,4 @@ if __name__ == "__main__":
+1
View File
@@ -128,3 +128,4 @@ def test():
if __name__ == '__main__': if __name__ == '__main__':
test() test()
+1
View File
@@ -170,3 +170,4 @@ if __name__ == '__main__':
+1
View File
@@ -963,3 +963,4 @@ if __name__ == '__main__':
qdb.main(**kwargs) qdb.main(**kwargs)
+1
View File
@@ -166,3 +166,4 @@ class RedisClient(object):
+1
View File
@@ -591,3 +591,4 @@ if __name__ == '__main__':
+1
View File
@@ -269,3 +269,4 @@ if __name__=='__main__':
+1
View File
@@ -150,3 +150,4 @@ if __name__ == "__main__":
print client.add(1, 2) print client.add(1, 2)
+1
View File
@@ -115,3 +115,4 @@ def sms_email(number,provider):
+1
View File
@@ -878,3 +878,4 @@ if __name__ == '__main__':
s.cell('c', value="=cos(a)**2+b*b") s.cell('c', value="=cos(a)**2+b*b")
print s['c'].computed_value print s['c'].computed_value
+1
View File
@@ -65,3 +65,4 @@ if __name__=='__main__':
+1
View File
@@ -246,3 +246,4 @@ class TaskBarIcon:
+1
View File
@@ -94,3 +94,4 @@ if __name__=='__main__':
# You can turn off ordering of results # You can turn off ordering of results
print(t.getReportText(orderByCost=False)) print(t.getReportText(orderByCost=False))
+1
View File
@@ -519,3 +519,4 @@ class mobilize(object):
+1
View File
@@ -328,3 +328,4 @@ class _Web2pyDateTrackerImporter(_Web2pyImporter, _DateTrackerImporter):
+1
View File
@@ -9120,3 +9120,4 @@ if __name__ == '__main__':
+1
View File
@@ -191,3 +191,4 @@ import gluon.main
gluon.main.global_settings.debugging = True gluon.main.global_settings.debugging = True
+1
View File
@@ -77,3 +77,4 @@ def decoder(buffer):
+1
View File
@@ -397,3 +397,4 @@ def abspath(*relpath, **base):
return os.path.join(global_settings.gluon_parent, path) return os.path.join(global_settings.gluon_parent, path)
return os.path.join(global_settings.applications_parent, path) return os.path.join(global_settings.applications_parent, path)
+6 -5
View File
@@ -524,24 +524,24 @@ class Session(Storage):
) )
try: try:
# Get session data out of the database # Get session data out of the database
# Key comes from the cookie # Key comes from the cookie
key = request.cookies[response.session_id_name].value key = request.cookies[response.session_id_name].value
(record_id, unique_key) = key.split(':') (record_id, unique_key) = key.split(':')
if record_id == '0': if record_id == '0':
raise Exception, 'record_id == 0' raise Exception, 'record_id == 0'
# Select from database. # Select from database.
rows = db(table.id == record_id).select() rows = db(table.id == record_id).select()
# Make sure the session data exists in the database # Make sure the session data exists in the database
if len(rows) == 0 or rows[0].unique_key != unique_key: if len(rows) == 0 or rows[0].unique_key != unique_key:
raise Exception, 'No record' raise Exception, 'No record'
# rows[0].update_record(locked=True) # rows[0].update_record(locked=True)
# Unpickle the data # Unpickle the data
session_data = cPickle.loads(rows[0].session_data) session_data = cPickle.loads(rows[0].session_data)
self.update(session_data) self.update(session_data)
except Exception: except Exception:
@@ -668,3 +668,4 @@ class Session(Storage):
+1
View File
@@ -347,3 +347,4 @@ if __name__ == '__main__':
+1
View File
@@ -2434,3 +2434,4 @@ if __name__ == '__main__':
+1
View File
@@ -141,3 +141,4 @@ def redirect(location, how=303, client_side=False):
+1
View File
@@ -112,3 +112,4 @@ for module in base_modules + contributed_modules:
+1
View File
@@ -938,3 +938,4 @@ if __name__ == '__main__':
import doctest import doctest
doctest.testmod() doctest.testmod()
+1
View File
@@ -851,3 +851,4 @@ class HttpServer(object):
+1
View File
@@ -13,3 +13,4 @@ class MessageBoxHandler(logging.Handler):
if tkMessageBox: if tkMessageBox:
msg = self.format(record) msg = self.format(record)
tkMessageBox.showinfo('info1', msg) tkMessageBox.showinfo('info1', msg)
+1
View File
@@ -31,3 +31,4 @@ regex_extend = re.compile(\
+1
View File
@@ -342,3 +342,4 @@ def crondance(applications_parent, ctype='soft', startup=False, apps=None):
+1
View File
@@ -150,3 +150,4 @@ if __name__=='__main__':
f.close() f.close()
+1
View File
@@ -1716,3 +1716,4 @@ ADAPTERS['all'] = reduce(lambda a,b:a.union(b),(x for x in ADAPTERS.values()))
+1
View File
@@ -306,3 +306,4 @@ def snapshot(info=None, context=5, code=None, environment=None):
+1
View File
@@ -1316,3 +1316,4 @@ def get_effective_router(appname):
+1
View File
@@ -2084,3 +2084,4 @@ if __name__=='__main__':
+1
View File
@@ -227,3 +227,4 @@ def sanitize(text, permitted_tags=[
+1
View File
@@ -801,3 +801,4 @@ def main():
if __name__=='__main__': if __name__=='__main__':
main() main()
+1
View File
@@ -116,3 +116,4 @@ def rss(feed):
+1
View File
@@ -33,3 +33,4 @@ global_settings.is_jython = 'java' in sys.platform.lower() or \
hasattr(sys, 'JYTHON_JAR') or \ hasattr(sys, 'JYTHON_JAR') or \
str(sys.copyright).find('Jython') > 0 str(sys.copyright).find('Jython') > 0
+1
View File
@@ -430,3 +430,4 @@ if __name__ == '__main__':
+1
View File
@@ -8,3 +8,4 @@ from dal import DAL, Field, Table, Query, Set, Expression, Row, Rows, drivers, B
+3 -2
View File
@@ -1303,8 +1303,8 @@ class SQLFORM(FORM):
(source_file, original_filename) = (f.file, f.filename) (source_file, original_filename) = (f.file, f.filename)
elif isinstance(f, (str, unicode)): elif isinstance(f, (str, unicode)):
### do not know why this happens, it should not ### do not know why this happens, it should not
(source_file, original_filename) = \ (source_file, original_filename) = \
(cStringIO.StringIO(f), 'file.txt') (cStringIO.StringIO(f), 'file.txt')
newfilename = field.store(source_file, original_filename, newfilename = field.store(source_file, original_filename,
field.uploadfolder) field.uploadfolder)
# this line was for backward compatibility but problematic # this line was for backward compatibility but problematic
@@ -2637,3 +2637,4 @@ class ExporterHtml(ExportClass):
+1
View File
@@ -244,3 +244,4 @@ if __name__ == '__main__':
+1
View File
@@ -111,3 +111,4 @@ def stream_file_or_304_or_206(
+1
View File
@@ -947,3 +947,4 @@ if __name__ == '__main__':
+1
View File
@@ -4813,3 +4813,4 @@ if __name__ == '__main__':
+1
View File
@@ -653,3 +653,4 @@ if __name__ == '__main__':
doctests() doctests()
+1
View File
@@ -185,3 +185,4 @@ def is_valid_ip_address(address):
+1
View File
@@ -3151,3 +3151,4 @@ if __name__ == '__main__':
+1
View File
@@ -1183,3 +1183,4 @@ end tell
+1
View File
@@ -171,3 +171,4 @@ if __name__ == '__main__':
+1
View File
@@ -24,3 +24,4 @@ def handler(request, response, methods):
+1
View File
@@ -36,3 +36,4 @@ if __name__=='__main__':
+1
View File
@@ -225,3 +225,4 @@ def handler(req):
+1
View File
@@ -34,3 +34,4 @@ nocron = None
+1
View File
@@ -212,3 +212,4 @@ if __name__ == '__main__':
+1
View File
@@ -173,3 +173,4 @@ if __name__ == '__main__':
+1
View File
@@ -74,3 +74,4 @@ if SOFTCRON:
SCGIServer(application, port=4000).enable_sighandler().run() SCGIServer(application, port=4000).enable_sighandler().run()
+1
View File
@@ -80,3 +80,4 @@ if __name__ == '__main__':
+1
View File
@@ -55,3 +55,4 @@ setup(app=['web2py.py'],
+1
View File
@@ -185,3 +185,4 @@ print "Enjoy web2py " +web2py_version_line
+1
View File
@@ -167,3 +167,4 @@ print "Enjoy web2py " +web2py_version_line
+1
View File
@@ -26,3 +26,4 @@ if __name__ == '__main__':
+1
View File
@@ -45,3 +45,4 @@ if SOFTCRON: