Re: [web2py] Re: how does search work on sql grid? (search over a whole table instead of a field)

2015-05-10 Thread Kenny Chung
Thank you! your customer search function example answers my question. just curious, does SQL grid search function work same way as your search function example? On Sun, May 10, 2015 at 11:47 PM, Anthony abasta...@gmail.com wrote: Basically I have 5 fields (last_name, middle_name, first_name,

Re: [web2py] Re: I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-03 Thread Kenny Chung
Great to know! Thank you On Fri, May 3, 2013 at 1:31 PM, Niphlod niph...@gmail.com wrote: a little correction. serializers.py in trunk now inverts the order of imports it tries simplejson (cause newer versions of simplejson as an external module are always faster than the standard json

Re: [web2py] Re: I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-02 Thread Kenny Chung
Hi Anthony, So, should I just import contrib.simplejson? Is this recently changed? Ken On Thu, May 2, 2013 at 8:26 PM, Anthony abasta...@gmail.com wrote: It's contrib.simplejson. On Thursday, May 2, 2013 9:08:31 PM UTC-4, Kenneth wrote: This seems odd to me. I just moved my server and

Re: [web2py] Re: I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-02 Thread Kenny Chung
Ouch. I must have used old version of web2py than. I always imported simplejson as import simplejson as json I totally forgot to replicate my setup before terminating my linode server. Ken On Thu, May 2, 2013 at 8:36 PM, Anthony abasta...@gmail.com wrote: I think that's where it has always

Re: [web2py] Re: Webfaction account with multiple apps under 1 web2py install

2013-05-01 Thread Kenny Chung
Thank you as always, Anthony. Working great. ;) On Wed, May 1, 2013 at 2:29 PM, Anthony abasta...@gmail.com wrote: What if you add exclusive_domain=True to the BASE dict? I believe that prevents creating outgoing URLs like that, but not sure if it affects incoming requests. Anthony On

[web2py] How can I receive oauth/access tokens with the Oauth library in Web2py?

2013-03-26 Thread Kenny Chung
Yesterday, I wanted to get the tokens from Facebook and Twitter for users and using the Web2py normal login system at same time. I only wanted to use their APIs not for implementing oauth login into my website. I was able to get tokens from Facebook API by using Facebook JavaScript SDK. I chose

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-11 Thread Kenny Chung
Thank you, guys. :) I think I should try to implement one, when I am free. Do you know any opensource for iphone oauth login as well as android? I am actually passing login credentials to web2py from android app via given web2py lib. On Feb 11, 2013 11:29 AM, howesc how...@umich.edu wrote:

Re: [web2py] Re: Integrating iPhone device tokens into web2py auth

2013-02-09 Thread Kenny Chung
Howesc, Thanks for great info. So, does mobile app user have to register web2py via access token provided by their hardware in mobile application? May you explain how you built the login/registration module for mobile app users along with web2py? Do you code in html5 with native code for

[web2py] Storing Python code in db?

2013-01-18 Thread Kenny Chung
I am testing out to store Python code and run it by extracting it from the database. It looks simple but it's giving me a weird error. *//Code* {{a=row.temp}} //question.temp is def f(x):\nx = x + 1\ny = 10\n return x + y same as below {{b=def f(x):\nx = x + 1\ny = 10\nreturn

Re: [web2py] Jquery Kit

2013-01-07 Thread Kenny Chung
Thank you for the link, Bruno! On Mon, Jan 7, 2013 at 9:36 PM, Bruno Rocha rochacbr...@gmail.com wrote: An interesting set of Jquery plugins.. http://jquery-jkit.com/ Bruno -- --

Re: [web2py] Is it possible to remove row from rows result created from DB?

2012-09-17 Thread Kenny Chung
Thank you. I tried executesql, I got an error saying it cannot be serialized in JSON. On Sep 17, 2012 2:58 PM, Bruno Rocha rochacbr...@gmail.com wrote: In my experience working with this I fired out that it is better to use haversine directly on database, you can find haversine functions for

Re: [web2py] Re: Postgres Heroku

2012-09-15 Thread Kenny Chung
Thank you, Bruno. Do they also offer Web2py hosting as well? I am not familiar with their service. By the way, thanks for another reply for my post couple days ago! ;) On Sat, Sep 15, 2012 at 8:36 PM, Bruno Rocha rochacbr...@gmail.com wrote: And data-clips are amazing feature!

Re: [web2py] Re: Working with custom form

2012-07-05 Thread Kenny Chung
When I used customform for login, it won't give me any errors to be shown whenever the password was invalid or email is not existing. I put it on jquery mobile website. Any idea? On Jul 4, 2012 4:25 PM, Anthony abasta...@gmail.com wrote: If you refuse to use web2py's css and js files, remember

Re: [web2py] My home made ide - Screenshots

