Re: [web2py:37846] Re: Documentation

2009-12-25 Thread Jason Brower
I agree... problem sets would be a good way for teachers to use the book as well. :D BR, Jason Brower On Fri, 2009-12-25 at 16:45 -0800, ma...@rockiger.com wrote: > A suggestion for the book. Could you add some problems sets to the > new edition? It makes it easier for to learn the topics in the

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

2009-12-25 Thread mdipierro
Can you describe the problem? Is this when inserting or when extracting? Massimo On Dec 25, 4:21 pm, Tito Garrido wrote: > I'm getting this error for "string" fields on GAE... is that related? For > uploads and texts fields seems to be working... > > Regards, > > Tito > > > > On Wed, Dec 23, 2

[web2py:37844] Re: Documentation

2009-12-25 Thread mdipierro
good point. I will. On Dec 25, 6:45 pm, "ma...@rockiger.com" wrote: > A suggestion for the book. Could you add some problems sets to the > new edition? It makes it easier for to learn the topics in the book. > > On Dec 21, 11:17 pm, mdipierro wrote: > > > You can view it for free on scribd but t

[web2py:37843] Re: Documentation

2009-12-25 Thread ma...@rockiger.com
A suggestion for the book. Could you add some problems sets to the new edition? It makes it easier for to learn the topics in the book. On Dec 21, 11:17 pm, mdipierro wrote: > You can view it for free on scribd but the only option to download is > lulu. There will be anewversion in summer 2010 be

[web2py:37842] Re: Happy Holidays

2009-12-25 Thread Richard
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 message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to

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

2009-12-25 Thread Tito Garrido
I'm getting this error for "string" fields on GAE... is that related? For uploads and texts fields seems to be working... Regards, Tito On Wed, Dec 23, 2009 at 4:38 AM, v wrote: > Great! both solutions work fine now. Have tested with a few binary > file uploads. Using your changes in the tr

[web2py:37840] Re: Happy Holidays

2009-12-25 Thread Vidul Petrov
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 because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send em

[web2py:37839] Re: 400 error

2009-12-25 Thread mdipierro
Please try 1.74.4. I do remember when the requested_uri was introduced. Massimo On Dec 25, 1:13 pm, kbochert wrote: > Version 1.72.3 > > Karl > > On Dec 25, 7:16 am, mdipierro wrote: > > > Which  web2py version? > > > On Dec 25, 3:38 am, kbochert wrote: > > > > Nope. > > > > In routes.py I hav

[web2py:37838] Re: Creating a password

2009-12-25 Thread mdipierro
Silly me. Too much food. password=db.auth_user.requires('yourpassword')[0] On Dec 25, 1:12 pm, kbochert wrote: > No Luck. > Causes a missing key error. (db does not have a 'auth_table') Maybe > this is new since 1.72.3? >   I tried numerous permutations without success.  I am deleting the > data

Re: [web2py:37837] Re: Happy Holidays

2009-12-25 Thread Johann Spies
2009/12/25 KMax : > Warm wishes from cold Russia! > And from warm South Africa! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+u

[web2py:37836] Re: 400 error

2009-12-25 Thread kbochert
Version 1.72.3 Karl On Dec 25, 7:16 am, mdipierro wrote: > Which  web2py version? > > On Dec 25, 3:38 am, kbochert wrote: > > > Nope. > > > In routes.py I have: > > routes_onerror = [ > >     ('myapp/400' , '/myapp/error/index'), > >     ] > > > which correctly catches the error > > > In \myapp

[web2py:37835] Re: Creating a password

2009-12-25 Thread kbochert
No Luck. Causes a missing key error. (db does not have a 'auth_table') Maybe this is new since 1.72.3? I tried numerous permutations without success. I am deleting the database files and restarting the server for each test. Karl On Dec 25, 7:20 am, mdipierro wrote: > replace > > password=hmac

[web2py:37834] Re: Happy Holidays

2009-12-25 Thread KMax
Warm wishes from cold Russia! -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, vis

[web2py:37833] Re: Cron job at WebFaction

2009-12-25 Thread annet
Andy, I think your guess is right, to be sure I asked support the same question. Here is their answer: There is a Control Panel installer for 'mod_wsgi 2.5/Python 2.5' - it automatically creates a cron job that would start the server, if it is not running. I guess 'the server' refers to web2py

[web2py:37832] Re: Creating a password

2009-12-25 Thread mdipierro
replace password=hmac.new(key, 'jh', hashlib.sha512).hexdigest() with password=db.auth_table.requires('yourpassword')[0] I think the problem is that if you use hashlib.sha512 you have to add 'sha512:' in front of the hexdigest. look into CRYPT for details. On Dec 25, 4:31 am, kbochert wrote:

[web2py:37831] Re: 400 error

2009-12-25 Thread mdipierro
Which web2py version? On Dec 25, 3:38 am, kbochert wrote: > Nope. > > In routes.py I have: > routes_onerror = [ >     ('myapp/400' , '/myapp/error/index'), >     ] > > which correctly catches the error > > In \myapp\views\error\index.html  I have > >   request.vars.requested_uri-- {{=request.var

[web2py:37830] Re: Postgresql-types limited by web2py :(

2009-12-25 Thread mdipierro
yes this is definitively possible. I would try inet = SQLCustomType ( type ='string', native ='inet')) db.define_table ( 'example', Field('value', type=inet) ) Massimo On Dec 25, 3:21 am, KMax wrote: > Sorry for linking: > > htt

[web2py:37829] Creating a password

2009-12-25 Thread kbochert
When I startup web2py without a database, it creates it. When this happens I wish to 'pre-load' some data for testing. How do I create a user with a password? I'm putting code in db.py like: if not db().select(db.auth_user.ALL): #database is empty import hashlib key = auth.settings.hmac_

[web2py:37828] Re: 400 error

2009-12-25 Thread kbochert
Nope. In routes.py I have: routes_onerror = [ ('myapp/400' , '/myapp/error/index'), ] which correctly catches the error In \myapp\views\error\index.html I have request.vars.requested_uri-- {{=request.vars.requested_uri}} which renders as: request.vars.requested_uri-- None What

[web2py:37827] Happy Holidays

2009-12-25 Thread Frank
Hi, everybody, I wish all members and your families Happy Holidays and Happy New Year with greetings from China, wish web2py has a brilliant fiuture! Frank Wen -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email

[web2py:37826] Re: Postgresql-types limited by web2py :(

2009-12-25 Thread KMax
Sorry for linking: http://www.postgresql.org/docs/current/static/datatype-net-types.html Maybe in some way inet/cidr types could be released using SQLCustomType On 24 дек, 10:20, mdipierro wrote: > what is the inet type? -- You received this message because you are subscribed to the Google Gr

[web2py:37825] Re: Happy Holidays

2009-12-25 Thread Mengu
merry christmas to our christian members and happy new year to everyone :) -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubs