[web2py] Re: cas and basic auth

2015-04-23 Thread Massimiliano
I found that is not cas related, it seem that doesn't work neither in a basic app. Has something to do with this issue? https://github.com/web2py/web2py/issues/621 Thank you Massimiliano On Thursday, April 23, 2015 at 3:58:33 PM UTC+2, Massimiliano wrote: Hi, I've a number of

[web2py] Re: Need support for web2py application with over 1 million users.

2015-04-23 Thread Derek
Barring him sharing that information, what general advice can you give regarding this? For example, should you store sessions in redis and setup squid and nginx on the hosts? How do you handle the migrations, etc? On Saturday, April 18, 2015 at 8:26:00 PM UTC-7, Massimo Di Pierro wrote:

[web2py] How to avoid error when app is renamed and sessions are stored in db and shared through domains?

2015-04-23 Thread Lisandro
I have two apps running on production: init app, and panel app. Both of them are using the same database (symlinked models and databases folder). The sessions are stored in the db. The main app is init, so I'm connecting to session like this: session.connect(request, response, db=db,

[web2py] ATTENTION: Login requires a secure (HTTPS) connection or running on localhost.

2015-04-23 Thread Aydin S
I read the solutions for this error, could not resolve it. Before, I had the following code in the access.py deleted and everything worked fine. if request.is_https: session.secure() elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin is disabled because insecure

[web2py] IS_MATCH validator bug with unicode

2015-04-23 Thread Alex
Hi, there is a bug when the IS_MATCH validator is used with is_unicode=True If the input contains non-ascii characters and is already unicode an UnicodeEncodeError occurs: def __call__(self, value): if self.is_unicode and not isinstance(value,unicode): match =

[web2py] Janrain: NEW OpenID connect

2015-04-23 Thread Stefan van den Eertwegh
Dear fellow web2py users, I understand that the Janrain plugin in web2py makes use of openID for Google Accounts authorization. Now at the moment we get a warning from the authorization site that google doesn't use OpenID anymore and therefore we need to use OpenID Connect. Is this a change in

[web2py] Re: LOAD() problem: Yes, I am bungling the world's smallest web2py app.

2015-04-23 Thread Anthony
You need a showtasks function in your default.py controller -- do you have one? On Thursday, April 23, 2015 at 1:00:50 PM UTC-4, Tom Campbell wrote: When I run the following no error gets logged but index.html gets the message invalid function (default/showtasks) rendered in the view.

[web2py] Re: Need support for web2py application with over 1 million users.

2015-04-23 Thread Paolo Valleri
Mind that if you store session in the database/redis you could have problems in pages that use components (es: load). Otherwise, it is a good starting point. On Thursday, April 23, 2015 at 6:21:51 PM UTC+2, Derek wrote: Barring him sharing that information, what general advice can you give

Re: [web2py] Re: cas and basic auth

2015-04-23 Thread Massimiliano
I don't know why but I found that it work with curl but not with wget. Someone knows why? When I'm going to advice to my customer's partner a method to access to the system what I have to say? Thank you On Thu, Apr 23, 2015 at 5:11 PM, Massimiliano mbelle...@gmail.com wrote: I found that is

[web2py] LOAD() problem: Yes, I am bungling the world's smallest web2py app.

2015-04-23 Thread Tom Campbell
When I run the following no error gets logged but index.html gets the message invalid function (default/showtasks) rendered in the view. Controller in default.py: def index(): return dict(grid=SQLFORM.grid(db.task,user_signature=False)) index.html: {{extend 'layout.html'}}

[web2py] Re: LOAD() problem: Yes, I am bungling the world's smallest web2py app.

2015-04-23 Thread Tom Campbell
Anthony, thank you thank you thank you! I made these changes as follows and it works like a charm. In default.py def index(): return locals() def showtasks(): return dict(grid=SQLFORM.grid(db.task,user_signature=False)) I never considered for a second I would require a controller. I

[web2py] Re: How to avoid error when app is renamed and sessions are stored in db and shared through domains?

2015-04-23 Thread Lisandro
I could get it to work, however I'm still concerned about something. This is what I have and it is working: session.connect(request, response, db=db, masterapp='init') response.cookies[response.session_id_name]['domain'] = 'website.com' As I said before, the two apps were renamed, keeping the

Re: [web2py] Re: New error in trunk' s sqlhtml.py: AttributeError: 'SQLCustomType' object has no attribute 'represent'

2015-04-23 Thread Dave S
On Wednesday, April 22, 2015 at 11:56:33 PM UTC-7, Johann Spies wrote: Apologies for my previous email. I have read the README again and saw I had to do a git submodule update --init --recursive. Now it is working. Where are the days when I could just do a hg pull; hg update. :) There

Re: [web2py] Re: A bug in _after_insert callback's document (book)? And more.

2015-04-23 Thread Ray (a.k.a. Iceberg)
On Wednesday, April 22, 2015 at 6:56:13 AM UTC-7, Anthony wrote: It is a different story when building a RESTful API. There would be no rendering behavior before form submission, and normally I use state-less HTTP basic auth and then purposely turn off session feature. Unless I force my

[web2py] cas and basic auth

2015-04-23 Thread Massimiliano
Hi, I've a number of applications that use cas to authenticate. Now I need to allow an automatic download for an external integration, but I don't' find a way to make it work. I other word I need that someone download a csv file via wget o somthing like that. I tried: in db.py: auth =

Re: [web2py] Re: New error in trunk' s sqlhtml.py: AttributeError: 'SQLCustomType' object has no attribute 'represent'

2015-04-23 Thread Johann Spies
Git pull says my code is up-to-date. Isn't pydal to be part of web2py? How do I update that separately? Regards. Johann On 22 April 2015 at 22:31, Paolo Valleri paolo.vall...@gmail.com wrote: Hi, this it should have been fixed Have you tried with the last trunk? Be sure to update pydal too.

Re: [web2py] Re: New error in trunk' s sqlhtml.py: AttributeError: 'SQLCustomType' object has no attribute 'represent'

2015-04-23 Thread Johann Spies
Apologies for my previous email. I have read the README again and saw I had to do a git submodule update --init --recursive. Now it is working. Where are the days when I could just do a hg pull; hg update. :) Regards Johann On 23 April 2015 at 08:47, Johann Spies johann.sp...@gmail.com wrote: