[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 1:58 pm, Michael Toomim too...@gmail.com wrote: Thanks!  I tried rebooting the OS.  Now my resources seem ok (but I didn't check before the reboot): Files used: 1376 out of 75556 Mem used: 580mb out of 796mb Swap used: 0 CPU: 88-99% idle And I know longer see the Exception

[web2py] Re: datatable plugin columns representation

2010-07-20 Thread mdipierro
I have an error in my latest post. {{=plugin_wiki.widget('jqgrid',db.yourtable,colnames=[.])}} The jqGrid widget has a button in bottom-left corner that opens a popup search box. It is less user-friendly than datatable but allows more precise construction of search criteria and works via

[web2py] Re: cube2py news

2010-07-20 Thread mdipierro
In the page/meta-code you can do response.meta.keywords='.' response.meta.description='' etc. they will find their way into the header of the page automatically On Jul 19, 9:14 pm, rochacbruno rochacbr...@gmail.com wrote: As a Brazilian I  agree with Julio, BTW I'm using the title

[web2py] request.post_vars

2010-07-20 Thread web2py noob
Hi! I'm trying to pass a variable between forms using just the post method but it still accepts the GET method. It's this possible? My code follows: controller1: form=crud.create(db.familia) if form.accepts(request.vars,session):

[web2py] Re: request.post_vars

2010-07-20 Thread mdipierro
The code is being passed by the problem is here def persona(): form=crud.create(db.persona) form.vars.ficha=request.vars.ficha because the crud.create does accept inside therefore the form is processed before you set form.vars.ficha. You can do insetad: controller1:

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread mdipierro
The problem with IOError, I can understand. As Graham says, if the client closes the connection before the server responds or if the server timesout the socket is closed and apache logs the IOError. What I really do not understand is why some requests are handled by multiple threads. web2py is

[web2py] Re: css of welcome app not adapted for Chrome??

2010-07-20 Thread mdipierro
I cannot reproduce the problem. I use Chrome on Mac. from your picture looks like these lines in base.css are being ignored: #layout { background: white; } #header, #footer { color: white; background: url('images/header.png') repeat #11;} Any more insight would be helpful.Which css

[web2py] citing web2py

2010-07-20 Thread mdipierro
if you need to cite web2py please cite: 1) the Wiley book, or 2) this paper: http://www.computer.org/portal/web/csdl/doi/10.1109/MCSE.2010.97

[web2py] Re: citing web2py

2010-07-20 Thread mdipierro
or web2py.com of course. On Jul 20, 2:56 am, mdipierro mdipie...@cs.depaul.edu wrote: if you need to cite web2py please cite: 1) the Wiley book, or 2) this paper:http://www.computer.org/portal/web/csdl/doi/10.1109/MCSE.2010.97

[web2py] Rewards selection

2010-07-20 Thread Kenneth
Hello, continuing on my selling tracker the next task is to make a rewards selector. When a campaign is over and all sellings are recorded into the tracker it is time to select rewards that the seller gets if he/ she sells enough. For every EUR sold you get one point. If you get say 10.000

[web2py] Re: css of welcome app not adapted for Chrome??

2010-07-20 Thread JmiXIII
Hi , Just a word to say that I've faced the same problem. I just hit refresh and it works fine. But I've faced this pb also with other site with chrome. It's stupid but to my mind it seems the template render before the css is refreshed. Each time I just had to refresh and things got wright. Yet

[web2py] Re: datatable plugin columns representation

2010-07-20 Thread sarsar
Thanks for the answer , but you have to tell me the post you are mentioning . From weekend I WILL begin to learn cube2py , and some sugestions for the newbies to begin with will help . If you provide me a way to write down my experiences then i ll do it . It might be interesting as a story what

[web2py] Re: datatable plugin columns representation

