[web2py:14883] cookbook tutorial not working

2009-01-13 Thread Axl
Hi there, Here's a little background about me: I'm new to web2py as well as to Python. I come from a PHP background and have some experience but I'm not a professional coder. I haven't done anything for a year or so now, but I have an idea for a very useful web app for work, so I thought I'd get

[web2py:14884] Lamba and T2

2009-01-13 Thread vihang
hi, I am trying to execute this def add(): return dict(form=t2.create(db.Accomodation, onaccept=lambda form:\ t2.add_access(db.Accomodation,form.vars.id)\ and db.listing_owner.insert(person_id=t2.person_id, Accomodation_id=form.vars.id)\ and listing(form.vars.id)\ and

[web2py:14886] Re: Lamba and T2

2009-01-13 Thread vihang
I ended doing the same, clubbing them into two functions. But I was just curious why it does not work as mentioned above. But Thanks. On Jan 13, 3:53 pm, notabene ni...@bjerre.net wrote On Jan 13, 11:00 am, vihang vihan...@gmail.com wrote: hi, I am trying to execute this def add():

[web2py:14887] Re: cookbook tutorial not working

2009-01-13 Thread Fran
On Jan 13, 8:30 am, Axl ax...@freenet.de wrote: web2py on first glance is by far the slickest web development platform I've encountered so far. It gets better :) So, I've tried the cookbook tutorial in the pdf with the 1.5.4 version for OS X and everything works until the recipes(), show()

[web2py:14889] Re: Call for Volunteers to come help rebuild Sahana

2009-01-13 Thread Joel Merrick
On Tue, Jan 13, 2009 at 1:03 PM, Fran francisb...@googlemail.com wrote: Sahana is a Free and Open Source Disaster Management system. It is a web based collaboration tool that addresses the common coordination problems during a disaster from finding missing people, managing aid, managing

[web2py:14888] Call for Volunteers to come help rebuild Sahana

2009-01-13 Thread Fran
Sahana is a Free and Open Source Disaster Management system. It is a web based collaboration tool that addresses the common coordination problems during a disaster from finding missing people, managing aid, managing volunteers, tracking camps effectively between Government groups, the civil

[web2py:14890] Re: Proposal to automatically login after registering

2009-01-13 Thread nemik
Cool, thank you Massimo! On Jan 12, 4:56 pm, mdipierro mdipie...@cs.depaul.edu wrote: thank you. I will include it asap. On Jan 12, 3:16 pm, nemik ne...@nemik.net wrote: So on many sites I see when you register via a simple registration form that doesn't require email confirmation, then

[web2py:14891] Re: Lamba and T2

2009-01-13 Thread mdipierro
the problem with f() and g() is that g() gets executed if and only if f() returns true. You can do onaccept=lambda form: (f(form),g(form)) Massimo On Jan 13, 6:12 am, vihang vihan...@gmail.com wrote: I ended doing the same, clubbing them into two functions. But I was just curious why it

[web2py:14892] Small problem with bookreviews

2009-01-13 Thread Giovanni Giorgi
Hi, I am new to the list. I know django and python, and I'd like to try web2py. After downloading bookreviews on my winxp, I tried it (I am using sqlite db only). I get stucked because of this error: Traceback (most recent call last): File c:\giorgi\ordev\web2py\gluon\restricted.py, line 62,

[web2py:14899] Re: SQLite DLL with ICU - support multilingual LIKE statements and ORDER BY

2009-01-13 Thread mdipierro
This is great, thank you. Could you comment on licensing issues? Massimo On Jan 13, 1:31 pm, Petros Diveris pdive...@gmail.com wrote: Hi, Following my previous posts with regards to upper and lower case problems I had with the sqlite3 version included in the python 2.5 (and therefore

[web2py:14900] Re: SQLite DLL with ICU - support multilingual LIKE statements and ORDER BY

2009-01-13 Thread Timothy Farrell
SQLite is Public Domain...that's why hear about it being used in pretty much everything these days. ICU is under an MIT-like license. http://source.icu-project.org/repos/icu/icu/trunk/license.html mdipierro wrote: This is great, thank you. Could you comment on licensing issues? Massimo

[web2py:14901] Re: SQLite DLL with ICU - support multilingual LIKE statements and ORDER BY

2009-01-13 Thread mdipierro
OK. if a couple of people could test this and find that it works, please let me know and I will upgrade the official windows binary distribution. massimo On Jan 13, 3:01 pm, Timothy Farrell tfarr...@swgen.com wrote: SQLite is Public Domain...that's why hear about it being used in pretty much

[web2py:14902] Re: SQLite DLL with ICU - support multilingual LIKE statements and ORDER BY

2009-01-13 Thread Petros Diveris
The ICU license simply states Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,

[web2py:14904] Re: Labels on table definition

2009-01-13 Thread mfolmos
I answer myself: RTFM a=SQLField (name,'string',length=32,required=False,default=None,requires=IS_NOT_EMPTY (),notnull=False, unique=False,uploadfield=None,widget=None, label=None) Why doesn't put this on the cookbook or t2 manual with the examples? taken from the t2.pdf * models/db.py 1

[web2py:14905] Re: Labels on table definition

2009-01-13 Thread mdipierro
It should. This is one of the many features that was added after the manual was written. As soon as we finish integrating T2 into web2py, the manual will be revised. Hopefuly in one month. Massimo On Jan 13, 7:48 pm, mfolmos mfol...@gmail.com wrote: I answer myself: RTFM a=SQLField

[web2py:14906] future of T2 and T3

2009-01-13 Thread mdipierro
As result of yesterday discussions on web2pychat.com we agreed to: 1) move some of the functionality of T2 into web2py 2) leave T2 as an example of plugin that extends core functionalities 3) create an app for plugin management (a plugin being an app with a special identifier that provides

[web2py:14907] Single Table Inheritance?

2009-01-13 Thread Fran
Does Web2Py support his? - it certainly looks very useful... http://martinfowler.com/eaaCatalog/singleTableInheritance.html Examples of this in Rails: http://wiki.rubyonrails.org/rails/pages/singletableinheritance