[web2py] admin static files fail to load after web2py upgrade

2015-05-27 Thread Juozas Masiulis
I've upgraded web2py to version 2.9.12-stable+timestamp.2015.01.17.06.11.03 
via web interface. Now, when I go to any admin page it looks broken, 
because it fails to load any static files. It tries to load the files from 
the wrong path, for example it tries to load jquery 
from https://mydomain.com/admin/static/*_2.9.12/_2.9.12*/js/jquery.js and 
the same for all static files. 

how can this be solved?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Google plus login on web2py

2015-05-14 Thread Juozas Masiulis
How should the google plus login be implemented on web2py?  Janrain does 
not work with google plus, and 
gluon/contrib/login_methods/oauth20_account.py provides an example only for 
facebook, but I have no idea on how to implement it  with google. Google 
provides examples for flask, but they are not helpfull for web2py.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] Re: https only on admin

2015-02-10 Thread Juozas Masiulis
So standard deployment should not require https use sitewide?I thought this 
was intended behaviour, because this happens on any computer that I've 
tried this on, for example fresh ubuntu 14.04 droplet.

On Thursday, February 5, 2015 at 11:39:23 PM UTC+2, Massimo Di Pierro wrote:

 You are the second person to report this problem. Was this after an 
 upgrade? Have you deleted your session files? Do you have any 
 special/unusual library installed?

 On Tuesday, 3 February 2015 14:48:21 UTC-6, Juozas Masiulis wrote:

 For certain reasons I could not use https for my entire website. I load 
 content from external domains through javascript, which I do not controll, 
 and those scripts get blocked by the browser. I would like to use https 
 only on admin, and I can get apache to redirect only admin to https  by 
 using this http://pastebin.com/raw.php?i=Hkz9YqnH config 

 The redirection seems to work correctly, but then I can't acces admin 
 interface, because I am getting an exception , which I could read only by 
 changing this back to default config. 

 Traceback (most recent call last):
 File /var/www/web2py/gluon/main.py, line 435, in wsgibase
 session.connect(request, response)
 File /var/www/web2py/gluon/globals.py, line 931, in connect
 session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
 TypeError: 'NoneType' object is not callable


 926.
 927.
 928.
 929.
 930.
 931.

 932.
 933.
 934.
 935.

 response.cookies[response.session_id_name]['path'] = '/'
 if cookie_expires:
 response.cookies[response.session_id_name]['expires'] = \
 cookie_expires.strftime(FMT)

 session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)

 response.session_hash = hashlib.md5(session_pickled).hexdigest()

 if self.flash:
 (response.flash, self.flash) = (self.flash, None)

 Function argument list

 (self=Storage {}, request=Storage {'_vars': None, 'function': 'index', 
 'c...'folder': '/var/www/web2py/applications/admin/'}, response=Storage 
 {'body': cStringIO.StringO object at 0..._caller': function lambda at 
 0x7f0dbcfb3050}, db=None, tablename='web2py_session', masterapp='admin', 
 migrate=True, separate=None, check_client=False, cookie_key=None, 
 cookie_expires=None, compression_level=None)



-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[web2py] https only on admin

2015-02-03 Thread Juozas Masiulis
For certain reasons I could not use https for my entire website. I load 
content from external domains through javascript, which I do not controll, 
and those scripts get blocked by the browser. I would like to use https 
only on admin, and I can get apache to redirect only admin to https  by 
using this http://pastebin.com/raw.php?i=Hkz9YqnH config 

The redirection seems to work correctly, but then I can't acces admin 
interface, because I am getting an exception , which I could read only by 
changing this back to default config. 

Traceback (most recent call last):
File /var/www/web2py/gluon/main.py, line 435, in wsgibase
session.connect(request, response)
File /var/www/web2py/gluon/globals.py, line 931, in connect
session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)
TypeError: 'NoneType' object is not callable


926.
927.
928.
929.
930.
931.

932.
933.
934.
935.

response.cookies[response.session_id_name]['path'] = '/'
if cookie_expires:
response.cookies[response.session_id_name]['expires'] = \
cookie_expires.strftime(FMT)

session_pickled = pickle.dumps(self, pickle.HIGHEST_PROTOCOL)

response.session_hash = hashlib.md5(session_pickled).hexdigest()

if self.flash:
(response.flash, self.flash) = (self.flash, None)

Function argument list

(self=Storage {}, request=Storage {'_vars': None, 'function': 'index', 
'c...'folder': '/var/www/web2py/applications/admin/'}, response=Storage 
{'body': cStringIO.StringO object at 0..._caller': function lambda at 
0x7f0dbcfb3050}, db=None, tablename='web2py_session', masterapp='admin', 
migrate=True, separate=None, check_client=False, cookie_key=None, 
cookie_expires=None, compression_level=None)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.