Re: [web2py] 3rd party library import error

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 9:24 PM, Plumo wrote: > My app uses Google's gdata client library: > http://code.google.com/p/gdata-python-client/ > > modules/ > gdata/ > atom/ > test.py > > test.py imports gdata, which in turn imports atom. Running test.py directly > works fine. > But within a web2p

[web2py] Re: Happy New Year in 2011

2010-12-31 Thread ron_m
+1 and in one more hour here

Re: [web2py] 3rd party library import error

2010-12-31 Thread Plumo
yes. The error is gdata trying to import atom.

Re: [web2py] 3rd party library import error

2010-12-31 Thread Bruno Rocha
are you using local_import() ? http://www.web2py.com/book/default/chapter/04#Third-Party-Modules 2011/1/1 Plumo > My app uses Google's gdata client library: > http://code.google.com/p/gdata-python-client/ > > modules/ > gda

[web2py] 3rd party library import error

2010-12-31 Thread Plumo
My app uses Google's gdata client library: http://code.google.com/p/gdata-python-client/ modules/ gdata/ atom/ test.py test.py imports gdata, which in turn imports atom. Running test.py directly works fine. But within a web2py app I get *ImportError: No module named atom* * * How can I im

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 8:06 PM, DenesL wrote: > >> The ideal solution would be one that allowed using T() normally in gluon (at >> least in code that's invoked from an application); that avoids the T=T >> requirement. >> >> My conjecture is when Python compiles the gluon code, it binds T reference

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 8:06 PM, DenesL wrote: > >> The ideal solution would be one that allowed using T() normally in gluon (at >> least in code that's invoked from an application); that avoids the T=T >> requirement. >> >> My conjecture is when Python compiles the gluon code, it binds T reference

[web2py] Re: Translation problem

2010-12-31 Thread DenesL
On Dec 31, 2:34 pm, Jonathan Lundell wrote: > On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > > > No, I did not not want to translate these sentences manually. > > The error_message=T(..) does not work, because there are some if-statements > > inside the class IS_INT_IN_RANGE (and in

[web2py] Re: eclipse: getting it to ignore db

2010-12-31 Thread weheh
I decided to dispense with putting all that junk in my controllers and models and instead, I built an ignore list that I put in my preferences. It's a much cleaner approach IMHO. On Dec 31, 1:56 pm, Thadeus Burgess wrote: > Add to your list... > > if 0: >   >   >   from gluon.dal import

[web2py] Re: Happy New Year in 2011

2010-12-31 Thread weheh
+1

[web2py] Re: Happy New Year in 2011

2010-12-31 Thread DenesL
+1 On Dec 31, 8:06 pm, Felixdm || Augusto Félix Dal Mas wrote: > =D > > Happy New Year

[web2py] RFC: new URL routing facility

2010-12-31 Thread pbreit
Cool!

Re: [web2py] Re: Happy New Year in 2011

2010-12-31 Thread Felixdm || Augusto Félix Dal Mas
=D Happy New Year On Fri, Dec 31, 2010 at 9:22 PM, Anthony wrote: > +1 > > Happy New Year everyone. I'll be joining you in 2011 in 4 hours and 38 > minutes. :D > > Anthony > On Friday, December 31, 2010 7:06:19 PM UTC-5, stu...@brankovukelic.com > wrote: >> >> Well, here it's already 1AM, so: >>

[web2py] Re: Happy New Year in 2011

2010-12-31 Thread Anthony
+1 Happy New Year everyone. I'll be joining you in 2011 in 4 hours and 38 minutes. :D Anthony On Friday, December 31, 2010 7:06:19 PM UTC-5, stu...@brankovukelic.com wrote: > Well, here it's already 1AM, so: > > Happy New Year in 2011 to all of you guys. I wish you a productive and > satis

Re: [web2py] Re: Happy New Year in 2011

2010-12-31 Thread Bruno Rocha
+1 Happy New Year, many successful commits, and no tracebacks for you all! 2010/12/31 mdipierro > Happy new year everybody! > > On Dec 31, 6:06 pm, Branko Vukelić wrote: > > Well, here it's already 1AM, so: > > > > Happy New Year in 2011 to all of you guys. I wish you a productive and > > sati

[web2py] Re: Happy New Year in 2011

2010-12-31 Thread mdipierro
Happy new year everybody! On Dec 31, 6:06 pm, Branko Vukelić wrote: > Well, here it's already 1AM, so: > > Happy New Year in 2011 to all of you guys. I wish you a productive and > satisfying year! > > -- > Branko Vukelic > > stu...@brankovukelic.comhttp://www.brankovukelic.com/

[web2py] Happy New Year in 2011

2010-12-31 Thread Branko Vukelić
Well, here it's already 1AM, so: Happy New Year in 2011 to all of you guys. I wish you a productive and satisfying year! -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

[web2py] RFC: new URL routing facility

2010-12-31 Thread Jonathan Lundell
I've been working on a new URL routing facility that provides fairly powerful rewriting with very simple configuration and no regexes. The configuration is described below. Features: * remove default application/controller names from URLs * support domain<->app mapping (no visible app names)

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Bruno Rocha
2010/12/31 mdipierro > can you make a video of powertable? OK, nice idea, I'll finish some functions in plugin then test the comet queue as datasource and I'll create a screencast soon.

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
can you make a video of powertable? On Dec 31, 3:00 pm, Bruno Rocha wrote: > Updated to tornado 1.1 and it is working very well, thank you so much! > > I will use this on my new system of inventory control, receiving > new requests for products and a feeding a table with powerTable. > > Very cool

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Bruno Rocha
Updated to tornado 1.1 and it is working very well, thank you so much! I will use this on my new system of inventory control, receiving new requests for products and a feeding a table with powerTable. Very cool! -- Bruno Rocha http://about.me/rochacbruno/bio

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Bruno Rocha
> > > 1.1 appears to be current: http://www.tornadoweb.org/ I used apt-get in ubuntu 10.10 and it instals tornado 0.2 I take websocket from here https://github.com/finiteloop/tornado/raw/master/tornado/websocket.py and now i

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 12:29 PM, Bruno Rocha wrote: > I tried > > rochacbr...@macubuntu:~/projects/web2py/gluon/contrib$ sudo easy_install > tornado[sudo] password for rochacbruno: > install_dir /usr/local/lib/python2.6/dist-packages/ > Searching for tornado > Best match: tornado 0.2 > tornado 0.2

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Bruno Rocha
My tornado instalation on UBuntu has not websocket rochacbr...@macubuntu:/usr/lib/pymodules/python2.6/tornado$ ls auth.py database.py httpclient.py __init__.py iostream.py options.pytemplate.py wsgi.py auth.pycdatabase.pyc httpclient.pyc __init__.pyc iostream.pyc op

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Bruno Rocha
I tried rochacbr...@macubuntu:~/projects/web2py/gluon/contrib$ sudo easy_install tornado[sudo] password for rochacbruno: install_dir /usr/local/lib/python2.6/dist-packages/ Searching for tornado Best match: tornado 0.2 tornado 0.2 is already the active version in easy-install.pth rochacbr...@macu

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
Fixed a couple of bugs and moved it to gluon/contrib/ comet_messaging.py I included more examples.

[web2py] any idea how hide downloads

2010-12-31 Thread pandaluv
i have something like this def download(): download_id = request.args(0) download = db.post(download_id) if str(download) == "None": redirect(URL(r=request,c="home",f="index")) form = FORM("Download: " + str(download_id) ,INPUT(_type='submit', _value="Download")) form

Re: [web2py] comet for web2py (give it a try) - and happy new year

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 11:14 AM, mdipierro wrote: > > Should be self explanatory: > > http://code.google.com/p/web2py/source/browse/scripts/comet_messaging.py It got checked into gluon/contrib, not scripts.

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
... and it requires Chrome! On Dec 31, 1:28 pm, mdipierro wrote: > yes > > On Dec 31, 1:25 pm, "David J." wrote: > > > Setting up right now. > > > I need trunk web2py_ajax or will latest work? > > > Can I just copy that single file from trunk? > > > Thx. > > > On 12/31/10 2:21 PM, mdipierro wrot

Re: [web2py] Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 11:20 AM, Martin Weissenboeck wrote: > No, I did not not want to translate these sentences manually. > The error_message=T(..) does not work, because there are some if-statements > inside the class IS_INT_IN_RANGE (and in some other classes). > > One solution could be a list

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
yes On Dec 31, 1:25 pm, "David J." wrote: > Setting up right now. > > I need trunk web2py_ajax or will latest work? > > Can I just copy that single file from trunk? > > Thx. > > On 12/31/10 2:21 PM, mdipierro wrote: > > > ... and this requires the latest web2py_ajax.html from welcome in > > trun

Re: [web2py] Legacy table

2010-12-31 Thread Bruno Rocha
If I understood well you need to do: person = db.define_table('another_name',Field(...),Field(...),migrate=False) so you have 'person' object. person.insert(name='blablabla') rows = db(person.name=='blablabla').select() 2010/12/31 Marcello Parra > Hello, > > I have a legacy database, and w

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 9:23 AM, Jonathan Lundell wrote: > > On Dec 31, 2010, at 8:54 AM, DenesL wrote: >> >> >> The problem is that those messages are defined internally in the >> validator and can not be set via error_message. > > Actually, they can, except that there's a bug for the first one, '

Re: [web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread David J.
Setting up right now. I need trunk web2py_ajax or will latest work? Can I just copy that single file from trunk? Thx. On 12/31/10 2:21 PM, mdipierro wrote: ... and this requires the latest web2py_ajax.html from welcome in trunk else it does not work. Please give it a try, I have not tested i

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
... and this requires the latest web2py_ajax.html from welcome in trunk else it does not work. Please give it a try, I have not tested it that much! Massimo On Dec 31, 1:19 pm, mdipierro wrote: > Sorry Mistake: > > http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_mes... > > On

Re: [web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
No, I did not not want to translate these sentences *manually*. The error_message=T(..) does not work, because there are some if-statements inside the class IS_INT_IN_RANGE (and in some other classes). One solution could be a list of error messages for these classes. My proposal uses T as an addi

[web2py] Re: comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
Sorry Mistake: http://code.google.com/p/web2py/source/browse/gluon/contrib/comet_messaging.py On Dec 31, 1:14 pm, mdipierro wrote: > Should be self explanatory: > > http://code.google.com/p/web2py/source/browse/scripts/comet_messaging.py

[web2py] comet for web2py (give it a try) - and happy new year

2010-12-31 Thread mdipierro
Should be self explanatory: http://code.google.com/p/web2py/source/browse/scripts/comet_messaging.py

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 9:43 AM, mdipierro wrote: > > This is a complex issue. I have been experimenting with turning > > request, response, session, cache and T > > in thread local singletons. > > This will fixed a lot of the problem and would allow to create modules > that use those variables w

Re: [web2py] Re: Web2Py Foundation?

2010-12-31 Thread ron_m
That leaves taxes which aren't a factor here :-)

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 9:44 AM, DenesL wrote: > > On Dec 31, 12:23 pm, Jonathan Lundell wrote: >> On Dec 31, 2010, at 8:54 AM, DenesL wrote: >> = >>> The problem is that those messages are defined internally in the >>> validator and can not be set via error_message. >> >> Actually, they can, except

Re: [web2py] eclipse: getting it to ignore db

2010-12-31 Thread Thadeus Burgess
Add to your list... if 0: from gluon.dal import DAL db = DAL() -- Thadeus On Thu, Dec 30, 2010 at 4:46 AM, weheh wrote: > I'm trying to get eclipse to ignore undefined var: db using the > > if 0: > import gluon > from ... import ... > > trick, but I'm not sure where db i

[web2py] Re: Legacy table

2010-12-31 Thread DenesL
You don't have to rename the table. You can use db.another_name.insert(name="Box") On Dec 31, 12:39 pm, Marcello wrote: > Thanks Danes, > > But this is not the problem. The table has an ID. > The problem is that I can't rename the table, and it's name is > "another_name" > > And I want to do so

[web2py] Re: GAE shows error

2010-12-31 Thread Arun K.Rajeevan
never mind, I got it working, by modifying candidate =db(db.words.word.lower()==trans_form.vars.word.lower())(db.words.lang==trans_form.vars.languages).select().first() to candidate = db(db.words.lang==trans_form.vars.languages).select().find(lambda x:x.word.lower()==trans_form.vars.word.low

[web2py] Re: Translation problem

2010-12-31 Thread DenesL
On Dec 31, 12:23 pm, Jonathan Lundell wrote: > On Dec 31, 2010, at 8:54 AM, DenesL wrote: > > > > > The problem is that those messages are defined internally in the > > validator and can not be set via error_message. > > Actually, they can, except that there's a bug for the first one, 'enter an

[web2py] Re: Translation problem

2010-12-31 Thread mdipierro
This is a complex issue. I have been experimenting with turning request, response, session, cache and T in thread local singletons. This will fixed a lot of the problem and would allow to create modules that use those variables without having to pass the explicitly. The issues are: - will th

[web2py] Re: Legacy table

2010-12-31 Thread Marcello
Thanks Danes, But this is not the problem. The table has an ID. The problem is that I can't rename the table, and it's name is "another_name" And I want to do something like: db.product.insert(name="Box") Thanks, Marcello On Dec 31, 3:03 pm, DenesL wrote: > Hi Marcello. > > if your table ha

[web2py] Re: gql broken in latest version (1.91.4) ?

2010-12-31 Thread mdipierro
Try this in trunk: db=DAL('gae://mynamespace') On Dec 31, 9:58 am, howesc wrote: > GAE recently (well a few months ago now) added a namespace feature to Big > Table.  I too am interested in having each web2py app run in its own > namespace, but not yet been motivated to try and add that in.  i s

Re: [web2py] Re: Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 8:54 AM, DenesL wrote: > > > The problem is that those messages are defined internally in the > validator and can not be set via error_message. Actually, they can, except that there's a bug for the first one, 'enter an integer' that needs to be fixed. > > An easy solution

[web2py] Re: Using EditArea Full on front-end

2010-12-31 Thread mdipierro
No but you would have to copy /admin/static/editarea into /yourapp/ static/editarea On Dec 31, 7:52 am, Hybride wrote: > Hey everyone, > > I know web2py comes with the EditArea on the administration section; I > was wondering how would I be able to use that on the front end of the > website in a

[web2py] Re: GAE shows error

2010-12-31 Thread mdipierro
GAE does not allow this query: db.words.word.lower()==trans_form.vars.word.lower() In SQL this would be ... WHERE LOWER(words.word) = ' value of trans_form.vars.word.lower() ' but GAE has no LOWER. On Dec 31, 4:54 am, "Arun K.Rajeevan" wrote: > Once again my application runs fine on suppl

[web2py] Re: Legacy table

2010-12-31 Thread DenesL
Hi Marcello. if your table has an auto-increment integer field you can do: db.define_table('another_name',Field('the-auto-inc-field','id'), ...) if not then sorry, no one has contributed the keyed table support for mysql, see: http://web2py.com/book/default/chapter/06#Legacy-Databases-and-Keyed-

[web2py] Re: Translation problem

2010-12-31 Thread DenesL
The problem is that those messages are defined internally in the validator and can not be set via error_message. An easy solution would be to wrap them in a T call but that results in: NameError: global name 'T' is not defined, line 188, in restricted So the question is why T can not be part of

Re: [web2py] Translation problem

2010-12-31 Thread Jonathan Lundell
On Dec 31, 2010, at 6:18 AM, Martin Weissenboeck wrote: > I want to translate my web page to German. The T()"operator" is very fine, > but I could not find any way to translate message like > "enter an integer less than or equal to %(max)g" > in class IS_INT_IN_RANGE. > > I think it is very unp

Re: [web2py] Re: web2py Turnkey Linux Appliance (collaborator needed)

2010-12-31 Thread Jonathan Lundell
On Dec 30, 2010, at 10:47 PM, Christopher Steel wrote: > > you could "become" the www-data user with > su www-data > change to /home/www-data/web2py > and then run the commands: > > python -c "from gluon.widget import console; console();" > > and > > python -c "from gluon.main import save_passw

[web2py] Re: gql broken in latest version (1.91.4) ?

2010-12-31 Thread howesc
GAE recently (well a few months ago now) added a namespace feature to Big Table. I too am interested in having each web2py app run in its own namespace, but not yet been motivated to try and add that in. i suspect that what you want to do is find where the GQL gets assembled and perhaps use t

[web2py] Re: web2py Turnkey Linux Appliance (collaborator needed)

2010-12-31 Thread pbreit
Does anyone here use Fabric? I'm going to take a look in the next few days.

[web2py] Translation problem

2010-12-31 Thread Martin Weissenboeck
Hi, I want to translate my web page to German. The T()"operator" is very fine, but I could not find any way to translate message like "enter an integer less than or equal to %(max)g" in class IS_INT_IN_RANGE. I think it is very unprofessional to mix English and German words and I have tried to

[web2py] Re: web2py Turnkey Linux Appliance (collaborator needed)

2010-12-31 Thread ghoulmann
Thanks Chris, I've got the patch worked out for the most part. (incidentally to patching eden). Just incorporating Massimo's suggestions and blueprint, then getting together the first run script to set the password are my remaining concerns. On Dec 31, 1:47 am, Christopher Steel wrote: > Hi Rik,

[web2py] Using EditArea Full on front-end

2010-12-31 Thread Hybride
Hey everyone, I know web2py comes with the EditArea on the administration section; I was wondering how would I be able to use that on the front end of the website in a textarea? I don't think installing another instance of it would be necessary, would it? Thanks~.

[web2py] Legacy table

2010-12-31 Thread Marcello Parra
Hello, I have a legacy database, and want to access it with web2py. One table is called "another_name" in the database (mysql). But I want to use it in web2py as: db.define_table('person', Field('name')) I read docs, but could not figure this out Thanks for any help... Marcello

[web2py] Re: GAE shows error

2010-12-31 Thread Arun K.Rajeevan
I'm using Version 1.91.5 (2010-12-28 21:52:10)

[web2py] GAE shows error

2010-12-31 Thread Arun K.Rajeevan
Once again my application runs fine on supplied server with web2py but on GAE there's a problem. Line of code that shows problem is *candidate =db(db.words.word.lower()==trans_form.vars.word.lower())(db.words.lang==trans_form.vars.languages).select().first() * where trans_form is a FORM object

[web2py] Re: bug with multi-form input component

2010-12-31 Thread Arun K.Rajeevan
It happened to me also.

[web2py] bug with multi-form input component

2010-12-31 Thread weheh
I have a multi-table multi-form input that I've componentized. As a stand-alone component, it's various sub-forms workthe fine. But when I load the component into the rest of the app, it fails to upload a file in one of the sub-forms. It gives the standard "enter a valid filename" error, as if ther

[web2py] Re: Python job oportunity

2010-12-31 Thread cjrh
On Dec 31, 12:23 am, GoldenTiger wrote: > Who needs the key for only a few chars?? ;) Cool!