[web2py:37848] Re: Happy Holidays

2009-12-26 Thread David
Merry Christmas from Johnson Space Center, Houston Texas :0) On Dec 25, 5:11 pm, Richard wrote: > On Dec 26, 7:01 am, Johann Spies wrote: > > > 2009/12/25 KMax :> Warm wishes from cold Russia! > > > And from warm South Africa! > > And hot Australia, Merry Christmas! -- You received this messag

[web2py:37849] files under a subdomain.

2009-12-26 Thread annet
My applications have a number of files in common which I would like to store under a subdomain: e.g. files.example.com At the moment I store these files in the static folders of the applications and use the following URLs to retrieve them: in web2py_ajax: response.files.insert(0,URL(r=request,c=

[web2py:37850] Re: 400 error

2009-12-26 Thread kbochert
Just loaded it. Has something changed with routes.py?? The web2py directory does not have a routes.py, and when I add mine it does not appear to have any effect. Karl On Dec 25, 12:56 pm, mdipierro wrote: > Please try 1.74.4. I do remember when the requested_uri was > introduced. > > Massimo >

[web2py:37851] Add buttons to form=auth() form

2009-12-26 Thread annet
I would like to add a reset and cancel button to the form in the def user(): function. I tried: def user(): form=form=auth() form[0][-1][1].append(INPUT(_type="reset",_value="Reset")) form[0][-1][1].append(INPUT (_type="button",_value="Cancel",_onclick="window.location='%s';"%URL (r=r

[web2py:37852] Re: Creating a password

2009-12-26 Thread kbochert
Traceback (most recent call last): File "gluon/restricted.py", line 184, in restricted File "E:/web2py1.72.3/applications/mug/models/db.py", line 103, in File "gluon/sql.py", line 1498, in __getattr__ KeyError: 'requires' Note I'm using 1.72.3 until I get 1.74.4 working Karl On Dec 25, 12

Re: [web2py:37853] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-26 Thread Tito Garrido
When I'm inserting strings using ç ã õ é á on GAE you can create a DB like: db.define_table('content', Field('title','string'), Field('subtitle','string'), Field('data','text'), ) on the "data" column you will be able to add ã ç á... but on title or subtile will throw an Unicode e

[web2py:37854] Re: 400 error

2009-12-26 Thread kbochert
It does work. Just a moment of update panic on my part. On Dec 26, 5:32 am, kbochert wrote: > Just loaded it. > Has something changed with routes.py?? > The web2py directory does not have a routes.py, and when I add mine it > does not appear to have any effect. > > Karl > > On Dec 25, 12:56 pm, m

[web2py:37855] Re: 400 error

2009-12-26 Thread kbochert
Pardon the multiple posts. 1.74.4 and requested_uri work as expected Happy Holidays Karl On Dec 26, 6:24 am, kbochert wrote: > It does work. Just a moment of update panic on my part. > > On Dec 26, 5:32 am, kbochert wrote: > > > Just loaded it. > > Has something changed with routes.py?? > > The

[web2py:37856] Rails-scaffolding in web2py -check my slice

2009-12-26 Thread Jon Romero
I know crud is good and admin panel is slick but sometimes I just need to hack an add/edit/delete based on a table. So, I made this a decorator :D http://www.web2pyslices.com/main/slices/take_slice/45 Hope you like it! Enjoy! -- You received this message because you are subscribed to the Google

[web2py:37857] Sending mail from application.

2009-12-26 Thread annet
After upgrading from 1.72.3 to 1.74.4 sending mail from my application no longer works. I get the following error ticket: Traceback (most recent call last): File "/Library/Python/2.5/site-packages/web2py/gluon/restricted.py", line 173, in restricted exec ccode in environment File "/Library

Re: [web2py:37858] Re: Happy Holidays

2009-12-26 Thread Álvaro Justen [Turicas]
Happy Holidays from Brazil! :-) On Fri, Dec 25, 2009 at 19:49, Vidul Petrov wrote: > Happy Holidays from Bulgaria! > > On Dec 24, 6:25 am, mdipierro wrote: >> I wish everybody Happy Holidays. I will probably be on the list as any >> other day. >> >> Massimo > > -- > > You received this message b

[web2py:37859] Re: files under a subdomain.

2009-12-26 Thread mdipierro
yes but you will need to hardcode the URLs instead of using URL(...). On Dec 26, 5:25 am, annet wrote: > My applications have a number of files in common which I would like to > store under a subdomain: > e.g. files.example.com > > At the moment I store these files in the static folders of the >

Re: [web2py:37860] How to locale web2py date calendar widget

2009-12-26 Thread Álvaro Justen [Turicas]
On Wed, Dec 23, 2009 at 11:29, Alexandre Andrade wrote: > While > > db.convenio.data_assinatura.requires = > IS_DATE(format=T('%d-%m-%Y'),error_message=T('deve ser no formato > DD-MM-!')) > > show me the date in correct locale, the calendar widget don't show the > correct date. > > How to loca

[web2py:37861] Re: Add buttons to form=auth() form

2009-12-26 Thread mdipierro
What do you mean by "doesn't work"? You do not see the buttons? Try this: def user(): form=auth() form[0][-1][1].append(INPUT(_type="reset",_value="Reset")) form[0][-1][1].append(INPUT (_type="button",_value="Cancel",_onclick="window.location='%s';"%URL (r=request,f='index'))) ret

[web2py:37862] Re: Creating a password

2009-12-26 Thread mdipierro
password=db.auth_user.password.requires('yourpassword')[0] On Dec 26, 7:46 am, kbochert wrote: > Traceback (most recent call last): >   File "gluon/restricted.py", line 184, in restricted >   File "E:/web2py1.72.3/applications/mug/models/db.py", line 103, in > >   File "gluon/sql.py", line 149

[web2py:37863] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-26 Thread mdipierro
inserting via web forms or via db.table.insert(...)? On Dec 26, 7:54 am, Tito Garrido wrote: > When I'm inserting strings using ç ã õ é á on GAE > > you can create a DB like: > db.define_table('content', >     Field('title','string'), >     Field('subtitle','string'), >     Field('data','text'),

[web2py:37864] Re: Sending mail from application.

2009-12-26 Thread mdipierro
This line mail.send(to=['an...@gmail.com'], subject=form.vars.onderwerp, message=form.vars) should never have worked as far as I can tell. form.vars is a Storage object, not a string, as a message should be. On Dec 26, 9:24 am, annet wrote: > After upgrading from 1.72.3 to 1.74.4 sendin

[web2py:37865] Re: Rails-scaffolding in web2py -check my slice

2009-12-26 Thread mdipierro
cool! On Dec 26, 9:12 am, Jon Romero wrote: > I know crud is good and admin panel is slick but sometimes I just need > to hack an add/edit/delete based on a table. So, I made this a > decorator :D > > http://www.web2pyslices.com/main/slices/take_slice/45 > > Hope you like it! > Enjoy! -- You re

[web2py:37866] Re: Documentation

2009-12-26 Thread ma...@rockiger.com
This would be awesome. Especially with inline exercises like in htdp and sicp. Web2py the scheme of web programming :) On Dec 26, 3:16 am, mdipierro wrote: > good point. I will. > > On Dec 25, 6:45 pm, "ma...@rockiger.com" > wrote: > > > > > A suggestion for the book. Could you add some problems

[web2py:37867] Re: Sending mail from application.

2009-12-26 Thread annet
Massimo, > This line > >         mail.send(to=['an...@gmail.com'], subject=form.vars.onderwerp, > message=form.vars) > > should never have worked as far as I can tell. form.vars is a Storage > object, not a string, as a message should be. It did in previous versions of web2py. I received the form

[web2py:37868] Re: Sending mail from application.

2009-12-26 Thread annet
Massimo, This is how it does work: message='%(bedrijfsnaam)s\ %(aanhef)s %(initialen)s %(voorvoegsel)s %(achternaam)s % (straat)s %(huisnummer)s %(postcode)s\ %(plaats)s %(email)s %(telefoonnummer_contact)s %(bericht)s' %form.vars Annet. -- You received this message because yo

Re: [web2py:37869] How to locale web2py date calendar widget

2009-12-26 Thread Thadeus Burgess
How does jquery handle translations? -Thadeus On Sat, Dec 26, 2009 at 9:37 AM, Álvaro Justen [Turicas] wrote: > On Wed, Dec 23, 2009 at 11:29, Alexandre Andrade > wrote: >> While >> >> db.convenio.data_assinatura.requires = >> IS_DATE(format=T('%d-%m-%Y'),error_message=T('deve ser no format

[web2py:37870] Re: Creating a password

2009-12-26 Thread kbochert
Sigh-- With that line I get: --- The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. --- While experimenting I once got a (wrong) page with a url (in the firefox url bar) that looke

[web2py:37871] Re: How to locale web2py date calendar widget

2009-12-26 Thread mdipierro
I do not know. web2py should hanlde transaltions. You pass {{=T(...)}} strings to jquery. On Dec 26, 4:16 pm, Thadeus Burgess wrote: > How does jquery handle translations? > > -Thadeus > > On Sat, Dec 26, 2009 at 9:37 AM, Álvaro Justen [Turicas] > > wrote: > > On Wed, Dec 23, 2009 at 11:29, Alex

[web2py:37872] Re: Creating a password

2009-12-26 Thread mdipierro
I guess it is not my may. I apologize I did not try my suggestion before trying it. Here is more guess: password=db.auth_user.password.requires[0]('yourpassword')[0] Let me explain: db.auth_user is the table db.auth_user.password is the field db.auth_user.password.requires is the list of validato

Re: [web2py:37873] How to locale web2py date calendar widget

2009-12-26 Thread Alexandre Andrade
I will have to look to jquery code of widget to judge the best strategy, but I think is a good alternative, specially because the translations need be done only once. 2009/12/26 Álvaro Justen [Turicas] > On Wed, Dec 23, 2009 at 11:29, Alexandre Andrade > wrote: > > While > > > > db.convenio.

Re: [web2py:37874] How to locale web2py date calendar widget

2009-12-26 Thread Thadeus Burgess
Agreed that web2py still should handle translations. I'm not sure but for the purpose of this discussion, I think those who this concerns should look at how javascript jquery programs perform translation and see if there is a way either A) integrate web2py into this, or B) pass web2py T() to these

Re: [web2py:37875] How to locale web2py date calendar widget

2009-12-26 Thread Álvaro Justen [Turicas]
On Sat, Dec 26, 2009 at 22:07, Thadeus Burgess wrote: > Agreed that web2py still should handle translations. I'm not sure but > for the purpose of this discussion, I think those who this concerns > should look at how javascript jquery programs perform translation and > see if there is a way either

[web2py:37876] Re: Creating a password

2009-12-26 Thread kbochert
Hallelujah, its a Christmas miracle! Many Thanks, seems almost obvious now! Karl Given that the loading of an initial database is probably a useful On Dec 26, 2:44 pm, mdipierro wrote: > I guess it is not my may. I apologize I did not try my suggestion > before trying it. > Here is more guess:

[web2py:37877] Help with migrating from wordpress.

2009-12-26 Thread Thadeus Burgess
Hi all, I was wondering if anybody could give me some pointers, hopefully by the new year I will have my blog migrated completely to web2py. As far as all the posts/comments/etc, the data is migrated to web2py, and doing just fine. However I have a firm belief that in this day and age, hyperlink