[web2py] grid orderby parameter not quite useful for a foreign key column

2014-07-05 Thread 98ujko9
The grid below orders the rows by part_description column only the first time the action is called. After that if you click on the header link it orders by pp_part_id foreign key which is not as useful as it could be by part_description. Why the link in the header for that column does not receiv

[web2py] jQuery effect bug in book?

2014-07-05 Thread Francisco G. T. Ribeiro
I believe there is a small problem one of the examples at jQuery effects section in the book ( http://www.web2py.com/books/default/chapter/29/11/jquery-and-ajax ). So, where you see Hello World I believe this does not belong as the author intended .. instead it should be: Hello WorldEnter cod

[web2py] Re: Best way to ensure uniqueness of two fields?

2014-07-05 Thread Dave S
On Monday, June 23, 2014 5:50:26 AM UTC-7, madd...@googlemail.com wrote: > > [...] > where I need the combination of topic and teacher to be unique so one > person can register as a teacher for a certain topic only one time. > > Skill and description are filled in using SQLFORM and topic and teach

[web2py] Using DAL inside a thread

2014-07-05 Thread Wonton
Hello! As I commented in other post (https://groups.google.com/forum/#!topic/web2py/ZbEndj2H-fk) I have problems using APNSWrapper feedback service sending push notifications. While I wait for an answer I've thought a possible solution to my problem. This solution consists in: 1. I'm going to

[web2py] APNSFeedbackWrapper receive method freezes

2014-07-05 Thread Wonton
Hello! I'm developing a backend with web2py. This backend sends iOS push notifications under certain circumstances. To do this I'm using the library APNSWrapper (https://code.google.com/p/apns-python-wrapper/). This library fails sending multiple push notifications if one of the token is incor

[web2py] Re: SQLFORM deletable - does it cascade?

2014-07-05 Thread lyn2py
I manually did the work around instead of using SQLFORM's deletable. Thanks Massimo! On Friday, July 4, 2014 4:51:03 PM UTC+8, Massimo Di Pierro wrote: > > I am not sure. Can you explain more of what you are doing? I can see a > problem with record versioning. It is supposed o work so that recor

[web2py] Re: tip of the day. The power of routes

2014-07-05 Thread lyn2py
In using this routes.py, cannot have the word "admin" within the function. Not sure why that is so, but it breaks the routes and generates an "Invalid Request". This was my issue: https://groups.google.com/forum/#!topic/web2py/2GyztlR-ZYI In addition, I am unable to use more than the default.py

[web2py] Re: Web2py error: "Invalid Request" - where to get error log?

2014-07-05 Thread lyn2py
Ok, I managed to find out the problem, but I don't know why it behaves as such. The problem was, I had the word "admin" in the function. When I changed it to anything else, it would work with the routing code posted by Massimo here: https://groups.google.com/forum/#!topic/web2py/8KxcHTRIBWU

[web2py] Re: bootstrap readonly

2014-07-05 Thread Annet
Thank you both for your replies. In my model I have writable=False and readable=False, in case a field should be readable I set readable=True. Web2py renders readable=True and writable=False fields in a div field value By adding: if isinstance(controls, basestring) or isinstance(controls, int)

Re: [web2py] Re: tip of the day. The power of routes

2014-07-05 Thread lyn2py
Hi Tuan, I tried the change (line in red) but it couldn't route to my app properly. I'm not familiar with the regex routes, so I'm using it as-is. I don't know how to troubleshoot this. On Friday, July 4, 2014 9:59:37 AM UTC+8, Nguyen Minh Tuan wrote: > > Hi Massimo, > > Lyn2py posted above