[web2py] Re: github & hg repo

2011-11-23 Thread Gour
On Thu, 24 Nov 2011 02:26:18 +0100 ~redShadow~ wrote: > I started moving all my projects (both personal and company's) from > svn to git/github, and I'm discovering a new, wonderful world every > time I use it :) I did the same from: darcs --> bzr --> mtn --> fossil --> bzr --> hg > ..and I als

Re: [web2py] Re: github & hg repo

2011-11-23 Thread Phyo Arkar
I for one , Love hg. a lot more easier to get things done for me. And its python! On Thu, Nov 24, 2011 at 7:56 AM, ~redShadow~ wrote: > On Wed, 2011-11-23 at 09:34 -0800, Massimo Di Pierro wrote: > > Yes. I will try keep them in sync. But I already start to see some > > advantages of github (sub

[web2py] Re: Google Authentication on GAE

2011-11-23 Thread amit
I am stuck with other issues with authentication. auth.is_logged_in() never becomes true even when I login via Google Account into my hosted app. The behavior is the same on my local server deployment as well as hosted on GAE. I switched the GAE sdk version back to 1.55 as suggested by howesc. But

[web2py] Re: SQLFORM upload type and long file+path names

2011-11-23 Thread Massimo Di Pierro
> 1) Is there an easy way to "overload" the default behavior of the > SQLFORM so it stores the filename in the database, instead of encoding > it in the renamed-file? I see the Field class has a custom_store/ > retrieve variable, could I just duplicate the default DAL store/ > retrieve functions an

[web2py] SQLFORM upload type and long file+path names

2011-11-23 Thread David Braun
I unexpectedly ran into this problem, and it took me a while to figure out what was going on. I'm wondering if anyone has any suggestions on how to handle it. I'm using the 'upload' field type with SQLFORMs to upload files to the server. However, for certain files with longer names, I get this exc

[web2py] Re: table inheritance and defined requires

2011-11-23 Thread Massimo Di Pierro
this is what I tried: > python web2py.py -S welcome -M -N >>> countries = {'ti': 'Timor Leste', 'vn': 'Vietnam','in': 'India','kr': >>> 'Korea','cn': 'China'} >>> db.define_table('address', Field('country'), >>> Field('state'),Field('street_address')) >>> db.address.country.requires=IS_IN_S

Re: [web2py] Re: github & hg repo

2011-11-23 Thread ~redShadow~
On Wed, 2011-11-23 at 09:34 -0800, Massimo Di Pierro wrote: > Yes. I will try keep them in sync. But I already start to see some > advantages of github (submodules) I started moving all my projects (both personal and company's) from svn to git/github, and I'm discovering a new, wonderful world ev

[web2py] table inheritance and defined requires

2011-11-23 Thread Nik Go
countries = {'ti': 'Timor Leste', 'vn': 'Vietnam','in': 'India','kr': 'Korea','cn': 'China'} db.define_table('address', Field('country'), Field('state'), Field('street_address')) db.address.country.requires=IS_IN_SET(countries, zero=None) db.define_table('personal_address', db.person, db.address)

[web2py] Re: Checkboxes in SQLFORMs don't show updated values in 1.99.2

2011-11-23 Thread Pepe Araya
some news? Thank you!

Re: [web2py] Re: PAM users added to auth_user

2011-11-23 Thread Matt Broadstone
On Nov 23, 2011, at 12:33 PM, Massimo Di Pierro wrote: > Please open a ticket and we can get this done Done, it's located here: http://code.google.com/p/web2py/issues/detail?id=535&thanks=535&ts=1322086748 I've been perusing the code for this and it seems to be this way by design though I'm

[web2py] Re: github & hg repo

2011-11-23 Thread Gour
On Wed, 23 Nov 2011 09:34:19 -0800 (PST) Massimo Di Pierro wrote: > Yes. I will try keep them in sync. But I already start to see some > advantages of github (submodules) Is it a feature of github since I know about hg's subrepos. Sincerely, Gour -- Those who are on this path are resolute

[web2py] Re: Google Authentication on GAE

2011-11-23 Thread amit
Thanks. It was a problem in my controller code. I solved it by following the host2py example. http://code.google.com/p/host2py/source/browse/trunk/controllers/default.py On Nov 22, 10:35 am, howesc wrote: > can't remember the symptions, but when using the bulk load option for > appconfig to uplo

[web2py] Re: github & hg repo

2011-11-23 Thread Massimo Di Pierro
Yes. I will try keep them in sync. But I already start to see some advantages of github (submodules) On Nov 23, 10:19 am, Bruno Rocha wrote: > I Guess the 3 repos bzr & hg & git will be sync > > > > > > > > > > On Wed, Nov 23, 2011 at 2:05 PM, Gour wrote: > > Hello! > > > I see that web2py is on

[web2py] Re: PAM users added to auth_user

2011-11-23 Thread Massimo Di Pierro
Please open a ticket and we can get this done. On Nov 23, 8:50 am, Matt Broadstone wrote: > Hopefully this is the last in my thread of auth related emails ;) > I was wondering if there is an easy way to stop web2py adding users to > its own auth_user database when the users are PAM users. I imagi

[web2py] Re: starting web2py with uwsgi problem.

