[web2py] Digest authenatication with web2py and JSONRPC?

2012-06-30 Thread Alec Taylor
My current frontend works nicely, being built with web2py views (templates). Now I need to create a new frontend in JavaScript (probably using AngularJS) that will be used for the mobile app with PhoneGap . Are there helpers for Digest access authen

Re: [web2py] Re: Multi_tenant

2012-06-30 Thread Ovidio Marinho
Yes, I would like to Usai Id and not the host / ip. We know that multi-tentant came to automating a service saas in web2py, but as literature, and we lack a bit of a hurry to create one field in the table auth.user.hospital and popular with the same content of created_by, so we have a function in

Re: [web2py] Routes - simple requirement, but how??

2012-06-30 Thread villas
Hi Anthony, Yes, my main point being especially that the average user cannot get to the bottom of it all. I think that this is mostly a question of documentation, but it would be nice to know what the limitations are so that time wasting can be avoided when users are trying to find a routing

[web2py] Homemade Task Queues

2012-06-30 Thread mehta
Hi Group, Homemade Task Queues specifies that we make a .py file and run the following command. python web2py.py -S app -M -N -R applications/app/private/myscript.py -A a b c I am new to web2py and I don't know where the .py file shoul be located and where and how should I write the above co

[web2py] Editing the auth table schema

2012-06-30 Thread Scott
I'm trying to remove the fields 'first_name' and 'last_name' from the auth_user database, or at least stop them from showing up on the registration forms and such. I've tried the following in db.py: db.auth_user.first_name.readable = db.auth_user.first_name.writable = False I also placing th

[web2py] Re: powertable ( multiple tables on the same page )

2012-06-30 Thread juaneduardo
Hi Chris, finally how did you solved the aoColumns error. I followed Bruno Instructions but always is the same problem El lunes, 18 de julio de 2011 12:47:40 UTC-4, Chris Baron escribió: > > Thanks! - I appreciate the help. > > However, now I'm receiving a javascript error : "Cannot read proper

[web2py] Re: Getting auth.settings.register_next to work...

2012-06-30 Thread Anthony
Looks like auth.navbar() automatically adds the current URL as the _next parameter so whenever someone clicks on an auth.navbar() link, after finishing that action, they are returned to their original page. Also, auth.settings.register_next (and similar) are only used as backup defaults when th

[web2py] Re: Getting auth.settings.register_next to work...

2012-06-30 Thread Anthony
Note, the first two options below will disable the _next functionality for all Auth actions. The last solution disables it only for the register action. Anthony On Saturday, June 30, 2012 10:12:50 AM UTC-4, Anthony wrote: > > Looks like auth.navbar() automatically adds the current URL as the _n

[web2py] Re: debugging procedure

2012-06-30 Thread Anthony
I'm not sure if it's available in stable, but in trunk there is now debugging built into the admin app. You can set breakpoints directly in the admin editor. Anthony On Friday, June 29, 2012 5:13:06 PM UTC-4, Janath wrote: > > Hi, > > So far I have connected the algorithms that I developed in p

[web2py] Re: Editing the auth table schema

2012-06-30 Thread Massimo Di Pierro
This db.auth_user.first_name.readable = db.auth_user.first_name.writable = False should prevent them from showing up. Does it not? massimo On Saturday, 30 June 2012 00:00:16 UTC-5, Scott wrote: > > I'm trying to remove the fields 'first_name' and 'last_name' from the > auth_user database, or a

[web2py] Re: Homemade Task Queues

2012-06-30 Thread Massimo Di Pierro
Source distribution: >From the main web2py folder python web2py.py -S app -M -N -R path/to/myscript.py -A a b c Binary distribution (windows): web2py.exe -S app -M -N -R path/to/myscript.py -A a b c myscript.py can be anywhere as long as path/to is its absolute path or relative path from the p

[web2py] Re: Server side rendering requiring js library. Svg to png. D3.js

2012-06-30 Thread Anthony
I think you will need some kind of headless browser to execute the JS on the server. Maybe something like https://github.com/ryanpetrello/python-zombie or http://code.google.com/p/py-webkit-html-manipulator/. Anthony On Friday, June 29, 2012 5:06:20 PM UTC-4, Andrew wrote: > > Hello, > I have

Re: [web2py] Re: Getting auth.settings.register_next to work...

2012-06-30 Thread Doug Philips
Looking at tools/gluon.py again now that I have something working and I am not in a rush, I notice something curious, lines 1226 and 1227: li_next = '?_next='+urllib.quote(self.settings.login_next) lo_next = '?_next='+urllib.quote(self.settings.logout_next) So it looks as if maybe

[web2py] Re: debugging procedure

2012-06-30 Thread Cliff Kachinske
Yes, the debugger is there on the application page. Works very well. On Friday, June 29, 2012 5:13:06 PM UTC-4, Janath wrote: > > Hi, > > So far I have connected the algorithms that I developed in python IDLE to > web2py. > > I would like to debug from web2py as I need to find out some errors t

Re: [web2py] Re: Multi_tenant

2012-06-30 Thread Cliff Kachinske
I implemented something similar using PHP years ago. The only advantage to using request_tenant is you don't have to type two lines in every query: (db.mytable.identifier==session.auth.user.identifier) & (db.mytable.is_active==True) But since we have snippets, it's not too hard :) On Saturday,

Re: [web2py] Re: Getting auth.settings.register_next to work...

2012-06-30 Thread Anthony
> > Nonetheless, how Auth implements where to go next just seems > excessively tangled. There are next parameters to the methods, next > parameters in the URLs, and finally, auth.settings._next > fields which are of the last resort, and it is hard to see under what > circumstances the auth.se

Re: [web2py] Re: Multi_tenant

2012-06-30 Thread Ovidio Marinho
sorrry, im not user PHP programin, is web2py/Python. Thanks.        Ovidio Marinho Falcao Neto                 Web Developer              ovidio...@gmail.com           ovidiomari...@itjp.net.br                  ITJP - itjp.net.br                83   8826 9088 - Oi                83   9334 0266

[web2py] Re: Parsing python from db fields?

2012-06-30 Thread Anthony
It appears the render() function creates its own "response" object in the "context" passed to it, so when globals() is passed as the context, it overwrites the response object in the view environment. I think it works, however, if you move the code to the controller and pass the result to the v