diff --git a/Makefile b/Makefile index 97967812..6a646213 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ app: python2.5 -c 'import compileall; compileall.compile_dir("gluon/")' #python web2py.py -S welcome -R __exit__.py find gluon -path '*.pyc' -exec cp {} ../web2py_osx/site-packages/{} \; + cd ../web2py_osx/site-packages/; unzip ../site-packages.zip cd ../web2py_osx/site-packages/; zip -r ../site-packages.zip * mv ../web2py_osx/site-packages.zip ../web2py_osx/web2py/web2py.app/Contents/Resources/lib/python2.5 cp README.markdown ../web2py_osx/web2py/web2py.app/Contents/Resources @@ -86,6 +87,7 @@ win: echo 'did you uncomment import_all in gluon/main.py?' python2.5 -c 'import compileall; compileall.compile_dir("gluon/")' find gluon -path '*.pyc' -exec cp {} ../web2py_win/library/{} \; + cd ../web2py_win/library/; unzip ../library.zip cd ../web2py_win/library/; zip -r ../library.zip * mv ../web2py_win/library.zip ../web2py_win/web2py cp README.markdown ../web2py_win/web2py/ diff --git a/VERSION b/VERSION index 7bc11a3d..f702230c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.00.0 (2012-06-05 20:02:32) dev +Version 2.00.0 (2012-06-12 08:25:19) 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/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/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')) 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 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™  - +