[web2py] Re: Sum issues while computing the total of a table field

2016-09-30 Thread Anthony Bastardi
Hey all, Please don't cc my personal email address on web2py Google Group posts. I'll see any posts directly on the group. Thanks. Anthony On Fri, Sep 30, 2016 at 7:48 AM, 黄祥 wrote: > pls try not tested : > def dashboard_admin(): > query = (db.payslip.state

Re: [web2py] Re: Custom auth

2014-06-01 Thread Anthony Bastardi
Well, the post below made it onto the group, as that's where I saw it and responded. Looks like someone approved your individual post but didn't give you general approval to post. Anyway, I changed your status, so you should now be able to post without moderation. Anthony On Sun, Jun 1, 2014 at

Re: [web2py] Re: Google Groups problem

2011-12-06 Thread Anthony Bastardi
Hmm, email updates seem to be working for me (I just turned it on since the Forum interface is no longer working). Anyway, if you go to https://groups.google.com/forum/#!forum/web2py and are logged in, the options dropdown (gear icon) in the upper right should include a Feedback option, which you

Re: [web2py] Re: vars passed to LOAD become strings

2011-12-06 Thread Anthony Bastardi
One question related to the A() callback. Defining a div id=some_id /div and adding a target=some_id to the A works very well. I tried to do session.flash/response.flash inside the callback function but it didn't work. Is there a way to do it? def callback_function(): it does some

Re: [web2py] Re: Numbers only field

2011-12-06 Thread Anthony Bastardi
How about: replace(/[^ .0-9]/g,'') On Tue, Dec 6, 2011 at 11:36 AM, Vineet vineet.deod...@gmail.com wrote: But it doesn't accept decimal point either. How to make it accept the decimal point? --- Vineet On Dec 6, 10:25 am, Saurabh S ggtestlo...@gmail.com wrote: Thanks Massimo :) On

Re: [web2py] Re: Numbers only field

2011-12-06 Thread Anthony Bastardi
it should be replace(/[^ \.0-9]/g,'') not sure bout JS regex but in python . matches any character On Dec 6, 10:46 am, Anthony Bastardi abasta...@gmail.com wrote: How about: replace(/[^ .0-9]/g,'') On Tue, Dec 6, 2011 at 11:36 AM, Vineet vineet.deod...@gmail.com wrote

Re: [web2py] Re: Implementing tornado chat server with web2py

2011-12-06 Thread Anthony Bastardi
On Tue, Dec 6, 2011 at 1:15 PM, Saurabh Kumar saurabh.ca...@gmail.comwrote: Thanks again for the reply. The chat room thing is OK. Instead what I am concerned about is if the code is efficient enough to handle thousands of request. It should be. That's why Tornado is used -- it is a

Re: [web2py] Re: Scope authenticated users revisited

2011-12-06 Thread Anthony Bastardi
Can you show all of your code? On Tue, Dec 6, 2011 at 2:17 PM, lyn2py lyn...@gmail.com wrote: Thank you Anthony! That works well! Just a small question, I am trying to understand web2py better: I am using 2 other tables to enable the above scenario: (1) auth_account table to hold the

Re: [web2py] Re: Scope authenticated users revisited

2011-12-06 Thread Anthony Bastardi
( (db.auth_account.id==db.auth_many.account_id) (db.auth_many.user_id==auth.user_id) ) session.account = myset.select(db.auth_account.ALL).first() It is in model. Thank you! On Dec 7, 3:30 am, Anthony Bastardi abasta...@gmail.com wrote: Can you show all of your code?

Re: [web2py] Web2py breaks with [IS_INT_IN_RANGE(), IS_IN_SET()]

2011-12-06 Thread Anthony Bastardi
What happens if you reverse the order of the validators: Mytable.payday.requires = [ IS_IN_SET(G_DAYS_AVAILABLE, error_message=Choose one day), IS_INT_IN_RANGE(0,31)] Or what happens if you leave out the IS_INT_IN_RANGE validator altogether? Anthony On Tue, Dec 6, 2011 at 3:27 PM,

Re: [web2py] Re: web2py Application Development Cookbook

2011-12-06 Thread Anthony Bastardi
On Tue, Dec 6, 2011 at 4:46 PM, greenpoise danel.sega...@gmail.com wrote: Is this (web2py Application development cookbook) the same book as the upcoming 3.xx edition of the web2py book? name change?? No, it's a completely new book of recipes. The upcoming 4th edition of the web2py book is

Re: [web2py] Re: web2py Application Development Cookbook

2011-12-06 Thread Anthony Bastardi
you know the status of the 4th edition? On Dec 6, 1:54 pm, Anthony Bastardi abasta...@gmail.com wrote: On Tue, Dec 6, 2011 at 4:46 PM, greenpoise danel.sega...@gmail.com wrote: Is this (web2py Application development cookbook) the same book as the upcoming 3.xx edition of the web2py

Re: [web2py] Web2py breaks with [IS_INT_IN_RANGE(), IS_IN_SET()]

2011-12-06 Thread Anthony Bastardi
, 2011 at 7:04 PM, Anthony Bastardi abasta...@gmail.com wrote: What happens if you reverse the order of the validators: Mytable.payday.requires = [ IS_IN_SET(G_DAYS_AVAILABLE, error_message=Choose one day), IS_INT_IN_RANGE(0,31)] Anthony, the book says if I want an integer field