2012-05-03 Thread Kenny Chung
beautiful. looking great! On Thu, May 3, 2012 at 9:12 PM, José Ricardo Borba jrborba...@gmail.comwrote: Very impressive. Very good job. I will be glad if you share with us. José Ricardo Borba Porto Alegre - RS 2012/5/3 Ricardo Pedroso rmdpedr...@gmail.com As requested by Massimo, I've

Re: [web2py] [BUG in w2p book] Re: a web2py powered shop (solution)

2012-04-21 Thread Kenny Chung
Nice. Is this website urs? How can I open modal window like tos on this website? On Apr 21, 2012 6:20 PM, Bruce Wade bruce.w...@gmail.com wrote: http://96.126.99.73/ register use sponsor id 12. Under products is a kind of shopping card that allows you to buy projects using paypal, alipay or

Re: [web2py] Is there anyone using Linode to host Web2py??

2012-04-06 Thread Kenny Chung
I just did it. :) thank you. On Fri, Apr 6, 2012 at 12:10 AM, pbreit pbreitenb...@gmail.com wrote: I don't think so. Try: apt-get install python-imaging

Re: [web2py] Is there anyone using Linode to host Web2py??

2012-04-05 Thread Kenny Chung
@Bruce, I see. I will keep that in mind. Glad that I ran it on 10.04.

Re: [web2py] Re: My website is running lil slow

2012-04-04 Thread Kenny Chung
Thank you. On Apr 4, 2012 6:16 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Try this: - add the web2py toolbar and it will tell you the time of each query {{=response.toolbar()}} - turn on the profiler web2py.py -F profiler_filename.txt it will log useful info at each request

Re: [web2py] just deployed web2py on flux flex. I have errors on database. How can I delete DBs and migrate them?

2012-04-03 Thread Kenny Chung
okay I will do so. Also, the error is ProgrammingError: (1064, uYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'option CHAR(1),\nsize CHAR(1),\nis_active CHAR(1),\ncreated_on DATETIME' at line 16)

[web2py] My website is running lil slow

2012-04-03 Thread Kenny Chung
I have some python fetching rows and calculating distances on views. Do u guys think that it delays loading time? Thank you.

Re: [web2py] adding an item in a list:reference :

2012-04-01 Thread Kenny Chung
Im curious on this as well. Also, is list:reference valid for mysql? On Apr 1, 2012 2:23 PM, bussiere adrien bussi...@gmail.com wrote: ok i see the example : db.define_table('tag',Field('name'),format='%(name)s') db.define_table('product', Field('name'),

Re: [web2py] Re: time field in DAL? when I retrieve it, it gives me as nontype instead of time type.

2012-03-29 Thread Kenny Chung
Wonderful! Thank you! On Thu, Mar 29, 2012 at 9:05 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: default_time = datetime.time(12,00) (row.start_hour or default_time) request.now.time() On Thursday, 29 March 2012 02:50:12 UTC-5, Kenny wrote: I tried to compare by doing

Re: [web2py] I am trying to make pizza order page with web2py. What's the best way to store toppings info?

2012-03-26 Thread Kenny Chung
thank you Bruno. I have one more question about query.( I think I was happened to see your github code as well) I have a form in HTML and I read all the form values by serializing it code var data = $('.info input[type=\'text\', ) alert(data) // it shows pid=8topping=1topping=3... on and on I

Re: [web2py] I am trying to make pizza order page with web2py. What's the best way to store toppings info?

2012-03-26 Thread Kenny Chung
Thank you. the answer was very clear for me to solve it. one another question is about Bruno's answer about storing data in session using dictionary. I see that appending works for adding new orders but what if you place an order that's already placed in session? I know how to compare one word at

Re: [web2py] How do I add b inside of a in HTML format?

2012-03-19 Thread Kenny Chung
Never Mind. It was easier than I really thought of. {{=A('Wish List',B('(3)'),_href=URL('index'))}} Awesome :) On Mon, Mar 19, 2012 at 12:22 PM, Kenny nis...@gmail.com wrote: I looked up the documentary and example, I wasn't able to find one. How can I convert this to Web2py format? a

Re: [web2py] Re: Is there any way to calculate distance between two points(lat and long) inside of sqlite?

2012-03-14 Thread Kenny Chung
Thank you for reply Wikus. I know I can use mysql. But I am trying to stick with Sqlite. hehe Does DAL queries support MySql just like Sqlite? On Wed, Mar 14, 2012 at 4:18 AM, Wikus van de Merwe dupakrop...@googlemail.com wrote: You can use mysql with web2py:

Re: [web2py] Re: Is there any way to calculate distance between two points(lat and long) inside of sqlite?

2012-03-14 Thread Kenny Chung
It's not suitable for doing calculation in the controller. I don't know how bad it is going to be if I go with the path that Niphlod suggested. I have about 1000 Points. You think your solution will work well? On Mar 14, 2012 3:34 PM, Alan Etkin spame...@gmail.com wrote: Is it not suitable for