[web2py:15667] Multiple validation problem (bug?)

2009-01-31 Thread ionel
Hello, I have the example: db.define_table("book", SQLField("author","string",length=200,notnull=True,default=""), SQLField("title","string",length=200,notnull=True,default=""), SQLField("volume","string",length=10,notnull=True,default=""), migrate=True) db.book.title.requires=I

[web2py:15666] Re: SQLFORM + hidden field

2009-01-31 Thread ionel
web2py Version 1.55.2 (2009-01-08 08:38:01) Apache/2.2.9 mod_python/3.3.1 Python/2.5.2 mod_wsgi/2.3 On Jan 31, 10:54 pm, mdipierro wrote: > which version of web2py are you using? > > On Jan 31, 9:38 pm, ionel wrote: > > > Thank you Massimo. > > > I already applied your solution. > > I verified

[web2py:15665] Re: SQLFORM + hidden field

2009-01-31 Thread mdipierro
which version of web2py are you using? On Jan 31, 9:38 pm, ionel wrote: > Thank you Massimo. > > I already applied your solution. > I verified the request.vars.category_id content. It's "None". > > ionel > > On 31 Ian, 22:18, mdipierro wrote: > > > I am sure category_id is in request.vars.categ

[web2py:15664] Re: SQLFORM + hidden field

2009-01-31 Thread ionel
Thank you Massimo. I already applied your solution. I verified the request.vars.category_id content. It's "None". ionel On 31 Ian, 22:18, mdipierro wrote: > I am sure category_id is in request.vars.category_id > > accepts will not move it in form.vars.id it is not obvious that is > what you w

[web2py:15663] Re: SQLFORM + hidden field

2009-01-31 Thread mdipierro
I am sure category_id is in request.vars.category_id accepts will not move it in form.vars.id it is not obvious that is what you want to do. Try form=SQLFORM(db.book, fields=['author','title'], hidden=dict(category_id=the_category_id), submit_button='Add') form.vars

[web2py:15662] Re: def some methods to the Object of Record

2009-01-31 Thread mdipierro
I needs some context. I do not see the problem. Massimo On Jan 31, 8:14 pm, BearXu wrote: > PLUS:if we want to add an friendship between two friends. > we can not do: >  db.friendship.insert(user_id=aid , user_id=pid) > > Wether it a bug? > > 2009/2/1 BearXu > > > Now we can: > > > me=db(db.pe

[web2py:15661] Re: "deletable=True" not working in SQLFORM

2009-01-31 Thread NetHead
No takers yet on this one? At the very least, can anyone out there verify whether they've had ANY kind of Web2py delete feature work on a row within table that has foreign keys (with enforced cascading deletes)? To re-emphasize, a row can be deleted from the problematic table using SQL Studio w

[web2py:15660] SQLFORM + hidden field

2009-01-31 Thread ionel
I have the following example: the_category_id = 1 form=SQLFORM(db.book, fields=['author','title'], hidden=dict(category_id=the_category_id), submit_button='Add') After submit, the field "category_id" has no content. I verified the source code of my page. The value is

[web2py:15659] Re: def some methods to the Object of Record

2009-01-31 Thread BearXu
PLUS:if we want to add an friendship between two friends. we can not do: db.friendship.insert(user_id=aid , user_id=pid) Wether it a bug? 2009/2/1 BearXu > Now we can: > > me=db(db.person.id==person_id).select()[0] > > me.name > > me.update_record(name="Max") > > > So can I def some methods li

[web2py:15658] def some methods to the Object of Record

2009-01-31 Thread BearXu
Now we can: me=db(db.person.id==person_id).select()[0] me.name me.update_record(name="Max") So can I def some methods like: me.personal_def_method --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:15657] Re: Unable to run web2py in a git workspace

2009-01-31 Thread mdipierro
Thanks. In trunk. On Jan 31, 3:37 pm, Kacper Krupa wrote: > Yes, and also you can import it and use in gluon/main.py in creating > apps. Each run of web2py.py will repair "broken" apps. > > PS Sorry for double posting. > > On Jan 31, 10:32 pm, Kacper Krupa wrote: > > > No problem -http://pageno

[web2py:15656] Re: Do we have an easy way to move a record in web2py?

