[web2py:22204] Re: Hoping to increase my connections to web2py people on linkedIn

2009-05-20 Thread NguyendHEX
I have joined here from Drupal. Although Drupal is not the best but there are many things we should learn from it. 1. Rich documents/tutorial 2. Forum 3. Groups 4. Project/Issue tracking I think we should move this group to web2py offical website, we can use other compoments for missing as Redmi

[web2py:20813] CPU load at GAE

2009-04-29 Thread NguyendHEX
Hi, After tracking my website at GAE that using Web2Py, i see it takes about 650 cpu_ms to serve every request. 241ms 721cpu_ms 537api_cpu_ms 2kb Is there any way to reduce loading time of web2py? P/S: The first time, it takes > 2000ms to load. Thanks Nguyen --~--~-~--~~-

[web2py:18365] Re: Google Authentication + web2py on GAE

2009-03-19 Thread NguyendHEX
You can use user class from google from google.appengine.api import users user = users.get_current_user() if user: #user.email() else: #redirect to login: users.create_login_url() Hope this help On Mar 20, 6:56 am, Tito Garrido wrote: > Is there a way to use Google Authentication + web2py on

[web2py:18187] Re: Patch to run web2py in a subdirectory on GAE

2009-03-17 Thread NguyendHEX
Thanks for your patch. I got it run on GAE :). Maybe, the laster version updated this but not update app.yaml file On Mar 17, 2:29 pm, Markus Gritsch wrote: > On Tue, Mar 17, 2009 at 8:25 AM, Markus Gritsch wrote: > > On Tue, Mar 17, 2009 at 7:58 AM, NguyendHEX wrote: > > >

[web2py:18180] Re: Patch to run web2py in a subdirectory on GAE

2009-03-16 Thread NguyendHEX
It works but we need update app.yaml file to handle static and gaehandler.py On Feb 26, 9:34 pm, Markus Gritsch wrote: > On Thu, Feb 26, 2009 at 2:48 PM, mdipierro wrote: > > > I only see one modification. Could you email me the patch? > > The second modification is adding the empty __init__.py

[web2py:18147] Re: Routes and request.env.path_info

2009-03-16 Thread NguyendHEX
> > On Mar 16, 2:09 pm, NguyendHEX wrote: > > > > > Hi, > > > I am mapping an url with a controller/function in Web2py but i have no > > way to get url that user surfed. request.env.path_info always returns > > path of controller/function. > > > How can

[web2py:18144] Routes and request.env.path_info

2009-03-16 Thread NguyendHEX
Hi, I am mapping an url with a controller/function in Web2py but i have no way to get url that user surfed. request.env.path_info always returns path of controller/function. How can i get url (alias) that user enter at IE address bar to browse the web? Thanks, Nguyen --~--~-~--~~--

[web2py:18124] Re: Feaure request: CRYPT with SHA1

2009-03-16 Thread NguyendHEX
Thanks Francisco and Massimo. I manually hash passwords by SHA1 because i am converting a working website from .NET into web2py. On Mar 14, 10:37 pm, mdipierro wrote: > Uploading to trunk now. Thanks Francisco. > > On Mar 14, 8:49 am, Francisco Gama wrote: > > > > > Here is the list of the cur

[web2py:18018] Feaure request: CRYPT with SHA1

2009-03-13 Thread NguyendHEX
CRYPT validator works with MD5 only, it is great if CRYPT validator has a option to support SHA1 (or other) instead only one MD5 hash. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To p

[web2py:17855] Re: routes.py - I must be missing something

2009-03-10 Thread NguyendHEX
thanks, how about change '_' to '-' in routes_out? On Mar 11, 11:17 am, mdipierro wrote: > all spaces and dashes are automatically mapped into _ so there is > nothing you need to do. > > On Mar 10, 9:52 pm, NguyendHEX wrote: > > > > > Regar

[web2py:17850] Re: routes.py - I must be missing something

2009-03-10 Thread NguyendHEX
en it starts up: it's looking for routes.py > but says > > WARNING:root:URL rewrite is on. configuration in route.py > > when it should be routes.py   Looking through the source code in / > gluon it's clearly looking for routes.py so it's not a bug. > > On Mar

[web2py:17825] Re: routes.py - I must be missing something

2009-03-10 Thread NguyendHEX
ah, yes, i usually restart web2py every time i change routes.py ;) On Mar 11, 12:36 am, Michael Wales wrote: > Server restart! I'm not sure if this is documented somewhere but I > never did find it. Restarted my service and all is working perfectly > fine (speaking of which, the dashes work fine

