Re: [web2py] I just discovered this

2010-12-24 Thread Branko Vukelić
On Fri, Dec 24, 2010 at 8:41 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://reia-lang.org/ Sweet! -- Branko Vukelic stu...@brankovukelic.com http://www.brankovukelic.com/

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
+1 On Fri, Dec 24, 2010 at 8:20 AM, Luis Díaz diazluis2...@gmail.com wrote: +1 2010/12/24 ron_m ron.mco...@gmail.com I for one am happy with the current release cycle. It is a good balance between new features and the ultimate stability of release 1.XX.N  where N is the last version before

[web2py] Re: GAE shows problem.

2010-12-24 Thread Arun K.Rajeevan
Thank you for suggestion. It worked in 1.89.x. But problem is resolved now. And for the benefit of others, I get past it by running *dev_appserver.py*with *-c* option. So, the data already there may be caused problem. I changed DB a little bit. -c option clears datastore.

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
Can you point me on how to run a controller in web2py shell. Or in that matter how to debug a web2py controller or view?

[web2py] Re: App admin error

2010-12-24 Thread Arun K.Rajeevan
Oh, I forgot that I've a plug-gin(SQLite Manager) installed in my FF. I tried that too, but in vein. There's no problem at all. Am I correctly assuming that list reference field get represented as TEXT in SQLite. Data is in format like |5| . so it's correct. Problem is somewhere else. May

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Kenneth Lundström
Merry christmas to the whole list. I think this has been suggested earlier but thought I´d bring it up again. I have two instances of web2py via wsgi and Apache running on my server. One reason is the possibility to upgrade my development side everytime I log in to admin, that way getting all

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
2010/12/24 Kenneth Lundström kenneth.t.lundst...@gmail.com: Is there instructions how to use the hg stuff to use the trunk. Could not find the hg command in the book? Look here: http://code.google.com/p/web2py/source/checkout I think the double-update button is a good idea. I was going to

[web2py] Bug in SQLFORM.factory in version 1.91.4?