2009-01-31 Thread BearXu
Why can't we invent a "move" command :) 2009/1/31 mdipierro > > define: > > def cleanup(record,fields): >return dict([(k,v) for k,v in record.items() if k in fields and > not k=='id']) > > then copy it > > db.b.insert(**cleanup(db(db.a.id==id).select()[0],db.b.fields)) > > then delete the o

[web2py:15655] Will DAL support the verion control in the future?

2009-01-31 Thread BearXu
For example, I reuploaded a new file. Then can I have two files under version control like django-reversion ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fra

[web2py:15654] Re: Do we have an easy way to move a record in web2py?

2009-01-31 Thread mdipierro
define: def cleanup(record,fields): return dict([(k,v) for k,v in record.items() if k in fields and not k=='id']) then copy it db.b.insert(**cleanup(db(db.a.id==id).select()[0],db.b.fields)) then delete the old one db(db.a.id==id).delete() On Jan 31, 4:30 pm, BearXu wrote: > Now I want

[web2py:15653] Re: how to turn off cron?

2009-01-31 Thread rctay
Cool, thanks. On Feb 1, 1:53 am, achipa wrote: > Fix added for close_fd, will send it to Massimo on monday. > > Fran wrote: > > On Jan 31, 4:31 pm, mdipierro wrote: > > > On Jan 31, 3:17 am, rctay wrote: > > > > my web2py server instance keeps complaining about cron. I don't want > > > > it, i

[web2py:15652] Re: What's this? web2py.org

2009-01-31 Thread Jaroslaw Zabiello
There was an error in registar DNS settings. web2py.org should point to web2py.com now. That previous page was in Polish and it was Quran searcher. It was because of that DNS error. And trademark has nothing to do with that. Any domain can point to any content. Compare http://python.org and http:/

[web2py:15651] Do we have an easy way to move a record in web2py?

2009-01-31 Thread BearXu
Now I want to move a record from A table to B table do we have an easier way? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com

[web2py:15650] Re: Unable to run web2py in a git workspace

2009-01-31 Thread Kacper Krupa
Yes, and also you can import it and use in gluon/main.py in creating apps. Each run of web2py.py will repair "broken" apps. PS Sorry for double posting. On Jan 31, 10:32 pm, Kacper Krupa wrote: > No problem -http://pagenoare.net/paste/default/show/21:) > > On Jan 31, 5:36 pm, mdipierro wrote:

[web2py:15649] Re: Unable to run web2py in a git workspace

2009-01-31 Thread Kacper Krupa
No problem - http://pagenoare.net/paste/default/show/21 :) On Jan 31, 5:36 pm, mdipierro wrote: > can you please add 'cron' to the list? > ['sessions', 'errors', 'databases', 'tests', 'uploads', 'cache', > 'languages', 'private']: > > Thank you. Should should be part of web2py/scripts > > On Jan

[web2py:15648] Re: What's this? web2py.org

2009-01-31 Thread Pystar
I dont understand the language, but there is a name "Jaroslaw". Seems i have seen that name in this forum! not too sure On Jan 31, 9:49 pm, Markus Gritsch wrote: > Hi, > > look athttp://web2py.org/ > > I cannot understand the language, but the last paragraph mentions > Python and Django.  Could

[web2py:15647] Re: An example of MSSQL database connection and installing modules to support it

2009-01-31 Thread kgingeri
Thanks Ondrej, I do have unixodbc loaded - the MacPorts program (port at a shell) is a installer, like apt-get in Linux. I also seem to have (pre-installed?) iODBC and I don't know, but I think it may be getting in the way or at least confusing the issue. I have no experience at all with ODBC on

[web2py:15646] What's this? web2py.org

2009-01-31 Thread Markus Gritsch
Hi, look at http://web2py.org/ I cannot understand the language, but the last paragraph mentions Python and Django. Could this be a source of confusion for someone who does not already know Massimos web2py? Is this legal, since Massimo registered the trademark of wen2py? Kind regards, Markus

[web2py:15645] Re: how to turn off cron?

2009-01-31 Thread achipa
Fix added for close_fd, will send it to Massimo on monday. Fran wrote: > On Jan 31, 4:31 pm, mdipierro wrote: > > On Jan 31, 3:17 am, rctay wrote: > > > my web2py server instance keeps complaining about cron. I don't want > > > it, is there an option to turn it off? > > Which os? > > I get it o

[web2py:15644] Re: how to turn off cron?

