[web2py] Re: Getting the field value of a form field

2011-01-09 Thread weheh
You can say: db.t_order[order_id].f_sum or after submitting form=SQLFORM(db.t_order,order_id) look at form.vars.f_sum On Jan 9, 2:34 am, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello, I m creating a form with SQLFORM(db.t_order, order_id) so I get a form with values. As the

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Thadeus Burgess
I believe this is why web2py receives much criticism. I speak from experience in using (and contributing to) web2py. web2py cannot share objects in an importable namespace with other python applications ecause of its design architecture. This is an absolute requirement for most enterprise or real

Re: [web2py] Re: iframes and ajax

2011-01-09 Thread Michele Comitini
I think you cannot update a target outside of the scope of the page (the iframe i this case) with reference to the target window: http://www.infimum.dk/HTML/JSwindows.html 2011/1/9 weheh richard_gor...@verizon.net I should also note that the divs I'm trying to update are outside the iframe.

Re: [web2py] Re: iframes and ajax

2011-01-09 Thread Michele Comitini
...without reference... sorry 2011/1/9 Michele Comitini michele.comit...@gmail.com: I think you cannot update a target outside of the scope of the page (the iframe i this case) with reference to the target window: http://www.infimum.dk/HTML/JSwindows.html 2011/1/9 weheh

