From 6acc2b6ed702a7a644e2190251f5c4f2a2945944 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 6 Jun 2012 10:51:34 -0500 Subject: [PATCH 01/17] fixed web2py.py himBH>jQuery, thanks Anthony --- VERSION | 2 +- applications/admin/static/js/web2py.js | 4 ++-- applications/examples/static/js/web2py.js | 4 ++-- applications/welcome/static/js/web2py.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/VERSION b/VERSION index 7bc11a3d..bfd5c40a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-05 20:02:32) dev +Version 2.00.0 (2012-06-06 10:51:30) dev diff --git a/applications/admin/static/js/web2py.js b/applications/admin/static/js/web2py.js index b2f7e8dd..71dbc8e8 100644 --- a/applications/admin/static/js/web2py.js +++ b/applications/admin/static/js/web2py.js @@ -104,8 +104,8 @@ function web2py_ajax_page(method, action, data, target) { function web2py_component(action, target, timeout, times){ jQuery(function(){ - var element = $("#" + target).get(0); - var statement = "$('#" + target + "').get(0).reload();"; + var element = jQuery("#" + target).get(0); + var statement = "jQuery('#" + target + "').get(0).reload();"; element.reload = function (){ // Continue if times is Infinity or // the times limit is not reached diff --git a/applications/examples/static/js/web2py.js b/applications/examples/static/js/web2py.js index b2f7e8dd..71dbc8e8 100644 --- a/applications/examples/static/js/web2py.js +++ b/applications/examples/static/js/web2py.js @@ -104,8 +104,8 @@ function web2py_ajax_page(method, action, data, target) { function web2py_component(action, target, timeout, times){ jQuery(function(){ - var element = $("#" + target).get(0); - var statement = "$('#" + target + "').get(0).reload();"; + var element = jQuery("#" + target).get(0); + var statement = "jQuery('#" + target + "').get(0).reload();"; element.reload = function (){ // Continue if times is Infinity or // the times limit is not reached diff --git a/applications/welcome/static/js/web2py.js b/applications/welcome/static/js/web2py.js index b2f7e8dd..71dbc8e8 100644 --- a/applications/welcome/static/js/web2py.js +++ b/applications/welcome/static/js/web2py.js @@ -104,8 +104,8 @@ function web2py_ajax_page(method, action, data, target) { function web2py_component(action, target, timeout, times){ jQuery(function(){ - var element = $("#" + target).get(0); - var statement = "$('#" + target + "').get(0).reload();"; + var element = jQuery("#" + target).get(0); + var statement = "jQuery('#" + target + "').get(0).reload();"; element.reload = function (){ // Continue if times is Infinity or // the times limit is not reached From 6fc2147b5e5271c05cffcb0f53a4d7c6b8565c93 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 6 Jun 2012 10:54:44 -0500 Subject: [PATCH 02/17] fixed indentation error, thanks pbreit --- VERSION | 2 +- gluon/dal.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index bfd5c40a..dd963e50 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-06 10:51:30) dev +Version 2.00.0 (2012-06-06 10:54:41) dev diff --git a/gluon/dal.py b/gluon/dal.py index 09fbb747..05aa72df 100644 --- a/gluon/dal.py +++ b/gluon/dal.py @@ -4127,7 +4127,7 @@ class GoogleDatastoreAdapter(NoSQLAdapter): def select(self,query,fields,attributes): (items, tablename, fields) = self.select_raw(query,fields,attributes) # self.db['_lastsql'] = self._select(query,fields,attributes) - rows = [[(t=='id' and item.key().id_or_name()) or \ + rows = [[(t=='id' and item.key().id_or_name()) or \ (t=='nativeRef' and item) or getattr(item, t) \ for t in fields] for item in items] colnames = ['%s.%s' % (tablename, t) for t in fields] From ec3df342d5b5118d57ea2de6e4e7d84a1c4bc13a Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 6 Jun 2012 11:06:41 -0500 Subject: [PATCH 03/17] removed spaces --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index dd963e50..a0f803c7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-06 10:54:41) dev +Version 2.00.0 (2012-06-06 11:06:38) dev From 0b70f7fa48831a8a042b0f4a76b61427a012762b Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 6 Jun 2012 11:19:42 -0500 Subject: [PATCH 04/17] merged with online branch --- VERSION | 2 +- applications/admin/controllers/appadmin.py | 3 +-- applications/examples/controllers/appadmin.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index a0f803c7..a71d48ed 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-06 11:06:38) dev +Version 2.00.0 (2012-06-06 11:19:38) dev diff --git a/applications/admin/controllers/appadmin.py b/applications/admin/controllers/appadmin.py index 7a2ce1f7..70f66878 100644 --- a/applications/admin/controllers/appadmin.py +++ b/applications/admin/controllers/appadmin.py @@ -25,8 +25,7 @@ try: except: hosts = (http_host, ) -if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\ - in ['https', 'HTTPS']: +if request.env.http_x_forwarded_for or request.is_https: session.secure() elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"): raise HTTP(200, T('appadmin is disabled because insecure channel')) diff --git a/applications/examples/controllers/appadmin.py b/applications/examples/controllers/appadmin.py index 7a2ce1f7..70f66878 100644 --- a/applications/examples/controllers/appadmin.py +++ b/applications/examples/controllers/appadmin.py @@ -25,8 +25,7 @@ try: except: hosts = (http_host, ) -if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\ - in ['https', 'HTTPS']: +if request.env.http_x_forwarded_for or request.is_https: session.secure() elif (remote_addr not in hosts) and (remote_addr != "127.0.0.1"): raise HTTP(200, T('appadmin is disabled because insecure channel')) From 50e5bc007552de56115a497471657ae84723a4a2 Mon Sep 17 00:00:00 2001 From: Massimo DiPierro Date: Wed, 6 Jun 2012 11:37:28 -0500 Subject: [PATCH 05/17] fixed welcome layout on lack of auth --- VERSION | 2 +- applications/welcome/views/layout.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index a71d48ed..aa7f9f29 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-06 11:19:38) dev +Version 2.00.0 (2012-06-06 11:37:26) dev diff --git a/applications/welcome/views/layout.html b/applications/welcome/views/layout.html index 7454e378..1e793206 100644 --- a/applications/welcome/views/layout.html +++ b/applications/welcome/views/layout.html @@ -93,7 +93,7 @@ web2py™  - +