[web2py:22343] Re: weirdest database error

2009-05-22 Thread Yarko Tymciurak
Isn't this typical of debugging? Once you (finally) see the problem, so often it seems so obvious... Smile, and know this is just so, the world over! ;-) On Fri, May 22, 2009 at 12:55 AM, Horst Herb my.list.subscripti...@gmail.com wrote: On Fri, May 22, 2009 at 3:32 PM, mdipierro

[web2py:22344] Re: weirdest database error

2009-05-22 Thread Iceberg
On May22, 3:55pm, Horst Herb my.list.subscripti...@gmail.com wrote: On Fri, May 22, 2009 at 3:32 PM, mdipierro mdipie...@cs.depaul.edu wrote: I need to go sleep now but email your code a better description of the problem. I still do not understand what the symptoms are. I will look at it

[web2py:22345] Re: new to web2py re session.counter example

2009-05-22 Thread NikG
Thank you. I've noticed a lot of differences from the examples and the current version of web2py. It is very confusing to someone without any background on web frameworks. I know it's said somewhere that w2p is always backward compatible, is there a page I could look at for changes since

[web2py:22346] Re: SQL Import

2009-05-22 Thread dlypka
There is in fact a utiltiy named auto.py which will 'assist you' to convert SQL schemas to web2py schemas. It assumes you are able to script out your table schemas from your database engine to a file. You still need to do some simple editing of the SQL schema to eliminate lines which auto.py will

[web2py:22347] Re: IS_IN_DB - multiple-level reference ?

2009-05-22 Thread mika
Yeah, I want to do something like DenesL proposed:) --~--~-~--~~~---~--~~ 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 To unsubscribe from this

[web2py:22348] gluon/tools.py refers to missing serializers

2009-05-22 Thread HansD
tools.py 18: import serializers (added with update 823 on launchpad) this file is not present, at least not on my system and not in the repository. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:22349] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread desfrenes
I don't think there is an alter ego page for .net, but apart from the technical stuff, your client should be convinced by the cost. On May 21, 8:06 pm, weheh richard_gor...@verizon.net wrote: I'm trying to convince a client to go with web2py vs. with asp/.net. I'm wondering if anyone could

[web2py:22350] allow NULL in date field in SQLFORM

2009-05-22 Thread Horst Herb
given a table with a 'date' field and the crud generated or SQLFORM generated forms, how can I tell the form to accept *empty* values for a date? Thanks, Horst --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py

[web2py:22351] Re: allow NULL in date field in SQLFORM

2009-05-22 Thread annet . vermeer
Horst, In the table definition: SQLField('fieldname', type='date') ... and a validator on this field which reads like: db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m- %d' Kind regards, Annet. --~--~-~--~~~---~--~~ You received this

[web2py:22352] Update and delete

2009-05-22 Thread annet
I have my authentication, authorization, create and read functions working, however, I don't get update and delete function to function without flaws. The problem lies in the fact that the vistor can tamper with the URL in the browser's address bar. In a view I have got: td

[web2py:22353] Re: allow NULL in date field in SQLFORM

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 7:20 PM, annet.verm...@gmail.com wrote: db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m- %d' Thanks, that was what I was looking for! Another question: how / where can I (application wide) change the date format string so that all date entry and

[web2py:22354] args and vars

2009-05-22 Thread annet
In a view I defined the following link: td {{=A(row.adressoort,_href=URL(r=request,f='update_address',args= [row.id]))}} /td I wonder whether it is possible to display the URL without the args being displayed. I guess _method='post' doesn't work in case of an a tag. Kind regards, Annet

[web2py:22355] Re: allow NULL in date field in SQLFORM

2009-05-22 Thread annet . vermeer
Horst, Model: T.force('en-de') ## en-de is a language file you'll create below In the table definition: SQLField('fieldname', type='date') ... a validator on this field which reads like: db.tablename.fieldname.requires=IS_NULL_OR(IS_DATE(str(T('%Y-%m- %d' Languages: ... create a

[web2py:22356] Re: args and vars

2009-05-22 Thread cjparsons
It's evil and horrific but if you're desperate you could maybe at the start of the function store the arguments in the session then redirect to the same function, without the arguments in the URL. At the start of the function, check for the details in the session, store them in a local variable