[web2py:17811] Re: routes.py - I must be missing something

2009-03-10 Thread NguyendHEX
by the way, how i can map /app/controller/fun_ction => /app/controller/ fun-ction it is good for SEO ;) On Mar 10, 10:27 pm, mdipierro wrote: > I think the problem is that web2py does not '-' in URL and replaces > them with '_'. the replacement should happen after the URL mapping and > before y

[web2py:17810] Re: not fully creating database tables on GAE

2009-03-10 Thread NguyendHEX
e default must be of the same type as the field. You cannot insert a > date into an integer > > On Mar 10, 9:59 am, NguyendHEX wrote: > > > > > Yes, i just change datetime field into integer. It works file at GAE. > > > FROM => SQLField('timestamp', 

[web2py:17802] Re: not fully creating database tables on GAE

2009-03-10 Thread NguyendHEX
, mdipierro wrote: > I think somewhere you have wrong default for a datetime field, for > example you are passing date field to a datetime field. > > On Mar 10, 4:58 am, NguyendHEX wrote: > > > > > I see errors both at locally GAE and online GAE. I see there is not > &

[web2py:17792] Re: Session timeout

2009-03-10 Thread NguyendHEX
ion.authorized is transparent to web2py. It is a variable as any > > other variable. > > You need a line like > > > if not session.authorized: redirect(URL(r=request,f='not_authorized')) > > > On Mar 8, 7:21 am, NguyendHEX wrote: > > > I need more

[web2py:17791] Re: not fully creating database tables on GAE

2009-03-10 Thread NguyendHEX
ine SDK?   Is this where you > are seeing the problem?http://code.google.com/appengine/downloads.html > > > > On Tue, Mar 10, 2009 at 1:43 AM, NguyendHEX wrote: > > > Thank Yarko, > > > I meet error only when uploading the app into Google App Engine. > > web2py

[web2py:17787] Re: not fully creating database tables on GAE

2009-03-09 Thread NguyendHEX
... > > if you repeat, but make a mistake (put a leading space or two), like this: > >    db.define_table('test2', SQLField('name')) > > You will get no error, and no table. > > Check that you do not have an error first.  Try to enter by hand from the > web2py

[web2py:17782] not fully creating database tables on GAE

2009-03-09 Thread NguyendHEX
My db.py has 10 tables but the app did not create all table for me when i update into GAE (even local development of GAE). Please tell me how to manual create missing tables. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:17649] Re: Session timeout

2009-03-08 Thread NguyendHEX
I need more infor about Session management by web2py core. Of course, i can track user session at application level but if i have more than one controller, i have manually update session at every controller by setting last request. 1) assuming you use session.authorized to determine whether the u

[web2py:17522] Session timeout

2009-03-04 Thread NguyendHEX
I see the session processing at http://groups.google.com/group/web2py/browse_thread/thread/14ec13e619fff190/d1799abb37d7d331?lnk=gst&q=session#d1799abb37d7d331 I don't know when session is cleared by web2py if the application clear it manually. --~--~-~--~~~---~--~

[web2py:17229] Re: Auto increase Field

2009-03-01 Thread NguyendHEX
Thanks for the links :) On Mar 1, 10:24 pm, mdipierro wrote: > I will make the link more prominent. > > On Mar 1, 9:12 am, Markus Gritsch wrote: > > > > > On Sun, Mar 1, 2009 at 4:08 PM, mdipierro wrote: > > > > It seems with the new page more and more people are missing the > > > examples > >

[web2py:17208] Re: Auto increase Field

2009-03-01 Thread NguyendHEX
t;id" for every table. > You don't need to create, just use it: > > 2009/3/1 NguyendHEX > > > > > Hello, > > > I need to define an auto increasing field in a table but i did not see > > any document or example use it. Please tell me to de

[web2py:17204] Auto increase Field

2009-03-01 Thread NguyendHEX
Hello, I need to define an auto increasing field in a table but i did not see any document or example use it. Please tell me to define an auto- increasing integer field. Thanks, Nguyen --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:16824] Re: web2py 1.56.4 posted

2009-02-23 Thread NguyendHEX
If possible, please create a release notes page the web2py's website. I could not find it online. Thks, Nguyen On Feb 23, 11:07 pm, mdipierro wrote: > Many bug fixes in tools in tools and typos in the docs. --~--~-~--~~~---~--~~ You received this message becaus