[web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Syed
Are there any application hosting services for web2py that are similar to the following (for other frameworks): Heroku for Ruby on Rails Djangy for Django Pantheon for Drupal I know that it's possible to use GAE for hosting, but there are some limitations to going that route. I understand that

[web2py] OFF TOPIC: Best way to get the mouse position.

2011-01-09 Thread Jason Brower
I am wanted to create a tool that can map points in an image. (Basically pins on a map.) I thought it best to overly the image with a dive and get the position in the div. (Somehow...) Any ideas on how to best do that, and are there any examples that I could look at? Best regards, Jason

[web2py] Re: Apache, Wsgi problem

2011-01-09 Thread Massimo Di Pierro
For the record. I do not think I never said my viewpoint is the best. I do not recall other people of this list doing it either. I just state my viewpoint. I usually limit myself to one of the follow: - mention web2py in a thread related to web frameworks - provide an example of how web2py does

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Bruno Rocha
I am playing with free beta on dotcloud (this will be great). for free that runs web2py I just know one (shared limited plan is free): http://www.alwaysdata.com/plans/shared/ http://www.alwaysdata.com/plans/shared/ http://web2py.alwaysdata.net/examples http://web2py.alwaysdata.net/examplesBTW,

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Massimo Di Pierro
This is my prospective: Everything has a trade off. We want the ability to edit files via the web interface and see the effect of the change immediately, even on a production system using apache. That is not possible using imports. Django and Flask provide a module reload mechanism. That works

[web2py] Re: OFF TOPIC: Best way to get the mouse position.

2011-01-09 Thread Massimo Di Pierro
If you use processing.js you can use mouseX and mouseY On Jan 9, 9:05 am, Jason Brower encomp...@gmail.com wrote: I am wanted to create a tool that can map points in an image. (Basically pins on a map.)  I thought it best to overly the image with a dive and get the position in the div.

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Stef Mientki
On 09-01-2011 16:21, Bruno Rocha wrote: I am playing with free beta on dotcloud (this will be great). for free that runs web2py I just know one (shared limited plan is free): http://www.alwaysdata.com/plans/shared/ http://web2py.alwaysdata.net/examples hello Bruno, do have an easy recipy

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Bruno Rocha
hello Bruno, do have an easy recipy to setup a web2py site on alwaysdata ? (deploying is one of the scaring tasks for beginners) thanks, Stef Its in French - http://wiki.alwaysdata.com/wiki/D%C3%A9ployer_une_application_web2py

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Bruno Rocha
This post helps too: http://forum.alwaysdata.com/viewtopic.php?id=1081 (google translate it) 2011/1/9 Bruno Rocha rochacbr...@gmail.com hello Bruno, do have an easy recipy to setup a web2py site on alwaysdata ? (deploying is one of the scaring tasks for beginners) thanks, Stef Its in

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread pbreit
DotCloud looks very promising (Bruno, how'd you get your invite??). I dabbled with AlwaysData for a bit which is a nice free option. If you are considering it at all, I would highly suggest running a cloud server. It's not as difficult as it may seem and can be quite inexpensive

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread pbreit
If you use Google Chrome, it will prompt to translate the page for you. The Always Data pages translate fairly well and many on the Always Data forums speak English including the very helpful AD rep Cyril.

Re: [web2py] Hassle-Free Application Hosting?

2011-01-09 Thread Bruno Rocha
For me, the best Easy, Rapid and Manageable web2py shared host is webfaction, I have my apps running for U$14 a month. for VPS solution I am testing this: http://www.nodegrid.com/?cmd=cart , they have plans that you pay by daily or hourly of use, I can setup my ubuntu machine, run anything I need

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread pbreit
So I guess the question remains: is Web2py suitable for large, public web sites or does it max out as a rapid prototyper and smaller intranet type sites?

[web2py] Re: Apache, Wsgi problem

2011-01-09 Thread VP
It is indeed the case that there was a segmentation fault, reported in apache error log. Perhaps, it's not clear, but this problem occurs under posgres under debian lenny, not sqlite. I am not running web2py as a CGI script. I am using the web2py deployment script (for setting up apache and

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Massimo Di Pierro
I do not think this discussion has anything to do with it. This is a scalability issue and web2py scales as well as any of the other web frameworks. The issue is whether people like or not the programming style. If you like it you use web2py. If you do not like it you use something else. On Jan

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Bruno Rocha
2011/1/9 pbreit pbreitenb...@gmail.com So I guess the question remains: is Web2py suitable for large, public web sites or does it max out as a rapid prototyper and smaller intranet type sites? http://www.web2py.com/poweredby (this site has not every web2py powered site around the globe,

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Kuba Kucharski
Bruno, Pbreit, the discussion was starting to get really interesting, please don't let it go OT

[web2py] Re: OFF TOPIC: Best way to get the mouse position.

2011-01-09 Thread ron_m
jQueryUI has the Position utility if you are already using that Javascript library http://jqueryui.com/demos/position/ The demo is a little different as in odd, they are positioning 2 boxes relative another based on the user moving one of them so I had to unwind from that a bit to get

Re: [web2py] Re: OFF TOPIC: Best way to get the mouse position.

2011-01-09 Thread Jason Brower
Thanks, I didn't know jqueryui has it, I will try that first. Processing looks really cool for some other things I have been wanted to do, but then I feel like a 2d graphics programmer at that point. Best Regards, Jason Brower On 01/09/2011 08:14 PM, ron_m wrote: jQueryUI has the Position

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread David Marko
I really reminds me situation I started to work with PlayFramework a few years ago. Its excelent JAVA web framework, but its done in completely(internaly) different way than how the rest of the JAVA frameworks being done(using standard servlet concept). The developers of Play! have a nice

[web2py] Re: on a possible web2py memory leak

2011-01-09 Thread Anthony
On Sunday, January 9, 2011 12:59:47 AM UTC-5, ron_m wrote: To get the leak the __del__method has to be in the class. The gc.collect() as suggested by Massimo cured the leak for the exec code case I believe because gc.collect() runs a test on the objects to see if there are any external

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread VP
I think web2py is very good for 'Corporate' and 'Enterprise', but perhaps we need to be less pretentious and change the slogan for something like: web2py - the getting things done web framework I know much less about web2py than most people here, but I feel compelled to add an opinion. There are

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Thadeus Burgess
I think Massimo hit it on the spot. Its about coding style. Most of the people I see giving web2py criticism are young. Considering that beginning in about 2001 colleges starting only teaching java and handing out degrees, it might be safe to assume that most of these guys knew Java as their first

[web2py] Re: on a possible web2py memory leak

2011-01-09 Thread Massimo Di Pierro
correct. On Jan 9, 1:18 pm, Anthony abasta...@gmail.com wrote: On Sunday, January 9, 2011 12:59:47 AM UTC-5, ron_m wrote: To get the leak the __del__method has to be in the class. The gc.collect() as suggested by Massimo cured the leak for the exec code case I believe because gc.collect()

[web2py] Re: Drupal alternatives in Python or web2py

2011-01-09 Thread ma...@rockiger.com
Of course digg into Drupal, it is one of the best CMS out there.

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread pbreit
I don't buy the problem with integrating enterprise systems. Components should be more loosely coupled. I do wonder about the balance between the features that make Web2py great for rapid prototyping vs what you would need to do in the real world. But it seems to me that the productivity

Re: [web2py] Re: on a possible web2py memory leak

2011-01-09 Thread Jonathan Lundell
On Jan 9, 2011, at 1:20 PM, Massimo Di Pierro wrote: correct. Isn't the need to call gc.collect() explicitly a bit of a puzzle? Or is it just speeding up something that would happen eventually? On Jan 9, 1:18 pm, Anthony abasta...@gmail.com wrote: On Sunday, January 9, 2011 12:59:47 AM

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Massimo Di Pierro
About enterprise: For me enterprise always meant business and non-profit as a way to emphasize non-profit since that is what I have major interest in. It looks like many people read enterprise as large and bloated businesses. I have nothing against changing the slogan (and we have have a poll

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread pbreit
Interesting points. One thing I don't understand is the objection to the web IDE since it is 100% optional. Could it be presented differently so that people understand that instantly? I like the commitment to backwards compatibility. Are there any good examples of things that would be worth

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread pbreit
It might make sense to dropt enterprise from the slogan. For one, I don't think businesses care much about backwards compatibility. My experience in the enterprise was that vendors were constantly churning out non-backwards-compatibile updates and customers were routinely several versions

[web2py] Re: on a possible web2py memory leak

2011-01-09 Thread Massimo Di Pierro
It is a bit of a puzzle to me. On Jan 9, 3:34 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jan 9, 2011, at 1:20 PM, Massimo Di Pierro wrote: correct. Isn't the need to call gc.collect() explicitly a bit of a puzzle? Or is it just speeding up something that would happen eventually?

Re: [web2py] Re: Running PHP on top of Web2Py

2011-01-09 Thread pbreit
I'm late to the party here but my sense is that you'll be best off just moving everything over. You mentioned that it's a content site with not a lot of traffic any a moderate amount of content. Sounds to me like you would have a relatively easy time moving it over than trying to cobble

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Tom Atkins
web2py - the resilient web framework ;-)

Re: [web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Jonathan Lundell
On Jan 9, 2011, at 1:35 PM, Massimo Di Pierro wrote: About enterprise: For me enterprise always meant business and non-profit as a way to emphasize non-profit since that is what I have major interest in. It looks like many people read enterprise as large and bloated businesses. I think

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Mengu
as david said, play! destroyed the traditional java -web app- programming. it doesn't use servlets so it is extremely flexible. it doesn't use maven, it uses python. it doesn't use jsp views, it is using a template system built with groovy, and so forth. there are lots of people using play!,

[web2py] [Off Topic] Appreport plugin - helpers for PDF reports

2011-01-09 Thread Lucas D'Avila
I sent to github [1] a plugin called appreport, using helpers provided by the plugin is possible generate PDF reports and HTML forms (for emission of the reports). *Screencast demo * http://vimeo.com/18601633 * * *[1] Download, documentation and examples are available on the wiki*

[web2py] response.menu

2011-01-09 Thread Nathan George
I'm new to web2py and trying to set up my site from the beginning. I was trying to customize my menu, and couldn't find any relevant documentation on response.menu. For example, in the code: response.menu = [ (T('Home'), False, URL(request.application,'default','index'), []) ] what is

[web2py] Re: Appreport plugin - helpers for PDF reports

2011-01-09 Thread Massimo Di Pierro
+1 On Jan 9, 5:14 pm, Lucas D'Avila lucass...@gmail.com wrote: I sent to github [1] a plugin called appreport, using helpers provided by the plugin is possible generate PDF reports and HTML forms (for emission of the reports). *Screencast demo *http://vimeo.com/18601633 * * *[1] Download,

[web2py] Re: response.menu

2011-01-09 Thread Massimo Di Pierro
It is not used by the menu in the scaffolding app but it could be used to highlight differently a menu item that is True (visited). On Jan 9, 12:59 pm, Nathan George nathan.c.geo...@gmail.com wrote: I'm new to web2py and trying to set up my site from the beginning.  I was trying to customize my

[web2py] Re: Hassle-Free Application Hosting?

2011-01-09 Thread Syed
Is there a demand for a Heroku-like service in the web2py community? If there was a critical mass, I wonder if someone/firm could be convinced to build out this type of offering.

[web2py] Web2py templates for HamlPY

2011-01-09 Thread Dane
Hey all, thought you might be interested to know that I just patched a project HamlPy, a library for converting a pythonic haml-like syntax to django templates/html, to work with web2py templates. It allows for a less crufty, indentation-based syntax. Because it's indentation-based, {{ pass }} is

[web2py] Re: ADVOCACY: every single other Python program ever written uses imports?

2011-01-09 Thread Anthony
On Sunday, January 9, 2011 4:49:45 PM UTC-5, pbreit wrote: For one, I don't think businesses care much about backwards compatibility. My experience in the enterprise was that vendors were constantly churning out non-backwards-compatibile updates and customers were routinely several

Re: [web2py] [Off Topic] Appreport plugin - helpers for PDF reports

2011-01-09 Thread Bruno Rocha
Great! It is very good to see new plugins for web2py, your appreport and appscafold are very nice too. plugin_appreport will be very useful Thank you Lucas! 2011/1/9 Lucas D'Avila lucass...@gmail.com I sent to github [1] a plugin called appreport, using helpers provided by the plugin is

Re: [web2py] Re: Hassle-Free Application Hosting?

2011-01-09 Thread Bruno Rocha
2011/1/9 Syed syed.f.ka...@gmail.com Is there a demand for a Heroku-like service in the web2py community? If there was a critical mass, I wonder if someone/firm could be convinced to build out this type of offering. I sent a message to some services that are still in private beta, they

[web2py] Re: Apache, Wsgi problem

2011-01-09 Thread Anthony
On Sunday, January 9, 2011 1:24:02 AM UTC-5, Graham Dumpleton wrote: You guys really just got to learn to do your own thing and not treating it like a crusade where you have to convert the world. But that's exactly the problem -- web2py is trying to do its own thing, and there is a vocal

Re: [web2py] Re: BETA: new URL routing facility

2011-01-09 Thread Wikus van de Merwe
Jonathan, can you explain a bit more about how the new routes would work on some examples? How would the mappings below (just /c/f/args) look like with the new routes? /_ah/xmpp/message/chat/ - /comm/jabber /new-article - /post/create /about - /article/2010/07/11/welcome-to-my-world

Re: [web2py] Re: BETA: new URL routing facility

2011-01-09 Thread Jonathan Lundell
On Jan 9, 2011, at 10:55 PM, Wikus van de Merwe wrote: Jonathan, can you explain a bit more about how the new routes would work on some examples? How would the mappings below (just /c/f/args) look like with the new routes? /_ah/xmpp/message/chat/ - /comm/jabber /new-article -

[web2py] Re: Inserting additional fields in crud

2011-01-09 Thread Martin H
I've tried using SQLFORM and adding additional fields by simply adding html inputs. The fields are not accessible via form.vars.name. Is it possible to have additional fields in SQLFORM or crud that are not in the model?

[web2py] undefined record error in appadmin on GAE

2011-01-09 Thread johntynan
I am running a web2py application on GAE. I would like to export different tables as CSV files from my application by way of the appadmin. (My goal is to create both a backup of the data and a test suite with actual data). However, I am receiving the following undefined record error when

Re: [web2py] Re: BETA: new URL routing facility

2011-01-09 Thread pbreit
I'm a bit confused as well. Perhaps some more example would help. Also, I would agree that per-application routing should be the default. And further, the global routes file should be enabled by default and should provide the same routes as you currently get with a fresh install of Web2py

[web2py] Re: Apache, Wsgi problem

2011-01-09 Thread pbreit
I came to Web2py recently and I can definitely see how the promotion of Web2py in places like Reddit would rub people the wrong way. Much of the hostility seems related to how Web2py is promoted, not to its technical merits.

[web2py] Re: on a possible web2py memory leak

2011-01-09 Thread ron_m
In the sample code if one comments out the __del__ method in the class the leak does not occur. That is not to say it can't happen I suppose in a more complicated code example but I believe the __del__ is a required piece. This test was performed without the gc.collect() being present. I ran