[web2py:22357] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread dlypka
I am an ASP.NET 3.5 developer. I will try to post some points tonight. On May 22, 4:36 am, desfrenes desfre...@gmail.com wrote: I don't think there is an alter ego page for .net, but apart from the technical stuff, your client should be convinced by the cost. On May 21, 8:06 pm, weheh

[web2py:22358] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread dlypka
Do you intend to run on .NET (Iron Python?) or completely non .NET? On May 21, 2:06 pm, weheh richard_gor...@verizon.net wrote: I'm trying to convince a client to go with web2py vs. with asp/.net. I'm wondering if anyone could offer some comparisons of the two that could give me some

[web2py:22359] Re: weirdest database error

2009-05-22 Thread mdipierro
Thanks Horst for posting the solution, it is important for all of us to know that there are no open issues. Moreover other people may have the same issues in the future. Massimo On May 22, 12:55 am, Horst Herb my.list.subscripti...@gmail.com wrote: On Fri, May 22, 2009 at 3:32 PM, mdipierro

[web2py:22360] Re: new to web2py re session.counter example

2009-05-22 Thread mdipierro
Everything in the web2py_manual_cut works (typos aside). We just added a lot of other features. We try document what we can on the docs web page. On May 22, 1:14 am, NikG nikolai...@gmail.com wrote: Thank you. I've noticed a lot of differences from the examples and the current version of

[web2py:22361] Re: SQL Import

2009-05-22 Thread mdipierro
Can you email the new auto to me? On May 22, 1:19 am, dlypka dly...@gmail.com wrote: There is in fact a utiltiy named auto.py which will 'assist you' to convert SQL schemas to web2py schemas. It assumes you are able to script out your table schemas from your database engine to a file. You

[web2py:22362] Re: gluon/tools.py refers to missing serializers

2009-05-22 Thread mdipierro
oops will fix it soon On May 22, 3:30 am, HansD hans.don...@pobox.com wrote: tools.py 18: import serializers (added with update 823 on launchpad) this file is not present, at least not on my system and not in the repository. --~--~-~--~~~---~--~~ You

[web2py:22363] Re: Update and delete

2009-05-22 Thread mdipierro
if record: On May 22, 4:45 am, annet annet.verm...@gmail.com wrote: I have my authentication, authorization, create and read functions working, however, I don't get update and delete function to function without flaws. The problem lies in the fact that the vistor can tamper with the URL

[web2py:22364] Re: Most complex app in Web2Py yet?

2009-05-22 Thread JorgeR
thank you Massimo: what about web2py being used for build big-name like apps (gmail, youtube, rtm, facebook) Would you recommend it over other languages? On May 21, 9:39 pm, mdipierro mdipie...@cs.depaul.edu wrote: look forward to the horst app too! On May 21, 9:39 pm, mdipierro

[web2py:22366] Re: Most complex app in Web2Py yet?

2009-05-22 Thread mdipierro
I would. As soon as I have some time I will write some new docs about tricks for scalability. On May 22, 7:38 am, JorgeR jorgeh...@gmail.com wrote: thank you Massimo: what about web2py being used for build big-name like apps (gmail, youtube, rtm, facebook) Would you recommend it over other

[web2py:22367] new changes since book was published

2009-05-22 Thread NikG
Hi all. from the manual h1Hello {{=session.visitor_name or anonymous}}/h1 current form {{=H1('Hello ', session.visitor_name or 'anonynous')}} Is there any (newbie friendly) guide I can read about these kind of changes? I like the current cleaner looking structure but it gets confusing when

[web2py:22368] Re: Most complex app in Web2Py yet?

2009-05-22 Thread Sebastian E. Ovide
you would save a lot of time using web2py as backend... for the frontend you could do heavy use of some Ajax framework... with web2py it takes only few lines to write a controller for services that read/write the databases and reponses in Json or xml (perfect for Ajax)

[web2py:22369] Re: new changes since book was published

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 10:44 PM, NikG nikolai...@gmail.com wrote: from the manual h1Hello {{=session.visitor_name or anonymous}}/h1 current form {{=H1('Hello ', session.visitor_name or 'anonynous')}} Is there any (newbie friendly) guide I can read about these kind of changes? No changes