2010-12-24 Thread Lisandro
I've been working with web2py for a while. Lastnight I updated to last version, and my webforms just collapsed (sorry for my poor english). Anyway. After some minutes searching for the cause of the problem, I've decided to start from scratch with an example. I downloaded the version 1.91.4 (I'm

[web2py] Re: try web2py with cherrypy, diesel, eventlet, fapws,flup, gnuicorn, paste, rocket, tornado, twisted, wsgiref

2010-12-24 Thread pbreit
Bjoern: a screamingly fast Python WSGI server written in C https://github.com/jonashaag/bjoern

[web2py] application: web2py in app.yaml

2010-12-24 Thread Belov I
Use: web2py: 1.91.4 GoogleAppEngine: 1.4.0 - 2010-12-02 WinXP web2py runs through GAE without problems But when I change the name of the application in app.yaml (ex: 1line: application: my_web2py) I get error: Internal error Ticket issued: unrecoverable

[web2py] Re: Great summary of web2py

2010-12-24 Thread villas
Yes Michele, +1 to web pages! I often see frameworks being compared in threaded discussions. That's such a waste of time when a simple reference to a webpage could tell a much better and more complete story. It is a shame that when some newbie enters a search like 'web2py vs django|flask|rails'

Re: [web2py] Re: Merry Christmas

2010-12-24 Thread Ramjee Ganti
Merry Christmas and Happy New Year to all on the group. This is one of the most active groups I am on, thanks for the excellent support. rAm i Think, i Wait, i Fast -- Siddhartha http://sodidi.ramjeeganti.com On Fri, Dec 24, 2010 at 11:52 AM, Kostas M kmo...@hotmail.com wrote: def

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
After a bit of trail and error through session.flash I changed following indx = dict(indx = search_form.vars.indx) redirect(URL(r=request, f='search', args=[lang, word], vars=indx)) to redirect(URL(r=request, f='search', args=[lang, word], vars={'indx':search_form.vars.indx})) seems

[web2py] Re: Url variable's problem

2010-12-24 Thread mdipierro
They are equivalent. BTW. make it shorter: redirect(URL('search',args=[lang, word],vars={'indx':search_form.vars.indx})) On Dec 24, 10:04 am, Arun K.Rajeevan the1.a...@gmail.com wrote: After a bit of trail and error through session.flash I changed following  indx = dict(indx =

[web2py] Re: Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
I know, that's why I wondered, why did it produced such a weired url at first place.

[web2py] Re: application: web2py in app.yaml

2010-12-24 Thread mdipierro
The name in app.yaml should be the application id that you registered with google. On Dec 24, 2:36 am, Belov I belo...@gmail.com wrote: Use: web2py: 1.91.4 GoogleAppEngine: 1.4.0 - 2010-12-02 WinXP web2py runs through GAE without problems But when I change the name of the application in

[web2py] Re: Bug in SQLFORM.factory in version 1.91.4?

2010-12-24 Thread mdipierro
Believe this is fixed in trunk. Did you try that. If so I will post to stable soon. On Dec 24, 6:24 am, Lisandro rostagnolisan...@gmail.com wrote: I've been working with web2py for a while. Lastnight I updated to last version, and my webforms just collapsed (sorry for my poor english). Anyway.

Re: [web2py] Url variable's problem

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 8:04 AM, Arun K.Rajeevan wrote: After a bit of trail and error through session.flash I changed following indx = dict(indx = search_form.vars.indx) redirect(URL(r=request, f='search', args=[lang, word], vars=indx)) to redirect(URL(r=request, f='search',

[web2py] Re: application: web2py in app.yaml

2010-12-24 Thread Belov I
Problem solved. It is necessary to restart the GAE On 24 дек, 16:36, Belov I belo...@gmail.com wrote: Use: web2py: 1.91.4 GoogleAppEngine: 1.4.0 - 2010-12-02 WinXP web2py runs through GAE without problems But when I change the name of the application in app.yaml (ex: 1line: application:

[web2py] Re: App admin error

2010-12-24 Thread mdipierro
This was a nasty one. It is not fixed in trunk. The problem anyway was not with new dal but preexisting. Somehow it was not caught before. Please check and let us know if it works for you. On Dec 24, 3:53 am, Arun K.Rajeevan the1.a...@gmail.com wrote: Oh, I forgot that I've a plug-gin(SQLite

Re: [web2py] Re: App admin error

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 8:55 AM, mdipierro wrote: This was a nasty one. It is not fixed in trunk. now fixed in trunk The problem anyway was not with new dal but preexisting. Somehow it was not caught before. Please check and let us know if it works for you. On Dec 24, 3:53 am, Arun

[web2py] Re: form.accepts = False. How to find out why

2010-12-24 Thread DenesL
On Dec 24, 2:21 am, Johann Spies johann.sp...@gmail.com wrote: I have it working now and it seems that the main thing I have changed to make it work was to change the name of the field (from 'id' to something else).  I did not check afterwards in the documentation but I suspect that

[web2py] Is this broken?

2010-12-24 Thread Arun K.Rajeevan
See following form search_form = FORM http://127.0.0.1:8000/examples/global/vars/FORM(LABEL http://127.0.0.1:8000/examples/global/vars/LABEL('Search a word: ', _for='word', _id='word_label', _name='word_label'), INPUT

[web2py] Re: ajax polling with web2py

2010-12-24 Thread weheh
Yes, I do have an ajax generated by code inside another ajax. But I'm not married to that approach, especially if it doesn't work. I'm just looking for anything that works -- doesn't have to be pretty. Bottom line, we need a general solution to this problem. User clicks an ajax-ified

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
Nothing else is changed AFAIK. some magic may be. (it's X'mas :D)

[web2py] question about ajax(...); return false;

2010-12-24 Thread weheh
Should one's view *always* have a return false; statement immediately after an ajax request? Why?

[web2py] Re: Custom form

2010-12-24 Thread Arun K.Rajeevan
*I'll be more than happy, if I can go with a custom form.* *Only thing that I don't know in that case, is how to deal with upload field and make it into db.*

[web2py] Re: Merry Christmas

2010-12-24 Thread weheh
@Kostas -- LOL, very cute. Happy holidays, everyone! +1 to all the other posts, too. On Dec 24, 9:11 am, Ramjee Ganti gant...@gmail.com wrote: Merry Christmas and Happy New Year to all on the group. This is one of the most active groups I am on, thanks for the excellent support. rAm i

Re: [web2py] Re: form.accepts = False. How to find out why

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 9:19 AM, DenesL wrote: On Dec 24, 2:21 am, Johann Spies johann.sp...@gmail.com wrote: I have it working now and it seems that the main thing I have changed to make it work was to change the name of the field (from 'id' to something else). I did not check afterwards in

Re: [web2py] Url variable's problem

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 9:34 AM, Arun K.Rajeevan wrote: I'm running python 2.5.1 at windows and 2.6.5 at linux. Is there any change in python's behaviors with dict() Not a relevant one that I can think of. If you have the time and inclination, it'd be interesting to track down exactly what's

[web2py] pointing to the DB folder with new DAL

2010-12-24 Thread mart
Hey, Trying the new DAL with latest trunk again. Only one issue left which is pointing to the DB folder. This used to work, now, no matter what I have tried, it generates everything relative to the script making the connection. This is what I do using pre 1.9x : tail,head =

[web2py] Re: Is this broken?

2010-12-24 Thread mdipierro
Nothing changed in this respect. Probably the values of the indices [2] [3] is wrong. I will try if you post your code without links in it. ;-) On Dec 24, 11:21 am, Arun K.Rajeevan the1.a...@gmail.com wrote: See following form search_form = FORM

[web2py] Re: ajax polling with web2py

2010-12-24 Thread mdipierro
The general solution is web2py_ajax_page in my previous example and return js using response.js. On Dec 24, 11:22 am, weheh richard_gor...@verizon.net wrote: Yes, I do have an ajax generated by code inside another ajax. But I'm not married to that approach, especially if it doesn't work. I'm

Re: [web2py] Re: Is this broken?

2010-12-24 Thread Branko Vukelić
search_form = FORM(LABEL('Search a word: ', _for='word', _id='word_label', _name='word_label'), INPUT(_id='word', _name='word', requires=IS_NOT_EMPTY()), SELECT(_name='languages', _id='languages', requires=IS_IN_DB(db,'languages.id'), *options_added),

[web2py] Re: question about ajax(...); return false;

2010-12-24 Thread mdipierro
only a onclick=.; return false;.../a else the page is reloaded no matter what the . do. On Dec 24, 11:26 am, weheh richard_gor...@verizon.net wrote: Should one's view *always* have a return false; statement immediately after an ajax request? Why?

[web2py] Re: Custom form

2010-12-24 Thread mdipierro
please no more links in code. :-( On Dec 24, 11:19 am, Arun K.Rajeevan the1.a...@gmail.com wrote: Following are my tables. I need a form with an image upload (that's for table pictures), a disabled input with content (that's words.word) and a languages selection box(for word.lang). Upon

[web2py] Re: App admin error

2010-12-24 Thread Arun K.Rajeevan
Yes, That's working now. Great Thank you. :)

[web2py] Re: Custom form

2010-12-24 Thread Arun K.Rajeevan
Oh, How that happernd. I'm using new groups. It have advanced edit field. Hides links. For me it doesn't show links anyways, code without links follows. (*But, I'll be more than happy, if I can go with a custom form.* ** *Only thing that I don't know in that case, is how to deal with upload

[web2py] Re: pointing to the DB folder with new DAL

2010-12-24 Thread mdipierro
Please check trunk. I think it is now fixed. On Dec 24, 12:04 pm, mart msenecal...@gmail.com wrote: Hey, Trying the new DAL with latest trunk again.  Only one issue left which is pointing to the DB folder. This used to work, now, no matter what I have tried, it generates everything relative

Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
This is only a part of original form. ;-) Links appear in code without my knowledge. I copies from browser but new groups support rich text so those without using it sees links. else it's fine.

Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
This is only a part of original form. ;-) Links appear in code without my knowledge. I copies from browser but new groups support rich text so those without using it sees links. else it's fine. List have 251 elements. (it's a list of languages)

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
Nope, I didn't go for dumping variables. I'm also interested to know the cause. may be another day

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
Hi hi, back on windows. Problem is still there. If this is not python, then it must be browser.

Re: [web2py] Url variable's problem

2010-12-24 Thread Arun K.Rajeevan
Voila, I found the culprit. In linux box, I changed *vars={'indx':search_form.vars.indx}** *to* vars={ 'i':search_form.vars.indx} Note:* key 'indx' is renamed to 'i' (indx is the name of hidden field) I still don't know, why this occurred. it's just a key name (string). still!!!

Re: [web2py] Re: Is this broken?

2010-12-24 Thread Arun K.Rajeevan
Silly me. I forgot to convert value into int. (it's in string form '3')

[web2py] Re: pointing to the DB folder with new DAL

2010-12-24 Thread mart
THANK YOU! :) working even better than before :) BTW - the new DAL caught a couple of my mistakes. Made the change to my script and ran it through the diff tool. Here's a snippet. You can dump the following to a browser to see. pretty nifty! Thanks again for quick turn around, much appreciated!

[web2py] New QA-Stack version released (beta)

2010-12-24 Thread Julio Schwarzbeck
Hi Folks, thanks for testing the site, I've released the third beta of qa-stack, this release includes JANRAIN login, use your google, yahoo, openid/myopenid accounts to log in into the site, and feel free to post test questions and answers, there are still many things to work out but at least you

[web2py] Re: question about ajax(...); return false;

2010-12-24 Thread weheh
I use onclick=ajax(...); in lots of places without the return false and never have observed the page getting reloaded on either firefox or chrome. On Dec 24, 1:37 pm, mdipierro mdipie...@cs.depaul.edu wrote: only a onclick=.; return false;.../a else the page is reloaded no matter what

[web2py] Re: ajax polling with web2py

2010-12-24 Thread weheh
Argh. I'm struggling. The third arg to web2py_ajax_page is data. If I'm ajaxing a multi-field form, can I make this data=['field1','field2',...]? I'm trying it but it doesn't seem to be working. On Dec 24, 1:36 pm, mdipierro mdipie...@cs.depaul.edu wrote: The general solution is web2py_ajax_page

[web2py] does response.js only work with web2py_ajax_page(...)?

2010-12-24 Thread weheh
Does response.js only work with web2py_ajax_page(...) call or will it also work with an ajax(...) call?

[web2py] Re: does response.js only work with web2py_ajax_page(...)?

2010-12-24 Thread weheh
All my tests seem to say that response.js doesn't work with ajax(...), only with web2py_ajax_pag(...). On Dec 24, 3:57 pm, weheh richard_gor...@verizon.net wrote: Does response.js only work with web2py_ajax_page(...) call or will it also work with an ajax(...) call?

[web2py] Re: The stability of web2py releases

2010-12-24 Thread VP
I am also satisfied with the release mechanism, but I'm working on small apps. If something goes wrong it's not the end of the world for me right now. But I think there are at least 2 reasons why this issue should be taken seriously. One is that the word Enterprise must be taken seriously (it

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
try this: html head script function remove() { var a = document.getElementById('id'); var b = (a.parentNode).removeChild(a); } function add(x,y){ alert(x+y); return x+y; } /script /head body span id=idtext/span br / input type=button

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Branko Vukelić
On Fri, Dec 24, 2010 at 10:18 PM, VP vtp2...@gmail.com wrote: For one thing, I don't think the 2-button suggestion is a good idea; it's just another indirect layer of information that might not be meaningful if the underlying mechanism is meaningful.  Conversely, if the underlying mechanism is

Re: [web2py] Url variable's problem

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 11:30 AM, Arun K.Rajeevan wrote: Voila, I found the culprit. In linux box, I changed vars={'indx':search_form.vars.indx} to vars={'i':search_form.vars.indx} Note: key 'indx' is renamed to 'i' (indx is the name of hidden field) I still don't know, why this occurred.

[web2py] Re: Unable to detect your browser

2010-12-24 Thread greenpoise
I did not know that. Is that a web2py common practice? last time I read anything similar was in TGears. Thanks again, appreciate it! d On Dec 23, 2:38 pm, Branko Vukelić stu...@brankovukelic.com wrote: 2010/12/23 greenpoise danel.sega...@gmail.com: brilliant!! THANKS SO MUCH!

Re: [web2py] Re: question about ajax(...); return false;

2010-12-24 Thread Marin Pranjic
ok, i made a mistake. just ignore the explanation. didn't test :D just try experimenting and see what happens. return false -- prevents reloading, just like massimo said. if you call function by onclick event in a with a href set, return will prevent hyperlink event. you can set href=# and that

[web2py] Re: question about ajax(...); return false;

2010-12-24 Thread weheh
I guess that must be it. I am always using href=# on my links with ajax onclicks, so it never redirects even if return false; is missing. On Dec 24, 4:40 pm, Marin Pranjic marin.pran...@gmail.com wrote: ok, i made a mistake. just ignore the explanation. didn't test :D just try experimenting and

[web2py] Anybody use web2py_ajax_page(...) function?

2010-12-24 Thread weheh
It takes a data argument. I'm wondering how to pass data from my form to the data argument?

[web2py] Re: Anybody use web2py_ajax_page(...) function? [Closed]

2010-12-24 Thread weheh
OK, I think I figured out that I need components. Somehow, I missed this new capability of web2py. But it looks like it is precisely what I need. On Dec 24, 4:44 pm, weheh richard_gor...@verizon.net wrote: It takes a data argument. I'm wondering how to pass data from my form to the data

[web2py] Re: question about ajax(...); return false; [Closed]

2010-12-24 Thread weheh
On Dec 24, 4:42 pm, weheh richard_gor...@verizon.net wrote: I guess that must be it. I am always using href=# on my links with ajax onclicks, so it never redirects even if return false; is missing. On Dec 24, 4:40 pm, Marin Pranjic marin.pran...@gmail.com wrote: ok, i made a mistake. just

Re: [web2py] Re: The stability of web2py releases

2010-12-24 Thread Kenneth Lundström
+1 for a changelog view. The idea behind a two button upgrade is just as Branco explained, on my production instance I´d only upgrade to stable but on my development I´d upgrade to newest release just for helping out with testing. This way maybe not everyone upgrades their production server

[web2py] Re: does response.js only work with web2py_ajax_page(...)? [Closed]

2010-12-24 Thread weheh
Looks like all roads lead to components. On Dec 24, 4:15 pm, weheh richard_gor...@verizon.net wrote: All my tests seem to say that response.js doesn't work with ajax(...), only with web2py_ajax_pag(...). On Dec 24, 3:57 pm, weheh richard_gor...@verizon.net wrote: Does response.js only work

[web2py] Re: Any success getting web2py to run on Cherokee?

2010-12-24 Thread John-Kim Murphy
I just posted some instructions herehttp://stackoverflow.com/questions/4332514/set-up-cherokee-web2py-on-ubuntu-10-04-lucid/4528543#4528543 for Cherokee 0.99.39. I think you can follow the same instructions for 1.0.12, but just be aware that the final Cherokee virtual server platform setup

[web2py] Re: ajax polling with web2py [Closed]

2010-12-24 Thread weheh
Looks like this is going to have to be done with components. Didn't know until today that they even existed. Thank you chapter 13! On Dec 24, 3:53 pm, weheh richard_gor...@verizon.net wrote: Argh. I'm struggling. The third arg to web2py_ajax_page is data. If I'm ajaxing a multi-field form, can

[web2py] Re: Any success getting web2py to run on Cherokee?

2010-12-24 Thread pbreit
Cool, thanks for following up. I did manage to finally get something working and turned it into a new slice: http://web2pyslices.com/main/slices/take_slice/110 This is for Cherokee 1.0.14 which has a slightly different front-end. I also was able to get self-signed certs set up. Seems like a

Re: [web2py] Re: Server slow

2010-12-24 Thread Kenneth Lundström
I finally had time to find out a little about loggin.conf. In my logs/web2py.log I get this line: 2010-12-25 01:42:30,097 - root - INFO - time to fetch 1.81220602989 So it takes under 2 seconds to fetch the data and the rest 37 to show it? How come? Kenneth Were is this logged, I could

[web2py] memory leak - model remains in memory after requests

2010-12-24 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My web2py instance gradually eats memory, during day the consumption grows up to several gigs, so I have to restart often. According to guppy most of memory is occupied by gluon.dal.Field and other classes of dal: Partition of a set of 3231760

Re: [web2py] memory leak - model remains in memory after requests

2010-12-24 Thread Thadeus Burgess
This is due to the built in rocket server (it is not ment for production). If you use Apache with mod_wsgi this will not happen. -- Thadeus 2010/12/24 David Zejda d...@atlas.cz -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 My web2py instance gradually eats memory, during day the

Re: [web2py] memory leak - model remains in memory after requests

2010-12-24 Thread Jonathan Lundell
On Dec 24, 2010, at 4:20 PM, Thadeus Burgess wrote: This is due to the built in rocket server (it is not ment for production). If you use Apache with mod_wsgi this will not happen. Do we understand why? Seems like it ought to be fixable. -- Thadeus 2010/12/24 David Zejda

[web2py] inter-component communication

2010-12-24 Thread weheh
I'm diving into components but the doc says something that could be a show-stopper: A component ... must perform its task independently of the rest of the page. I want to be able to ajax click on an item in one component and have it update a div in another component. I can't imagine this won't

Re: [web2py] Re: Custom form

2010-12-24 Thread rochacbruno
Em 24/12/2010, às 16:38, mdipierro mdipie...@cs.depaul.edu escreveu: please no more links in code. :-( I always copy the code from traceback in tickets page and it is copied formated. We need an option to copy raw text from the code in errors page. Most syntax highliters can do that, so I

[web2py] Re: Server slow

2010-12-24 Thread mdipierro
No idea. How much data. What db? is it local? Probably something is wrong anyway. On Dec 24, 5:55 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: I finally had time to find out a little about loggin.conf. In my logs/web2py.log I get this line: 2010-12-25 01:42:30,097 - root - INFO

[web2py] Re: memory leak - model remains in memory after requests

2010-12-24 Thread mdipierro
Are we sure it is not a cache issue? Caching selects or actions with arguments eats memory. On Dec 24, 6:26 pm, Jonathan Lundell jlund...@pobox.com wrote: On Dec 24, 2010, at 4:20 PM, Thadeus Burgess wrote: This is due to the built in rocket server (it is not ment for production). If you

[web2py] Re: inter-component communication

2010-12-24 Thread mdipierro
You can do and there is nothing against it. It just that the components should not directly communicate serverside, execpt by sharing data in session. The component can return response.js with client-side instructions that affect other components. That is the idea and that is fine. On Dec 24,

[web2py] Re: Custom form

2010-12-24 Thread mdipierro
+1 On Dec 24, 8:48 pm, rochacbruno rochacbr...@gmail.com wrote: Em 24/12/2010, às 16:38, mdipierro mdipie...@cs.depaul.edu escreveu: please no more links in code. :-( I always copy the code from traceback in tickets page and it is copied formated. We need an option to copy raw text from

[web2py] please explain this

2010-12-24 Thread Sahil Arora
what do you mean by word 'escape' when we say escape = False or in {{=x}} Variables injected into the HTML in this way are escaped by default. The escaping is ignored if x is an XML object, even if escape is set to True. -- Sahil Arora B.Tech 2nd year Computer Science and Engineering IIT Delhi

[web2py] Re: memory leak - model remains in memory after requests

2010-12-24 Thread Timbo
Thadeus, You seem to have more knowledge about this problem. Can you file a bug report? Did you know that Rocket was recently updated fixing several bugs (and creating one that has already be addressed). I'm not denying the possibility, but let's be a good open source community. David, If

[web2py] Re: inter-component communication

2010-12-24 Thread weheh
I don't understand. Let's say app has 2 components, a and b, each with its load view. I have discovered that an ajax that causes a to go to the server can then have a update b by returning a jQuery(#b_some_id).html(hello); I discovered this because I'm completely recasting my app as components

[web2py] Re: please explain this

2010-12-24 Thread mdipierro
{{=x}} is equivalent to {{response.write(x,escape=True)}} Did I answer the question? On Dec 24, 10:04 pm, Sahil Arora sahilarora...@gmail.com wrote: what do you mean by word 'escape' when we say escape = False or in {{=x}} Variables injected into the HTML in this way are escaped by

[web2py] Re: memory leak - model remains in memory after requests

2010-12-24 Thread mdipierro
There is an easy way to check this: run web2py with any other web server using the new web2py/anyserver.py script. On Dec 24, 10:12 pm, Timbo tfarr...@owassobible.org wrote: Thadeus, You seem to have more knowledge about this problem.  Can you file a bug report?  Did you know that Rocket

[web2py] Re: inter-component communication

2010-12-24 Thread mdipierro
it is ok. i just it is more readable to use resnpose.js On Dec 24, 11:18 pm, weheh richard_gor...@verizon.net wrote: I don't understand. Let's say app has 2 components, a and b, each with its load view. I have discovered that an ajax that causes a to go to the server can then have a update b

Re: [web2py] Re: please explain this

2010-12-24 Thread Sahil Arora
I am asking what does escape=true does On Sat, Dec 25, 2010 at 11:02 AM, mdipierro mdipie...@cs.depaul.edu wrote: {{=x}} is equivalent to {{response.write(x,escape=True)}} Did I answer the question? On Dec 24, 10:04 pm, Sahil Arora sahilarora...@gmail.com wrote: what do you mean by

Re: [web2py] Re: please explain this

2010-12-24 Thread Thadeus Burgess
Escape will convert the text to html entities. For example, x = A 'quote' is bbold/b print response.write(x, escape=True) A 'quote' is lt;bgt;boldlt;/bgt; This protects your page from html injection hacks. If you need to display html from a variable and you know absolutely sure that it is

Re: [web2py] Re: please explain this

2010-12-24 Thread Sahil Arora
thanks On Sat, Dec 25, 2010 at 12:09 PM, Thadeus Burgess thade...@thadeusb.comwrote: Escape will convert the text to html entities. For example, x = A 'quote' is bbold/b print response.write(x, escape=True) A 'quote' is lt;bgt;boldlt;/bgt; This protects your page from html injection

[web2py] Re: inter-component communication

2010-12-24 Thread weheh
I thinking componentizing is the future present of website development.