2010-07-20 Thread mdipierro
I think the cube2py name is going to disappear. It is just way to pachage this plugin: http://web2py.com/examples/static/web2py.plugin.wiki.w2p You can apply this plugin to the new welcome app and basically you get cube2py. Register, login and click on [page] in the menu. That is all. Massimo

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: The problem with IOError, I can understand. As Graham says, if the client closes the connection before the server responds or if the server timesout the socket is closed and apache logs the IOError. That isn't what I said. If you

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread mdipierro
Thanks for the clarification. @Michael, do you use the logging module? How? On Jul 20, 4:00 am, Graham Dumpleton graham.dumple...@gmail.com wrote: On Jul 20, 5:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: The problem with IOError, I can understand. As Graham says, if the client closes

[web2py] Re: css of welcome app not adapted for Chrome??

2010-07-20 Thread mdipierro
to me this seems a css caching problem. On Jul 20, 8:14 am, Jean-Guy jean...@gmail.com wrote: To reproduce the problem I just have to open welcome app of web2py older build then, I got mess up older welcome app and reopen the newer welcome app... I attach a screenshot of older app with

[web2py] The one video you should watch

2010-07-20 Thread mdipierro
If you have not followed closes the latest developments, you should watch this video: http://www.vimeo.com/13485916

Re: [web2py] Re: cube2py news

2010-07-20 Thread Bruno Rocha
Massimo, what about custom fields, there is a way using a widget or I have to change the model? tks 2010/7/20 mdipierro mdipie...@cs.depaul.edu: In the page/meta-code you can do response.meta.keywords='.' response.meta.description='' etc. they will find their way into the header of

[web2py] Re: cube2py news

2010-07-20 Thread mdipierro
response.meta.mycustomfield='bla bla bla' On Jul 20, 9:38 am, Bruno Rocha rochacbr...@gmail.com wrote: Massimo, what about custom fields, there is a way using a widget or I have to change the model? tks 2010/7/20 mdipierro mdipie...@cs.depaul.edu: In the page/meta-code you can do

[web2py] Re: cube2py news

2010-07-20 Thread Chris S
If there's already a way to write custom meta-fields which are placed in the header of a page I'd much prefer that to a title field. At the very least, if a lot of users want a default custom 'text' field it should not be named Title and possibly have an option to hide i in the editor. For the

[web2py] Re: Why am I getting logged out automatically?

2010-07-20 Thread MikeEllis
Javascript namespace collision? Just a thought ... On Jul 19, 5:31 pm, mdipierro mdipie...@cs.depaul.edu wrote: I do not understand this either. They are different cookies. On Jul 19, 3:14 pm, weheh richard_gor...@verizon.net wrote: Aha! Found it! I'm using jQuery tabs and wanted to test

Re: [web2py] Re: The one video you should watch

2010-07-20 Thread Thadeus Burgess
Web2py is now in a league of its own. This is the vision of web2py that has been in mind since the begininning, all of the other stuff (DAL, templateing etc) is just the means to this end. -- Thadeus On Tue, Jul 20, 2010 at 10:40 AM, MikeEllis michael.f.el...@gmail.comwrote: Massimo, I'm

[web2py] FlexiGrid example

2010-07-20 Thread ceriox
Hi all, somebody can post a little flexigrid tutorial or example ? i want to use it but i can't find any example or instruction to use it with web2py thanks

[web2py] Re: Possible with SQLFORM or SQLFORM.factory