[web2py:22370] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread weheh
I believe it will be run completely on .net, not Iron Python. On May 22, 8:29 am, dlypka dly...@gmail.com wrote: Do you intend to run on .NET (Iron Python?) or completely non .NET? On May 21, 2:06 pm, weheh richard_gor...@verizon.net wrote: I'm trying to convince a client to go with

[web2py:22372] Re: new changes since book was published

2009-05-22 Thread carlo
Hi NikG, I do not see any current form way from your example. In the first one you are using the usual h1 tag from html where you add some python code in braces (just strings in this case but you could have any python code here). In the second one you are using the H1 web2py helper to get the

[web2py:22373] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread Yarko Tymciurak
as an aside, has anyone tried web2py on IronPython? (I imagine there must be some roadblocks; at this point I'm just curious if anyone has tried) On Fri, May 22, 2009 at 7:29 AM, dlypka dly...@gmail.com wrote: Do you intend to run on .NET (Iron Python?) or completely non .NET? On May 21,

[web2py:22374] Re: Most complex app in Web2Py yet?

2009-05-22 Thread JohnMc
Horst, Congrats. I would be interested in looking at the appointment system and document storage. Working on a financial services system for a friend so those two components would have a fit we might be able to collaborate on. On May 21, 7:50 pm, Horst Herb my.list.subscripti...@gmail.com

[web2py:22376] How to create an application from Web2Py shell and DAL

2009-05-22 Thread cesmiga
All: I'm looking for documentation about how to create a web2py application from the shell. Does anyone have information on this? Also, does anyone have information about the Web2Py shell and/or DAL. Thank you, Christopher --~--~-~--~~~---~--~~ You received

[web2py:22377] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread mdipierro
Yes, somebody has tried and web2py run on ironpython with the exception of wsgiserver and database drivers. Anyway. I think the topic of this thread was web2py vs asp.net. I am not competent on asp.net to comment and Dlypka,s comments on this topic. I had conversations I had to asp.net

[web2py:22378] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread mdipierro
Have you tried? web2py.py -h On May 22, 8:47 am, cesmiga cesm...@gmail.com wrote: All: I'm looking for documentation about how to create a web2py application from the shell.  Does anyone have information on this?  Also, does anyone have information about the Web2Py shell and/or DAL.

[web2py:22380] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread Yarko Tymciurak
web2py -S welcome, for example, will give you a python interpreter with the current web2py environment. If you add '-M', then the models for the application will also be run. If you have ipython installed on your system, then the ipython interpreter will be run (otherwise just the python

[web2py:22381] Re: New in trunk .html, .xml, .json, .rss

2009-05-22 Thread Jason Brower
Can we please have someone document this, I would love to have a less, well, terse example. Nothing wrong with your explanation, I just like a more tutorial styled instruction set. :D Regards, Jason On Fri, 2009-05-22 at 05:54 -0700, mdipierro wrote: - download trunk - Create a new app -

[web2py:22383] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread Horst Herb
On Fri, May 22, 2009 at 11:47 PM, cesmiga cesm...@gmail.com wrote: I'm looking for documentation about how to create a web2py application from the shell.  Does anyone have information on this?  Also, does anyone have information about the Web2Py shell and/or DAL. python web2py.py -S appname

[web2py:22384] Re: New in trunk .html, .xml, .json, .rss

2009-05-22 Thread mdipierro
It is very simple actually. If you call any action now you add an extension (for example .xxx). If there is extension instead of looking for a view ending in .html it looks for a view with the extension you requested. If it does not find it it will try a generic view with the extension you

[web2py:22385] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread cesmiga
Massimo, Here is what I see when I try to create a new application with the latest Web2Py. From the webUI, I have no problem creating a new application. Christopher ++ r...@vm-debian-5:/opt/web2py# ./web2py.py -S testApp WARNING:root:Informix

[web2py:22386] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread mdipierro
You found a bug! Will fix it now. On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote: Massimo, Here is what I see when I try to create a new application with the latest Web2Py.  From the webUI, I have no problem creating a new application. Christopher

[web2py:22387] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread cesmiga
Massimo, I'm not sure if this is a related issue, but I see the following when I run... r...@vm-debian-5:/opt/web2py# ./web2py.py -S admin -M WARNING:root:Informix support is experimental WARNING:root:GUI not available because Tk library is not installed default applications appear to be

[web2py:22388] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread mdipierro
fixed. try trunk again. On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote: Massimo, Here is what I see when I try to create a new application with the latest Web2Py.  From the webUI, I have no problem creating a new application. Christopher

[web2py:22390] Re: How to create an application from Web2Py shell and DAL

2009-05-22 Thread cesmiga
Massimo, My apologies, but I'm having trouble finding the trunk. Would you point me to the location of that for download. Thank you, Christopher mdipierro wrote: fixed. try trunk again. On May 22, 9:35 am, cesmiga cesm...@gmail.com wrote: Massimo, Here is what I see when I try to

[web2py:22405] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread Yarko Tymciurak
On Fri, May 22, 2009 at 11:31 AM, dlypka dly...@gmail.com wrote: Sorry I am not clear regarding your reply. Let me rephrase the question: If your company selects web2py as its development tool, what platform do you expect to run web2py on - .NET (in which case I believe web2py would be

[web2py:22406] Re: Most complex app in Web2Py yet?

2009-05-22 Thread mikech
I'd be interested to see a list of components you chose to build these with. For instance which UI did you use? Mike On May 21, 4:42 pm, JorgeRpo jorgeh...@gmail.com wrote: Hello I'd like to know about really complex apps made with web2py so far.. Anyone care to share experiences? Could

[web2py:22409] Re: query question

2009-05-22 Thread mdipierro
No but your can do (db.table.fieldvalue1)(db.table.fieldvalue2) On May 22, 11:11 am, Yarko Tymciurak yark...@gmail.com wrote: There isn't, but this might be useful... It seems to be SQL standard (reserved word in SQL-92 and SQL-2003); it seems to be in sqlite; Not sure how it would play out

[web2py:22410] Re: Update and delete

2009-05-22 Thread Kacper Krupa
if not len(record): or: query=db(db.adres.id==record_id) if query.count() == 0: and then: row = query.select(field)[0] On 22 Maj, 11:45, annet annet.verm...@gmail.com wrote: I have my authentication, authorization, create and read functions working, however, I don't get update and delete

[web2py:22411] Re: recent changes cause event (jdiv) apps to fail

2009-05-22 Thread mdipierro
Very odd. I see this too but I cannot think of any change that may have affected this. If you have any clue let me know. massimo On May 22, 11:46 am, Wes James compte...@gmail.com wrote: Massimo, I updated to latest trunk and now when I do a submit on a form in a jdiv I get: 400 BAD

[web2py:22412] Re: recent changes cause event (jdiv) apps to fail

2009-05-22 Thread Wes James
I just went and downloaded 1.62.3 from web2py.com and it works again. I'll poke around and see what i can find. -wes On Fri, May 22, 2009 at 11:23 AM, mdipierro mdipie...@cs.depaul.edu wrote: Very odd. I see this too but I cannot think of any change that may have affected this. If you have

[web2py:22413] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread mdipierro
I think this off topic. I would not recommend anybody to run web2py with IronPython and IIS. I think the original question was to use web2py (standalone, perhaps with apache and mssql or postgresql) vs APS.NET. the advantages of web2py is that you are not locked in any proprietary solution, you

[web2py:22414] Re: Update and delete

2009-05-22 Thread mdipierro
I repeat if not record: On May 22, 12:22 pm, Kacper Krupa pageno...@gmail.com wrote: if not len(record): or: query=db(db.adres.id==record_id) if query.count() == 0: and then: row = query.select(field)[0] On 22 Maj, 11:45, annet annet.verm...@gmail.com wrote: I have my

[web2py:22416] Re: Update and delete

2009-05-22 Thread Kacper Krupa
Yes, sorry - i've checked. I always used len(). On 22 Maj, 19:28, mdipierro mdipie...@cs.depaul.edu wrote: I repeat if not record: On May 22, 12:22 pm, Kacper Krupa pageno...@gmail.com wrote: if not len(record): or: query=db(db.adres.id==record_id) if query.count() == 0: and

[web2py:22417] Re: recent changes cause event (jdiv) apps to fail

2009-05-22 Thread mdipierro
got it. fixed and reuploading to trunk. On May 22, 12:25 pm, Wes James compte...@gmail.com wrote: I just went and downloaded 1.62.3 from web2py.com and it works again. I'll poke around and see what i can find. -wes On Fri, May 22, 2009 at 11:23 AM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:22418] Re: query question

2009-05-22 Thread JohnMc
Thanks again. On May 22, 12:16 pm, mdipierro mdipie...@cs.depaul.edu wrote: No but your can do (db.table.fieldvalue1)(db.table.fieldvalue2) On May 22, 11:11 am, Yarko Tymciurak yark...@gmail.com wrote: There isn't, but this might be useful... It seems to be SQL standard (reserved word

[web2py:22419] Re: recent changes cause event (jdiv) apps to fail

2009-05-22 Thread Wes James
that did it! thx! -wes On Fri, May 22, 2009 at 11:49 AM, mdipierro mdipie...@cs.depaul.edu wrote: got it. fixed and reuploading to trunk. On May 22, 12:25 pm, Wes James compte...@gmail.com wrote: I just went and downloaded 1.62.3 from web2py.com and it works again. I'll poke around

[web2py:22420] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread mikech
Maybe I'm missing the point, but it seems to me that the advantage of web2py is that you get to use Python. On May 22, 10:27 am, mdipierro mdipie...@cs.depaul.edu wrote: I think this off topic. I would not recommend anybody to run web2py with IronPython and IIS. I think the original question

[web2py:22421] Re: AUTH

2009-05-22 Thread HansD
had some issues with trying to get an update to that branch (must have messed up locally), so the branch is now lp:~hans-d/web2py/dev-gae- auth2 (trying to catchup with the fixes of Massimo, as tools.py is in the middle of a change festival) On May 21, 4:23 pm, HansD hans.don...@pobox.com

[web2py:22422] crud.create() get the id of last create record

2009-05-22 Thread NewBeen
I'm using the crud.create() function but i can not get the id of the last create record, I try to do like this in the controller ### CODE ### response.flash='last id is %s' % form.vars.id # Always return None --~--~-~--~~~---~--~~ You received this

[web2py:22423] Re: crud.create() get the id of last create record

2009-05-22 Thread Wes James
got to http://groups.google.com/group/web2py then do a search on id of last record ;) -wes On Fri, May 22, 2009 at 1:18 PM, NewBeen rui.t...@gmail.com wrote: I'm using the crud.create() function but i can not get the id of the last create record, I try to do like this in the controller

[web2py:22424] Re: crud.create() get the id of last create record

2009-05-22 Thread NewBeen
The problem is that the answer is given just don´t work, if you look to the code i post is the code in the answer and always return none ;) On May 22, 7:21 pm, Wes James compte...@gmail.com wrote: got tohttp://groups.google.com/group/web2py then do a search on id of last record ;) -wes

[web2py:22425] Re: crud.create() get the id of last create record

2009-05-22 Thread mdipierro
if you use form=SQFORM(db.table) if form.accepts(request.vars,session): # the id in form.vars.id redirect() return dict(form) if you use form=crud.create(db.table) the accept and redirect are done inside crud create therefore there is no scope where you can access the

[web2py:22426] simplejson and date/datetime help

2009-05-22 Thread mdipierro
can somebody figure out how to serialize in isoformat date and datetimes in simplejson? I would include it in the new gluon/serialize.py/json Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:22427] Re: crud.create() get the id of last create record

2009-05-22 Thread Wes James
I also noticed in one of the posts that you can do: db.executesql('select max(id) from mytable') with sqlite. sql may be db dependent. -wes On Fri, May 22, 2009 at 1:28 PM, NewBeen rui.t...@gmail.com wrote: The problem is that the answer is given just don´t work, if you look to the code i

[web2py:22428] Re: crud.create() get the id of last create record

2009-05-22 Thread mdipierro
do not do this because if another thread has created a record meanwhile you get the wrong result. On May 22, 2:38 pm, Wes James compte...@gmail.com wrote: I also noticed in one of the posts that you can do: db.executesql('select max(id) from mytable') with sqlite.  sql may be db dependent.

[web2py:22429] Re: crud.create() get the id of last create record

2009-05-22 Thread Wes James
Wouldn't that always be the case for a multi-user system? On Fri, May 22, 2009 at 1:55 PM, mdipierro mdipie...@cs.depaul.edu wrote: do not do this because if another thread has created a record meanwhile you get the wrong result. On May 22, 2:38 pm, Wes James compte...@gmail.com wrote: I

[web2py:22430] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread weheh
Non .net On May 22, 12:31 pm, dlypka dly...@gmail.com wrote: If your company selects web2py as its development tool, what platform do you expect to run web2py on -    .NET (in which case I believe web2py would be using Iron Python),        or    Non .NET such as the usual web2py distro for

[web2py:22431] Re: crud.create() get the id of last create record

2009-05-22 Thread mdipierro
not if you use form.vars.id, i.e. the value returned by db [table].insert(...) On May 22, 2:58 pm, Wes James compte...@gmail.com wrote: Wouldn't that always be the case for a multi-user system? On Fri, May 22, 2009 at 1:55 PM, mdipierro mdipie...@cs.depaul.edu wrote: do not do this

[web2py:22432] Massimo... Why is the web2py book available on scribd as a free download?

2009-05-22 Thread Pystar
Hello Massimo, I find it odd that after paying $12 for the web2py book, i find out that it is available as a free download on scribd http://www.scribd.com/doc/15508739/Web2Py-Manual. Cant something be done to make scribd take it down or is this one of the ways by which web2py is being publicized?

[web2py:22433] Re: Massimo... Why is the web2py book available on scribd as a free download?

2009-05-22 Thread mdipierro
Thanks for reporting this. I asked them to take it down it is a copyright violation. Massimo On May 22, 3:29 pm, Pystar aitoehi...@gmail.com wrote: Hello Massimo, I find it odd that after paying $12 for the web2py book, i find out that it is available as a free download on

[web2py:22434] jpolite and form submit

2009-05-22 Thread Wes James
Massimo, is it the form submit and submitting data and getting a form back with validation what you were indicating in the comments on the ajax panel? Because I can't use a crud form submit and get it to submit data, it just refreshes the screen it seems. I can get a form with

[web2py:22435] Re: jpolite and form submit

2009-05-22 Thread mdipierro
For now what you have to do it form=crud.create(db.table) form['_class']='ajaxform1' I am thinking on whether this should be the default behavior and who's responsibility is to set this behavior (the form? the frame? the app?) On May 22, 4:21 pm, Wes James compte...@gmail.com wrote: Massimo,

[web2py:22436] Re: jpolite and form submit

2009-05-22 Thread mdipierro
be aware that the code in jpolite-web2py will change a lot in the near future. I am not sure if it currently handle file uploads for example. I remember somebody sending me a patch in that direction some time ago but I cannot find it anymore. Massimo On May 22, 4:41 pm, mdipierro

[web2py:22437] Re: jpolite and form submit

2009-05-22 Thread Wes James
yes that does submit now. I left a field blank to check validation and get: Traceback (most recent call last): File /opt/20090331-w2p/gluon/restricted.py, line 107, in restricted exec ccode in environment File /opt/20090331-w2p/applications/tt/controllers/default.py

[web2py:22438] Web2py - AlterEgo Website suggestion

2009-05-22 Thread mikech
I am a little confused by the navigation between Alterego and the Web2py site. When I've landed on AlterEgo after finding a Google reference to Web2py and Pyjamas, and then I hit home to see what other interesting articles are on AlterEgo I end up on the Web2py homepage with no visible path back

[web2py:22439] Re: Web2py - AlterEgo Website suggestion

2009-05-22 Thread mikech
Ok, I think I get it now. Alterego is Web2py's alter-ego. So it is a parallel set of pages to the Web2py site? Still it would be nice if there were a link on the main site. On May 22, 3:16 pm, mikech mp.ch...@gmail.com wrote: I am a little confused by the navigation between Alterego and the

[web2py:22440] Re: jpolite and form submit

2009-05-22 Thread mdipierro
are you using a custom widget? Can you post it? if not can you post the definition of the form? On May 22, 5:02 pm, Wes James compte...@gmail.com wrote: yes that does submit now.  I left a field blank to check validation and get: Traceback (most recent call last):   File

[web2py:22441] Re: Web2py - AlterEgo Website suggestion

2009-05-22 Thread mdipierro
There is a link. It says FAQ. On May 22, 5:19 pm, mikech mp.ch...@gmail.com wrote: Ok, I think I get it now. Alterego is Web2py's alter-ego.  So it is a parallel set of pages to the Web2py site?  Still it would be nice if there were a link on the main site. On May 22, 3:16 pm, mikech

[web2py:22442] Re: jpolite and form submit

2009-05-22 Thread Wes James
It will post, but then there is the error when validation fails if i leave a field empty (when it shouldn't be). Here is the code: def m101(): form=crud.create(db.task) try: etime=str(db().select(db.task.etime, orderby=~db.task.id, limitby=(0,1))[0].etime).split(':')

[web2py:22443] Re: SQL Import

2009-05-22 Thread dlypka
I did email it last Monday. I have just resent it. On May 22, 8:35 am, mdipierro mdipie...@cs.depaul.edu wrote: Can you email the new auto to me? On May 22, 1:19 am, dlypka dly...@gmail.com wrote: - --~--~-~--~~~---~--~~ You received this message because you

[web2py:22444] Re: Custom authentication form

2009-05-22 Thread dlypka
I have been working on this issue together with another web2py enthusiast for the last few weeks. He is away till Tues so I believe we can jointly post a response with some details soon after Tuesday. I developed the core technique and then he 'ran' with it to apply it to customize to allow using

[web2py:22445] Re: web2py vs. asp/.net -- help with comparison

2009-05-22 Thread dlypka
Massimo's response was very elegant, accurate and concise - just like web2py! Here are just a few additional points: The .NET world is in extreme turmoil at the moment because Visual Studio, SQL Server and Entity Framework all have major upgrades due out next year, so they will be unstable for

[web2py:22446] Re: New in trunk .html, .xml, .json, .rss

2009-05-22 Thread mdipierro
so... has anybody tried this? Pros? Cons? can we release 1.63 next week? On May 22, 7:54 am, mdipierro mdipie...@cs.depaul.edu wrote: - download trunk - Create a new app - make sure you see the new views/generic.* files in the new app or something is wrong - edit default.py and create an

[web2py:22448] cleanhtml.py utility

2009-05-22 Thread mdipierro
I added a new file in trunk script/cleanhtml.py It can help you clone an existing web site or turn it into a layout. It works in this way: cleanhtml.py somefile.html and cleanhtml.py somefile.css it re-indents html files and css files in such a way that it becomes easy to remove the

[web2py:22449] Re: pdf upload/download and show

2009-05-22 Thread mdipierro
There are two issues here. One is that the manual needs to be updated. Nobody should be doing this def download(): import os path=os.path.join(request.folder,'uploads',request.args[0]) return response.stream(path) Instead you should be doing this: def download(): return

[web2py:22450] Re: new changes since book was published

2009-05-22 Thread NikG
Thank you all for the replies. Like I said, I'm new with web2py (and web frameworks). I guess the manual assumes that the reader has some background in other frameworks? These 'little' things were not explained but thank you for elaborating. I looked around at the other frameworks, though all

[web2py:22451] Re: New in trunk .html, .xml, .json, .rss

2009-05-22 Thread posh
I have tried this, and it's convenient and intuitive. :p But I am thinking that can we disable any of them in controller(html, xml, json, and rss)? On 5月23日, 上午11時29分, mdipierro mdipie...@cs.depaul.edu wrote: so... has anybody tried this? Pros? Cons? can we release 1.63 next week? On May

[web2py:22452] Re: new changes since book was published

2009-05-22 Thread mdipierro
Feel free to always ask questions. We are aware that the docs are not keeping up with the code so no question is inappropriate. Massimo On May 22, 11:11 pm, NikG nikolai...@gmail.com wrote: Thank you all for the replies. Like I said, I'm new with web2py (and web frameworks). I guess the

[web2py:22453] Re: New in trunk .html, .xml, .json, .rss

2009-05-22 Thread mdipierro
You can remove the generic.xxx file that you do not want or rename it to match only the actions to which it applies. Massimo On May 22, 11:02 pm, posh posheng...@gmail.com wrote: I have tried this, and it's convenient and intuitive. :p But I am thinking that can we disable any of them in

[web2py:22454] Re: simplejson and date/datetime help

2009-05-22 Thread mdipierro
forget it. I did it. Massimo On May 22, 2:35 pm, mdipierro mdipie...@cs.depaul.edu wrote: can somebody figure out how to serialize in isoformat date and datetimes in simplejson? I would include it in the new gluon/serialize.py/json Massimo