2011-11-23 Thread Massimo Di Pierro
I should remove/clarify that sentence. The Rocket server is very solid. On Nov 23, 6:48 am, Kenneth Lundström wrote: > Well I think it is said in the book that the rocket server is only for > development. It is usually not recommended to run anything as root but > no big problem. > > Kenneth > >

[web2py] Re: Print output when using Apache

2011-11-23 Thread Cliff
Thanks, Bruno. My acceptance test box was not acting the same as my development box. On Nov 23, 10:17 am, Bruno Rocha wrote: > nowhere, you are not encouraged to use print statement in production > (mod_python breaks with this) > > if you want output you have to use some Logging or response.writ

[web2py] Re: transfer auth_group data with the app

2011-11-23 Thread Cliff
Not tested yet, but it is what I intend to do. It will be a couple of weeks before I test this mechanism. # In db.py before the first table def # keep current_version current current version = '0.95' needs_groups = False import os f = open('version.txt') try: version = f.read() f.truncate

Re: [web2py] github & hg repo

2011-11-23 Thread Bruno Rocha
I Guess the 3 repos bzr & hg & git will be sync On Wed, Nov 23, 2011 at 2:05 PM, Gour wrote: > Hello! > > I see that web2py is on the github now. Does it mean end of hg repo? > > > Sincerely, > Gour > > > -- > As the embodied soul continuously passes, in this body, > from boyhood to youth to old

[web2py] github & hg repo

2011-11-23 Thread Gour
Hello! I see that web2py is on the github now. Does it mean end of hg repo? Sincerely, Gour -- As the embodied soul continuously passes, in this body, from boyhood to youth to old age, the soul similarly passes into another body at death. A sober person is not bewildered by such a change.

Re: [web2py] Print output when using Apache

2011-11-23 Thread Bruno Rocha
nowhere, you are not encouraged to use print statement in production (mod_python breaks with this) if you want output you have to use some Logging or response.write to some view On Wed, Nov 23, 2011 at 11:04 AM, Cliff wrote: > Where does the output from print go when using Apache? > > Running o

[web2py] PAM users added to auth_user

2011-11-23 Thread Matt Broadstone
Hopefully this is the last in my thread of auth related emails ;) I was wondering if there is an easy way to stop web2py adding users to its own auth_user database when the users are PAM users. I imagine this is probably an issue for all alternative login methods, not just PAM, but that's the only

[web2py] Re: Using web2py with a non-managed Oracle database

2011-11-23 Thread DenesL
You are welcome. Keep us posted. On Nov 23, 7:05 am, Tim Korb wrote: > Denes, > > Thanks for your responses--we're making progress. > > Tim

[web2py] Re: Formatting numbers in SQLFORM grid

2011-11-23 Thread DenesL
Hi, to get the field to show correctly you have to set your locale appropriately (see the Python manual) otherwise %f will use the default (dot for decimal point). Also keep in mind that widgets (validators have default ones) control the presentation during input (the C&U in CRUD) while represent

RE: [web2py] Re: Formatting numbers in SQLFORM grid

2011-11-23 Thread Freerk Kalsbeek
 Hi Massimo,   Digged into it a little further, and found out that this only happens when represent is used.   ##models.py db.define_table('all_values',     Field('price','decimal(5,2)',requires=IS_DECIMAL_IN_RANGE(0,10,dot=','),represent = lambda price,row: '€ %.2f' % price)     )   ## Controll

[web2py] Print output when using Apache

2011-11-23 Thread Cliff
Where does the output from print go when using Apache? Running on Ubuntu 10.04 with wsgi. Installed using the one step install script, no changes.

Re: [web2py] Re: starting web2py with uwsgi problem.

2011-11-23 Thread Kenneth Lundström
Well I think it is said in the book that the rocket server is only for development. It is usually not recommended to run anything as root but no big problem. Kenneth Thanks for your replies. I eventually mangaged to find out the group and owner of the process that runs web2py. It is uwsgi:uw

[web2py] Re: starting web2py with uwsgi problem.

2011-11-23 Thread peter
Thanks for your replies. I eventually mangaged to find out the group and owner of the process that runs web2py. It is uwsgi:uwsgi. Chowning as suggested did work. presumably the rocket server version of web2py does run as root. If this is unadvisable as Kenneth suggests should something be mention

[web2py] Re: Using web2py with a non-managed Oracle database

2011-11-23 Thread Tim Korb
Denes, Thanks for your responses--we're making progress. Tim

[web2py] Re: Register user programmatic way

2011-11-23 Thread Christopher Steel
That is pretty sweet Bruno. Would it make sense calling it _ensure_x rather than new_x or create_x as in if the user, group or permission already exists then we do not (try) and create again Here is more complete example using Bruno my_crypt example to illustrate. # coding: utf8 from gluon.sto

Re: [web2py] Re: Web2py on pypy 1.7

2011-11-23 Thread Phyo Arkar
Hows web2py performance on pypy 1.7? It was worst in previous version.. On Wed, Nov 23, 2011 at 10:47 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > > I missed yor response. I will remove the line. > > On Nov 22, 10:00 pm, Bruno Rocha wrote: > > There is a ticket about thishttp://