2009-01-31 Thread achipa
btw There is a patch in the pipeline that adds a command line option - N to disable cron, but it's not in trunk yet. On Jan 31, 10:17 am, rctay wrote: > Hi, > > my web2py server instance keeps complaining about cron. I don't want > it, is there an option to turn it off? --~--~-~--~~-

[web2py:15643] Re: how to turn off cron?

2009-01-31 Thread achipa
Can you tell me what it is complaining about ? An error message would be helpful. On Jan 31, 10:17 am, rctay wrote: > Hi, > > my web2py server instance keeps complaining about cron. I don't want > it, is there an option to turn it off? --~--~-~--~~~---~--~~ You re

[web2py:15642] Re: how to turn off cron?

2009-01-31 Thread Fran
On Jan 31, 4:31 pm, mdipierro wrote: > On Jan 31, 3:17 am, rctay wrote: > > my web2py server instance keeps complaining about cron. I don't want > > it, is there an option to turn it off? > Which os? I get it on Windows XP (Python 2.5.4), but have been ignoring it happily since I don't use it y

[web2py:15641] Re: Unable to run web2py in a git workspace

2009-01-31 Thread mdipierro
can you please add 'cron' to the list? ['sessions', 'errors', 'databases', 'tests', 'uploads', 'cache', 'languages', 'private']: Thank you. Should should be part of web2py/scripts On Jan 31, 6:18 am, Kacper Krupa wrote: > I wrote small script to repair it. Place file named 'repair.py' in > root

[web2py:15640] Re: oscon 2009

2009-01-31 Thread mdipierro
I was planning to submit a proposal. If time permits. On Jan 31, 10:00 am, Wes James wrote: > Anyone going to/participating in this? > > http://en.oreilly.com/oscon2009 > > -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

[web2py:15639] Re: how to turn off cron?

2009-01-31 Thread mdipierro
Which os? On Jan 31, 3:17 am, rctay wrote: > Hi, > > my web2py server instance keeps complaining about cron. I don't want > it, is there an option to turn it off? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web

[web2py:15638] oscon 2009

2009-01-31 Thread Wes James
Anyone going to/participating in this? http://en.oreilly.com/oscon2009 -wj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com

[web2py:15637] Re: Hackfest for Web2Py/Sahana on Feb 14th 15:30 UTC

2009-01-31 Thread dhmorgan
Thanks for the "heads up" on this. Sahana looks like a very important project, especially from the vantage point of the U.S.'s Gulf Coast. I look forward to participating. Danny On Jan 31, 7:59 am, Fran wrote: > We are holding a Hackfest for Sahana on Feb 14th 15:30 > UTChttps://trac.sahanapy.

[web2py:15636] Hackfest for Web2Py/Sahana on Feb 14th 15:30 UTC

2009-01-31 Thread Fran
We are holding a Hackfest for Sahana on Feb 14th 15:30 UTC https://trac.sahanapy.org/wiki/FOSSkriti There will be a physical group of people who're attending a conference at IIT Kanpur (India) & several people joining in remotely via IRC. Sahana is being built using Web2Py's new tools.py Auth/Cr

[web2py:15635] Re: Unable to run web2py in a git workspace

2009-01-31 Thread Kacper Krupa
I wrote small script to repair it. Place file named 'repair.py' in root of web2py and paste the source from here: http://pagenoare.net/paste/default/show/20 It checks and if some directory misses, it'll create it :) On Jan 17, 4:51 am, BigBaaadBob wrote: > I just want to point out, for those wh

[web2py:15634] Re: 1.56rc2 is in trunk

2009-01-31 Thread Fran
On Jan 31, 7:33 am, mdipierro wrote: > Please try create a new empty app. > The scaffolding db.py module contains instructions for Mail, Auth, > Crud. > Please try it. report bug. send me comments. > Is this confusing? Is this helpful? Does it belong there or should it > only be in docs? +1 for

[web2py:15633] Re: An example of MSSQL database connection and installing modules to support it

2009-01-31 Thread ondrejs
Hi Karl, it would be best if you could find an ODBC driver that supports Unicode (it was I added in ODBC 3). I googled a little (I don't have a Mac to try it myself), and found this link http://unixodbc.darwinports.com/ Let me know if that doesn't work,, --Ondrej On 30. Jan, 16:11 h., Karl Gi

[web2py:15632] how to turn off cron?

2009-01-31 Thread rctay
Hi, my web2py server instance keeps complaining about cron. I don't want it, is there an option to turn it off? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, sen