2010-07-20 Thread Kenneth
I almost got it to work with IS_IN_DB form_fields.append(Field('new_seller', 'integer', requires=IS_IN_DB(db((db.tracker_person_product.troop_person == db.troop_person.id) \ (db.tracker_person_product.troop == troop.id) \ (db.tracker_person_product.campaign ==

[web2py] Re: Possible with SQLFORM or SQLFORM.factory

2010-07-20 Thread mr.freeze
IS_IN_DB now has a groupby. Give that a try. On Jul 20, 12:00 pm, Kenneth kenneth.t.lundst...@gmail.com wrote: I almost got it to work with IS_IN_DB     form_fields.append(Field('new_seller', 'integer', requires=IS_IN_DB(db((db.tracker_person_product.troop_person == db.troop_person.id) \  

Re: [web2py] Re: cube2py news

2010-07-20 Thread Bruno Rocha
2010/7/20 mdipierro mdipie...@cs.depaul.edu: response.meta.mycustomfield='bla bla bla' I wasn't referring to custom fields in the header, It's about custom fields in the wiki pages table. if I need for example: create categories for pages, include more information that are not part of the page

[web2py] jqgrid plugin_wiki

2010-07-20 Thread Jean-Guy
Hello, Can't understand what is the syntax to use the jqgrid plugin available inside of plugin_wiki in standard web2py app (in controller). Everything works in the cube, I would use the jqgrid of plugin_wiki in my app since it seam that it will be actualize regularly in the future. Thanks.

[web2py] Web2py and w3validator

2010-07-20 Thread Johann Spies
I am not an experienced web developer but I have always valued the output from validator.w3.org. After being disappointed with the output I received when validating a web2py app I built, I checked out http://www.web2py.com and it reported even more errors:

[web2py] Web2py and w3validator

2010-07-20 Thread Johann Spies
I am not an experienced web developer but I have always valued the output from validator.w3.org. After being disappointed with the output I received when validating a web2py app I built, I checked out http://www.web2py.com and it reported even more errors:

Re: [web2py] Web2py and w3validator

2010-07-20 Thread Jonathan Lundell
On Jul 20, 2010, at 11:32 AM, Johann Spies wrote: I am not an experienced web developer but I have always valued the output from validator.w3.org. After being disappointed with the output I received when validating a web2py app I built, I checked out http://www.web2py.com and it reported

[web2py] jqgrid plugin_wiki

2010-07-20 Thread Jean-Guy
Hello, Can't understand what is the syntax to use the jqgrid plugin available inside of plugin_wiki in standard web2py app (in controller). Everything works in the cube, I would use the jqgrid of plugin_wiki in my app since it seam that it will be actualize regularly in the future. Thanks.

[web2py] Re: The one video you should watch

2010-07-20 Thread mikech
Massimo: I want to DZone this. Is there a web page outlining the new features? On Jul 20, 7:22 am, mdipierro mdipie...@cs.depaul.edu wrote: If you have not followed closes the latest developments, you should watch this video: http://www.vimeo.com/13485916

[web2py] Re: The one video you should watch

2010-07-20 Thread Mengu
great screencast but you should really stop that zz. :) On 20 Temmuz, 17:22, mdipierro mdipie...@cs.depaul.edu wrote: If you have not followed closes the latest developments, you should watch this video: http://www.vimeo.com/13485916

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Michael Toomim
Thank you for the clarification. My wsgi.conf has default values, so I have not set maximum-requests. Perhaps there are settings there I should look into? I still have free memory, so perhaps there is not a memory leak issue. I'm also not sure how one would get memory leaks in web2py, since

[web2py] Re: The one video you should watch

2010-07-20 Thread mr.freeze
I agree, the high-pitched squeal is maddening! My dog left the room when the video started :) On Jul 20, 4:07 pm, Mengu whalb...@gmail.com wrote: great screencast but you should really stop that zz. :) On 20 Temmuz, 17:22, mdipierro mdipie...@cs.depaul.edu wrote: If

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Michael Toomim
Let me also summarize the issues so far. Originally: - I got three types of error messages in apache logs - Logging messages were often duplicated 2, 3, 5 times - I got the IOError ticket a few times - After a while the web serving slowed (some requests took up to a minute) and then quit

[web2py] plugin_wiki

2010-07-20 Thread Pete Emerson
I just watched this video about plugin_wiki (it was posted to Hacker News): http://www.vimeo.com/13485916 (What is going on with web2py?) It seems to me that vast number of dynamic web sites out there could be done via web2py and plugin_wiki, and it makes me wonder who else is doing their own

[web2py] Re: Web2py and w3validator

2010-07-20 Thread mdipierro
I will take a patch. ;-) We went though this for the old welcome app and we passed. On Jul 20, 1:52 pm, Jonathan Lundell jlund...@pobox.com wrote: On Jul 20, 2010, at 11:32 AM, Johann Spies wrote: I am not an experienced web developer but I have always valued the output from

[web2py] Re: jqgrid plugin_wiki

2010-07-20 Thread mdipierro
if you have the latest plugin_wiki, in any view {{=plugin_wiki.widget('jqgrid',tablename)}} or {{=plugin_wiki.widget('jqgrid',tablename,fieldname,fieldvalue)}} to select all records where fieldname==fieldvalue. There are other optional arguments columns='id,field1,field2,etc...'

[web2py] Re: The one video you should watch

2010-07-20 Thread mdipierro
No. I will try make one... these things are still developing. On Jul 20, 3:29 pm, mikech mp.ch...@gmail.com wrote: Massimo: I want to DZone this.  Is there a web page outlining the new features? On Jul 20, 7:22 am, mdipierro mdipie...@cs.depaul.edu wrote: If you have not followed closes

[web2py] Re: The one video you should watch

2010-07-20 Thread mdipierro
I wish I knew how. I do not know where the z comes from. On Jul 20, 4:07 pm, Mengu whalb...@gmail.com wrote: great screencast but you should really stop that zz. :) On 20 Temmuz, 17:22, mdipierro mdipie...@cs.depaul.edu wrote: If you have not followed closes the

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread mdipierro
Can you comment on memory usage? I have see this once: after a while web serving slows it appeared to be due to a memory leak somewhere (did not experience it with web2py+Rocket but only in web2py+mod_wsgi+apache). I googled it and I found Django was having the same problem on some hosts:

[web2py] Re: plugin_wiki

2010-07-20 Thread mdipierro
I posted this because I hope for comments to determine a roadmap. I think we need some integration with plugin_layouts (http://web2py.com/ layouts). We may need a few more widgets. We need to make sure we have a consistent syntax and sufficient customization capabilities. I guess people need to

[web2py] Re: User adding elements to forms?

2010-07-20 Thread mr.freeze
This is a rudimentary example but it should get you started: def formtest(): form = SQLFORM.factory(Field('first'),Field('second')) submitrow = form.element(_type='submit').parent newrow = TR(LABEL('third'),INPUT(_type='text',_name='third')) addfields =

[web2py] Re: Rocket cache response

2010-07-20 Thread Timbo
@Jon, Notice that HTTP(304) call, that doesn't read response.headers, it only takes in what headers you give it. In this case it's none. Flip over to http.py line 77...there's your answer. @Iceberg, As I've noted above, this is a web2py issue. I'm not going to have rocket remove headers that

Re: [web2py] Re: Rocket cache response

2010-07-20 Thread Jonathan Lundell
On Jul 20, 2010, at 4:27 PM, Timbo wrote: @Jon, Notice that HTTP(304) call, that doesn't read response.headers, it only takes in what headers you give it. In this case it's none. Flip over to http.py line 77...there's your answer. Ah, right. We shouldn't be adding content-type headers to

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 21, 7:17 am, Michael Toomim too...@gmail.com wrote: Thank you for the clarification. My wsgi.conf has default values, so I have not set maximum-requests. Perhaps there are settings there I should look into? I still have free memory, so perhaps there is not a memory leak issue.  I'm

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 21, 8:18 am, mdipierro mdipie...@cs.depaul.edu wrote: Can you comment on memory usage? I have see this once: after a while web serving slows it appeared to be due to a memory leak somewhere (did not experience it with web2py+Rocket but only in web2py+mod_wsgi+apache). I googled it

Re: [web2py] Re: Error in wsgi/apache

2010-07-20 Thread Thadeus Burgess
The solution: I switched to Flask. And the problems dissipated completely, without modifying any configuration of the web server. I would not, and will not use web2py for any application that is mission critical. For personal sites, or quick projects that I know won't receive that much

Re: [web2py] Re: The one video you should watch

2010-07-20 Thread Thadeus Burgess
Odd. I do not hear any when I watched it. -- Thadeus On Tue, Jul 20, 2010 at 5:08 PM, mdipierro mdipie...@cs.depaul.edu wrote: I wish I knew how. I do not know where the z comes from. On Jul 20, 4:07 pm, Mengu whalb...@gmail.com wrote: great screencast but you should really stop

[web2py] Re: The one video you should watch

2010-07-20 Thread Scott
It sounds like a cooling fan to me. Try an external microphone and see if the fan noise persists? On Jul 20, 6:08 pm, mdipierro mdipie...@cs.depaul.edu wrote: I wish I knew how. I do not know where the z comes from. On Jul 20, 4:07 pm, Mengu whalb...@gmail.com wrote: great

[web2py] Controller result escaped - impacts sparklines web2py slice

2010-07-20 Thread Scott
All, It's been a few months since I've looked at the sparklines web2py slice (http://web2pyslices.com/main/slices/versions/79/169 or http://groups.google.com/group/web2py/browse_thread/thread/2a6a7b2cbfe97278/). It seems that the latest stable and dev builds break the slice because the controller

[web2py] Multiples ajax forms (with LOAD). It is possible?

2010-07-20 Thread ionel
Hello, I try to add two ajax forms into a page with something like this: {{=LOAD(url=URL(r=request,f='add_person.load'), ajax=True)}} {{=LOAD(url=URL(r=request,f='add_image.load'), ajax=True)}} If the form has errors, the error messages are displayed after a second submit. So, I need to click

[web2py] Re: Multiples ajax forms (with LOAD). It is possible?

2010-07-20 Thread ionel
Addition: only the first form has the problem. On Jul 20, 10:10 pm, ionel ionelanton...@gmail.com wrote: Hello, I try to add two ajax forms into a page with something like this: {{=LOAD(url=URL(r=request,f='add_person.load'), ajax=True)}} {{=LOAD(url=URL(r=request,f='add_image.load'),

[web2py] Re: The one video you should watch

2010-07-20 Thread weheh
Very interesting demo. Lots to absorb. Unfortunately, I hear the audio buzz, too, and agree that it's distracting.

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Michael Toomim
THANK YOU ALL SO MUCH for your help! I just learned a LOT. It looks like resource consumption was the problem, because things are doing better on the bigger machine and scaled down code. I've also added the MaxRequestsPerChild directive. I am soo happy to have this web server working, and

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 21, 1:03 pm, Michael Toomim too...@gmail.com wrote: THANK YOU ALL SO MUCH for your help! I just learned a LOT.  It looks like resource consumption was the problem, because things are doing better on the bigger machine and scaled down code.  I've also added the MaxRequestsPerChild

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Michael Toomim
I'm using daemon mode... I didn't realize that the directive won't matter in daemon mode. Yes, I think I probably will run into the problem again when I get more usage. However, I'm still not convinced it's a memory problem, because I had 30mb free on my 740mb machine when I was having the

[web2py] Re: Error in wsgi/apache

2010-07-20 Thread Graham Dumpleton
On Jul 21, 1:41 pm, Michael Toomim too...@gmail.com wrote: I'm using daemon mode... I didn't realize that the directive won't matter in daemon mode. Yes, I think I probably will run into the problem again when I get more usage.  However, I'm still not convinced it's a memory problem,

Re: [web2py] Re: The one video you should watch

2010-07-20 Thread Thadeus Burgess
I just realized why I did not hear it, I was listening on one of those headsets that have a built-in inline audio card, so it was performing a filter and it took that noise out. Playing through my PC speakers and the noise is there -- Thadeus On Tue, Jul 20, 2010 at 9:59 PM, weheh