[web2py:22458] small paid project with web2py and nicEditor

2009-05-22 Thread Horst Herb
I need *urgently* either a plugin or web2py "image server" implemented that does allow image upload from within nicEditor I basically use nicEditor within web2py and want to allow users to upload images locally and display them in the editor text details see: http://wiki.nicedit.com/Configuration-

[web2py:22457] 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 la

[web2py:22456] Re: Update and delete

2009-05-22 Thread annet . vermeer
Massimo, After restarting the server if not record: worked. However, further down the workflow there is an error ticket issued when the user clicks the submit button. My custom update function: @auth.requires_membership('core_manager') def update_address(): response.view='core/update.html'

[web2py:22455] doctest error when using trunk code

2009-05-22 Thread posh
I use svn to fetch the trunk code, and when I try to test controllers of "welcome" application, there is an error about "No module named fileutils"(My own application has the same problem, too). Here is the error trackback: Traceback (most recent call last): File "/home/posh/Codes/web2py/trunk/

[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 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 --~--~-~--~~~---~--~~ You received

[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 wrote: > 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, > xm

[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 wrote: > Thank you all for the replies. Like I said, I'm new with web2py (and > web frameworks). > > I guess the manual assumes that

[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 wrote: > so... has anybody tried this? Pros? Cons? > > can we release 1.63 next week? > > On May 22, 7:54 am, mdipier

[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 of

[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: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 con

[web2py:22447] pdf upload/download and show

2009-05-22 Thread ed
Hi, I tried the Web2py manual sample in article "3.6 An Image Blog" and it worked well with jpeg files, failed to display pdf files. The file extension in "uploads" folder revealed jpeg files doesn't have extension but pdf files has. I tried Massimo's solution on "pdf/doc attachments work in sqlit

[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 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 action: > > def te

[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 t

[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: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 wrote: > Can you email the new auto to me? > > On May 22, 1:19 am, dlypka wrote: > > - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[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(':') form[0][4

[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 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 wrote: > > > I am a

[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 wrote: > 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.

[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 wrote: > I am a little confused by the navigation between Alterego and the > Web2py site.  Whe

[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: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: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 wrote: > For n

[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 wrote: > Massimo, > > is it the form

[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 form=crud.create(d

[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 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 > scribdhttp://www.scribd.com/doc/1

[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: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 wrote: > Wouldn't that always be the case for a multi-user system? > > On Fri, May 22, 2009 at 1:55 PM, mdipierro wrote: > > > do not do this because if another thread has created a re

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

2009-05-22 Thread weheh
Non .net On May 22, 12:31 pm, dlypka 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 Windows XP (

[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 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 wrote: > > I also noticed in one of the posts tha

[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 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. > > -wes > > On

[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 wrote: > > The problem is that the answer is given just don´t work, > if you look to the code i post is the cod

[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 Frame

[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 form.vars.i

[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 wrote: > got tohttp://groups.google.com/group/web2py > > then do a search on "id of last record" ;) > > -wes > > On Fri, May

[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 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 > > ### CODE #

[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 message

[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 wrote: > i've managed to cr

[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 wrote: > 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 (

[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 wrote: > > got it. fixed and reuploading to trunk. > > On May 22, 12:25 pm, Wes James 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. > > > > -

[web2py:22418] Re: query question

2009-05-22 Thread JohnMc
Thanks again. On May 22, 12:16 pm, mdipierro wrote: > No but your can do > > (db.table.field>value1)&(db.table.field > On May 22, 11:11 am, Yarko Tymciurak 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 b

[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 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 wrote: > > > Very odd. I see this too but

[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 wrote: > I repeat > > if not record: > > On May 22, 12:22 pm, Kacper Krupa wrote: > > > if not len(record): > > > or: > > > query=db(db.adres.id==record_id) > > > if query.count() == 0: > > > and then: row = query.selec

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

2009-05-22 Thread mdipierro
There were some changes in the url validation in main. you may add some print statements in the validation there and see what's going on. On May 22, 12:25 pm, Wes James 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. >

[web2py:22414] Re: Update and delete

2009-05-22 Thread mdipierro
I repeat if not record: On May 22, 12:22 pm, Kacper Krupa 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 wrote: > > > I have my authentication, authorization, create and

[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: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 wrote: > > 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 kno

[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 wrote: > Massimo, > > I updated to latest trunk and now when I do a submit on a form in a jdiv I > get: > 400 BAD REQUEST in a javascri

[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 wrote: > I have my authentication, authorization, create and read functions > working, however, I don't get update and delete function to function > w

[web2py:22409] Re: query question

2009-05-22 Thread mdipierro
No but your can do (db.table.field>value1)&(db.table.field 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 in the other db's... > > In the meantime, you can do execut

[web2py:22408] Re: Update and delete

2009-05-22 Thread mdipierro
if not record: On May 22, 10:47 am, annet.verm...@gmail.com wrote: > Massimo, > > if record: > > doesn't work because the statement should be true if the query doesn't > return any result. > > if not record: > > results in the following error ticket: > > Traceback (most recent call last): >   F

[web2py:22407] Re: pre-populating forms and keepvalues=True ?

2009-05-22 Thread mdipierro
http://groups.google.com/group/web2py/browse_thread/thread/d09a74f89f5d/9c13597a9af15c70?lnk=gst&q=custom+forms#9c13597a9af15c70 On May 22, 10:43 am, carlo wrote: > my solution is: > > {{if request.vars.myname:}} > {{myvalue=request.vars.myname}} > {{else:}} > {{myvalue='mydefault'}} > {{pas

[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 wrote: > Hello > > I'd like to know about really complex apps made with web2py so far.. > > Anyone care to share experiences? > > Could web2py be us

[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 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 using Iron

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

2009-05-22 Thread cesmiga
Massimo, The newly created application (testapp) will not load as a module in the shell when the "welcome" app does. Listed is what I see with the latest trunk fix. TESTAPP APP r...@vm-debian-5:~/web2py.googlecode.com/svn/trunk# ./web2py.py -S testapp -M WARNING:root:Informix support is experi

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

2009-05-22 Thread Wes James
Massimo, I updated to latest trunk and now when I do a submit on a form in a jdiv I get: 400 BAD REQUEST in a javascript error in firefox. I went back to your demo events app and it does the same on the form submit example. -wes --~--~-~--~~~---~--~~ You received

[web2py:22402] Re: args and vars

2009-05-22 Thread annet . vermeer
Indeed, awful. If I could get this to work: http://groups.google.com/group/web2py/browse_thread/thread/8d78f8f9a7f1d553/dbaa8dc812b54914#dbaa8dc812b54914 I won't opt for this awful solution. Kind regards, Annet --~--~-~--~~~---~--~~ You received this message b

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

2009-05-22 Thread dlypka
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 using Iron Python), or Non .NET such as the usual web2py distr

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

2009-05-22 Thread JorgeR
I'd like to see it too. On May 22, 9:20 am, Jason Brower wrote: > I am creating a social networking site with web2py.  So far VERY good. > Regards, > Jason > > On Fri, 2009-05-22 at 05:38 -0700, JorgeR wrote: > > thank you > > > Massimo: what about web2py being used for build big-name like apps

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

2009-05-22 Thread mdipierro
when can we see it? On May 22, 9:20 am, Jason Brower wrote: > I am creating a social networking site with web2py.  So far VERY good. > Regards, > Jason > > On Fri, 2009-05-22 at 05:38 -0700, JorgeR wrote: > > thank you > > > Massimo: what about web2py being used for build big-name like apps > >

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

2009-05-22 Thread mdipierro
This is not a bug. Not all modules can be executed from the shell. The admin app has modules that cannot. Try with welcome or your own app. massimo On May 22, 10:40 am, cesmiga wrote: > Massimo, > > I found the SVN trunk and downloaded the code.  The new code > successfully creates a new applic

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

2009-05-22 Thread Skylar Saveland
(facebook is php?). What can php do right now that web2py can't might be a goode question and talking point. On May 22, 8:38 am, JorgeR wrote: > thank you > > Massimo: what about web2py being used for build big-name like apps > (gmail, youtube, rtm, facebook) > > Would you recommend it over oth

[web2py:22396] Re: query question

2009-05-22 Thread Yarko Tymciurak
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 in the other db's... In the meantime, you can do executesql() statement On Fri, May 22, 2009 at 10:47 AM, JohnMc wrote: > > J

[web2py:22395] Re: Update and delete

2009-05-22 Thread annet . vermeer
Massimo, if record: doesn't work because the statement should be true if the query doesn't return any result. if not record: results in the following error ticket: Traceback (most recent call last): File "/Library/Python/2.5/site-packages/mockpy/gluon/restricted.py", line 98, in restricted

[web2py:22394] Re: query question

2009-05-22 Thread JohnMc
Just out of curiosity is there something equivalent to the SQL BETWEEN available in the DAL? On May 21, 5:40 pm, mdipierro wrote: > My guess is that you want all people with a last starting with a > letter 'A' you can do > >    qy = dbhlx((dbhlx.contact.lastname.like('A%')).select() > > or >    

[web2py:22393] Re: pre-populating forms and keepvalues=True ?

2009-05-22 Thread carlo
my solution is: {{if request.vars.myname:}} {{myvalue=request.vars.myname}} {{else:}} {{myvalue='mydefault'}} {{pass}} any better? carlo On 22 Mag, 17:33, carlo wrote: > I forgot to mention that my form is pure html and in the controller I > have: > > form=FORM() > if form.accepts > (request

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

2009-05-22 Thread cesmiga
Massimo, I found the SVN trunk and downloaded the code. The new code successfully creates a new application, but I see a problem when running the following. r...@vm-debian-5:~/web2py_trunk/web2py.googlecode.com/svn/trunk# ./ web2py.py -S admin -M WARNING:root:Informix support is experimental WA

[web2py:22391] Re: pre-populating forms and keepvalues=True ?

2009-05-22 Thread carlo
I forgot to mention that my form is pure html and in the controller I have: form=FORM() if form.accepts (request.vars,session=None,formname='consuntivi',keepvalues=True): response.flash="OK" elif form.errors: response.flash="Errors" I noticed that values inserted are always clear

[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 wrote: > > Massimo, > > > > Here is what I see when I try to create a n

[web2py:22389] pre-populating forms and keepvalues=True ?

2009-05-22 Thread carlo
maybe trivial but I can not get the clue: I need to have a form pre- populated with some values and I know you can do it with form.vars.name='myvalue'. But when I submit the form with keepvalues=True I get the form back with the pre-populated values and not with the changes the user made. Any sug

[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 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 > > ++ > > r

[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 install

[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 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: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 suppor

[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 reques

[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 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 -M -> gets you a shell

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

2009-05-22 Thread Jason Brower
I am creating a social networking site with web2py. So far VERY good. Regards, Jason On Fri, 2009-05-22 at 05:38 -0700, JorgeR 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 lang

[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 > - m

[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 interp

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

2009-05-22 Thread JohnMc
NikG, Buy the electronic copy of the book. I followed the same route you did. The book really helped me a lot. On May 21, 11:54 pm, NikG wrote: > Hello everyone. I'm learning web2py on my own by following the > cookbook and the "cut" book examples. > > Using web2py version 1.62.3 and following

[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 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. > > Thank you, > Ch

[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 programmers

[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 this

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

2009-05-22 Thread Yarko Tymciurak
One of the beauties about this (and the template language) in web2py was "no manual needed for this!" - That is, the template language is "just python", once you discuss {{statement}} syntax, and {{=variable}} output, and using {{pass} to disambiguate indentation issues, all else is "just python"

[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 wrote: > On Fri, May 22, 2009 at 9:

[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 wrote: > > Do you intend to run on .NET (Iron Python?) or completely non .NET? > > On May 21, 2:06 pm, weheh

[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:22371] New in trunk .html, .xml, .json, .rss

2009-05-22 Thread mdipierro
- 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 action: def test(): return dict(title='title1',link='link',description='description', items=[dict (title='title2',link='l

[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 wrote: > Do you intend to run on .NET (Iron Python?) or completely non .NET? > > On May 21, 2:06 pm, weheh wrote: > > > > > I'm trying to convince a client to go with web2py vs. with asp/.net. > > I'm wonde

[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 wrote: > from the manual > Hello {{=session.visitor_name or "anonymous"}} > > 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 there, I guess

[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:22367] new changes since book was published

2009-05-22 Thread NikG
Hi all. from the manual Hello {{=session.visitor_name or "anonymous"}} 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 you tr

[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 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 languages? >

[web2py:22365] Custom authentication form

2009-05-22 Thread salbefe
Hello, I have the following question . It's possible to customize the forms that comes by default when web2py exposes then following urls? I mean, if in the controller I have the following function def user(): """ exposes: http:///[app]/default/user/login http:///[app]/d

[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 wrote: > look forward to the horst app too! > > On May 21, 9:39 pm, mdipierro wrote: > > > so far for me it i

[web2py:22363] Re: Update and delete

2009-05-22 Thread mdipierro
if record: On May 22, 4:45 am, annet 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 in the browser's add

[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 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 received this message

[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 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 still need to

[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 wrote: > Thank you. I've noticed a lot of differences from the examples and the > current version of web2py. It is very confu

[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 wrote: > On Fri, May 22, 2009 at 3:32 PM, mdipierro wrote: > > > I need to go sleep

  1   2   >