[web2py] Re: connection pools

2011-04-17 Thread pbreit
It's pool_size. SQLite and GAE disregard it. In theory it can improve your DB performance but it can also degrade performance (if you set it too high, have limited memory or if there is some sort of conflict in your environment). http://web2py.com/book/default/chapter/06#Connection-Pooling

[web2py] Re: Open a new window and continue

2011-04-17 Thread Massimo Di Pierro
The link should have a ... target='_blank' On Apr 16, 5:26 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: Hello, how would you do something like this. I d like to have a link that generates an PDF report and opens that one in a new window. At the main window it continues to a

[web2py] Re: assigning default values using '='

2011-04-17 Thread Massimo Di Pierro
On Apr 16, 9:01 pm, niknok nikolai...@gmail.com wrote: The '=' notation is not a popular method but since it's supported and I personally like it, I like it too but no promise it will be supported longer term it was an experiment. Anyway, it works only for constants not functions.

[web2py] Re: Open a new window and continue

2011-04-17 Thread Kenneth
I have the PDF open in a new window but how do I get the main windows continue to a new page or reload. The idea is to have a link which shows the PDF and acknowledges the bill and reloads the page so the bill that has been acknowledged disapears from the list. A second question that is not

Re: [web2py] Re: connection pools

2011-04-17 Thread Stifan Kristi
thank you so much for your info, i've already read it. best regards, steve van christie On Sun, Apr 17, 2011 at 1:23 PM, pbreit pbreitenb...@gmail.com wrote: It's pool_size. SQLite and GAE disregard it. In theory it can improve your DB performance but it can also degrade performance (if you

[web2py] Re: GAE inconsistent on server and localhost

2011-04-17 Thread Karol Marcjan
On 17 Kwi, 00:36, howesc how...@umich.edu wrote: can you post the error you get from the GAE console?  GAE dev server is much more consistent than it was a year ago, but there are still some differences. cfh I'd like to but this generates a ticket and so the error is not shown by GAE.

[web2py] Re: GAE inconsistent on server and localhost

2011-04-17 Thread Karol Marcjan
On 17 Kwi, 00:36, howesc how...@umich.edu wrote: can you post the error you get from the GAE console?  GAE dev server is much more consistent than it was a year ago, but there are still some differences. cfh As I said on the dev server it runs just fine. The error only shows up in the cloud.

[web2py] header detail form

2011-04-17 Thread 黄祥
hi, is it possible to implement header and detail form? (i mean 1 header (course) can have many details (students)) e.g. db.define_table('student', Field('name', requires = IS_NOT_EMPTY() ) ) db.define_table('course',

[web2py] pygooglechart Issues

2011-04-17 Thread Neveen Adel
Hello, Am using pygooglechart lib to draw compound charts (e.g: Bar + line) But I have some issues: - I want to generate line chart on Bar Chart so i added a new data series (How can hide this series) chart.add_data([35,75,90,100,60,180]) # For Bar Chart

[web2py] Re: Unable to create DAL connection to PostgreSQL on WebFaction

2011-04-17 Thread Dave
Fernando, I appreciate your suggestion to add the port number in the connection string. Massimo, thank you for explaining why SQLDB shouldn't be used. I modified the connection string per your suggestion (to use DAL port #), and it worked. Thank you again David On Apr 16, 5:43 pm, Massimo Di

[web2py] Re: Unable to create DAL connection to PostgreSQL on WebFaction

2011-04-17 Thread Dave
VP, 5432 worked. WebFaction doesn't use the latest postgres, but I'll keep the 5433 port default in mind for the future. Thanks, David On Apr 16, 9:57 pm, VP vtp2...@gmail.com wrote: dbpg = DAL('postgres://dlawrence_test1:@localhost:5432/ dlawrence_test1') If you use the latest

[web2py] Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Mr. Electronic
Hi I have tried to create a simple installation script for Web2py on Ubuntu/Nginx/uWSGI. It is not complete but will give a good start for someone that has never tried Nginx and Web2py. It should be used on a fresh Ubuntu 10.04 (LTS) minimal installation. It is using Launchpad.net Br. Rune

[web2py] cyrillic in routes

2011-04-17 Thread LightOfMooN
Hello I need to route by cyrillic domain to my app How can I do that? Seems, routes don't work with unicode. I need something like: routes_in = ( (ur'/привет', r'/hello/default/index'), )

[web2py] Re: cyrillic in routes

2011-04-17 Thread Massimo Di Pierro
You have to use utf8 for now. On Apr 17, 9:45 am, LightOfMooN vladsale...@yandex.ru wrote: Hello I need to route by cyrillic domain to my app How can I do that? Seems, routes don't work with unicode. I need something like: routes_in = (     (ur'/привет', r'/hello/default/index'), )

[web2py] Re: cyrillic in routes

2011-04-17 Thread LightOfMooN
Could you please explain, how I should do it? I try like: routes_in = ( ('/xn--h1acfjl4f.xn--p1ai', r'/hello/default/index') ) and routes_in = ( ('/привет', r'/hello/default/index') ) but it seems not work On 17 апр, 20:49, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You have to use

[web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread VP
I kinda gave up on nginx. It (or uwsgi) gave me an error when I ran a long-running controller. Some kind of time-out limit must be set somewhere, but I couldn't figure where it is. Not much documentation out there. So I went back to Apache, which takes more RAM, but seems stable. On Apr 17,

[web2py] Re: web2py questions on Stackoverflow

2011-04-17 Thread VP
I think there should be -- perhaps -- a wiki to keep track of web2py knowledge base. I really dislike using Google group as a mechanism to store knowledge. There's no classification, ordering, and things get lost with time. On Apr 16, 8:46 pm, Anthony abasta...@gmail.com wrote: On Saturday,

[web2py] Re: cyrillic in routes

2011-04-17 Thread LightOfMooN
Thank you :) On 17 апр, 21:18, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Try: u'/привет'.encode('utf8') '/\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' routes_in = ( ('/\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82', r'/hello/default/ index') ) On Apr 17, 10:07 am,

[web2py] Re: cyrillic in routes

2011-04-17 Thread Massimo Di Pierro
Try: u'/привет'.encode('utf8') '/\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82' routes_in = ( ('/\xd0\xbf\xd1\x80\xd0\xb8\xd0\xb2\xd0\xb5\xd1\x82', r'/hello/default/ index') ) On Apr 17, 10:07 am, LightOfMooN vladsale...@yandex.ru wrote: Could you please explain, how I should do it? I

[web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Mr. Electronic
Hi A quick search on google.com gave the following parameters in Nginx configuration: uwsgi_connect_timeout uwsgi_send_timeout uwsgi_read_timeout It looks like you need to adjust the uwsgi_read_timeout Another search gave this page http://wiki.nginx.org/HttpUwsgiModule Where all the Nginx

[web2py] Re: cyrillic in routes

2011-04-17 Thread LightOfMooN
It's s strange There is 2 rules 1) (r'.*://\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. \xd1\x80\xd1\x84:.* /?', r'/myapp/default/index'), 2) (r'/\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. \xd1\x80\xd1\x84', r'/myapp/default/index'), 2nd works fine, but not 1st. I can't

[web2py] Re: cyrillic in routes

2011-04-17 Thread LightOfMooN
request.env.http_host 'xn--h1acfjl4f.xn--p1ai' So, domain not in utf-8 How to route it? On 17 апр, 21:47, LightOfMooN vladsale...@yandex.ru wrote: It's s strange There is 2 rules 1) (r'.*://\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. \xd1\x80\xd1\x84:.* /?',

[web2py] Re: cyrillic in routes

2011-04-17 Thread Massimo Di Pierro
what is the encoding? What is the os? I do not think a domain may contain chars that are not expressible in utf8 but I may be wrong. On Apr 17, 10:51 am, LightOfMooN vladsale...@yandex.ru wrote: request.env.http_host 'xn--h1acfjl4f.xn--p1ai' So, domain not in utf-8 How to route it? On 17

[web2py] Re: cyrillic in routes

2011-04-17 Thread LightOfMooN
Web2py is on Ubuntu 10.4 I have windows 7 (so, there is cp1251) So, if i check cyrillic value in app/controller/function/args/other like: (r'/\xd1\x80\xd0\xb8\xd0\xbb\xd1\x8d\xd0\xb9\xd0\xbd\. \xd1\x80\xd1\x84', r'/myapp/default/index') it works fine But if I check it in domain, like

[web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Mr. Electronic
Hi I have used some of the code from your script :-) Feel free to copy from my script if you can use something. I have added the following lines to the configuration of Nginx: client_max_body_size 256M; uwsgi_read_timeout 300; to be able to upload an Web2py app on 160MB through the Web2py

[web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread pbreit
Interesting. I wonder if there is anything here I should incorporate into these scripts? https://bitbucket.org/pbreit/web2py-automation/src

[web2py] Re: header detail form

2011-04-17 Thread pbreit
I'm not sure I understand. That is very common. An example from the book Overview: db.define_table('image', Field http://web2py.com/book/default/docstring/Field('title'), Field http://web2py.com/book/default/docstring/Field('file', 'upload')) db.define_table('comment', Field

Re: [web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Stifan Kristi
nice shared info, thank you so much. best regards, steve van christie On Mon, Apr 18, 2011 at 12:40 AM, Mr. Electronic r...@rc-consulting.dkwrote: Hi I have used some of the code from your script :-) Feel free to copy from my script if you can use something. I have added the following

Re: [web2py] pygooglechart Issues

2011-04-17 Thread Stifan Kristi
hi, had already tried : jQuery(...).hide(): Makes the object hidden ?? http://web2py.com/book/default/chapter/10#jQuery-Effects http://web2py.com/book/default/chapter/10#jQuery-Effectsbest regards, steve van christie On Sun, Apr 17, 2011 at 9:15 PM, Neveen Adel nevo.a...@gmail.com wrote:

Re: [web2py] Re: header detail form

2011-04-17 Thread Stifan Kristi
thanks, pbreitenbach for your ref, but, i want to create header and detail form is on the same page, that can be submit simultaneously on the same time. best regards, steve van christie On Mon, Apr 18, 2011 at 12:04 AM, pbreit pbreitenb...@gmail.com wrote: I'm not sure I understand. That is

Re: [web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Vasile Ermicioi
I think this script will not load latest versions of nginx (1.0.0) and uwsgi (0.9.7.2)

[web2py] share : goosh

2011-04-17 Thread Richard Vézina
Hello web2by friends, I just would just let you know about Goosh a unix like command shell for google search... http://goosh.org/ I learned it existance yesterday. Hope it will interest some of you... Richard

Re: [web2py] share : goosh

2011-04-17 Thread Stifan Kristi
nice shared richard. thanks and best regards, steve van christie On Mon, Apr 18, 2011 at 2:04 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello web2by friends, I just would just let you know about Goosh a unix like command shell for google search... http://goosh.org/ I

Re: [web2py] Extend Field Type upload to a CDN

2011-04-17 Thread Pepe Araya
Hi, any news about? I'm very interested regards!

Re: [web2py] Re: DB may not be updating fast enough...

2011-04-17 Thread Jason Brower
On 04/17/2011 12:31 AM, Plumo wrote: on that page are you querying for the items before handling the form submission? Shoot yeah... I should have seen that one! Thanks guys! BR, Jason

[web2py] Re: cyrillic in routes

2011-04-17 Thread Massimo Di Pierro
There are two separate issues: - routing: web2py will take cyrilling in a domain/url and remap into a controller function - request.env.http_host: this variable is passed to web2py by the wsgi web server, in your pace probably rocket. web2py does not filter and does not process this variable.

[web2py] Re: web2py questions on Stackoverflow

2011-04-17 Thread mr.freeze
Also, answers get lost here after a few months. On StackOverflow, they are easily searchable. On Apr 16, 8:46 pm, Anthony abasta...@gmail.com wrote: On Saturday, April 16, 2011 5:44:34 PM UTC-4, Massimo Di Pierro wrote: You can always answer please ask the web2py mailing list ;-) Yes, I

Re: [web2py] Re: cyrillic in routes

2011-04-17 Thread Jonathan Lundell
On Apr 17, 2011, at 8:51 AM, LightOfMooN wrote: request.env.http_host 'xn--h1acfjl4f.xn--p1ai' So, domain not in utf-8 How to route it? That's Punycode, which is how non-ASCII domain names are encoded in ASCII (DNS, for example, operates on the Punycode version of the domain name).

[web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Mr. Electronic
Hi I have nginx 1.0.0 and uwsgi 0.9.6.8 so uwsgi is not the lastet version but the LTS version. Br. Rune Christensen On 17 Apr., 21:02, Vasile Ermicioi elff...@gmail.com wrote: I think this script will not load latest versions of nginx (1.0.0) and uwsgi  (0.9.7.2)

[web2py] Re: gae error

2011-04-17 Thread howesc
i didn't look at the slicebut you are using python 2.6. GAE does not like python 2.6. it's old skool and likes python 2.5 check that you both have python 2.5 installed, and that you are invoking dev_appserver.py with python2.5 cfh

Re: [web2py] Re: Ubuntu + Nginx + uWSGI + Web2py using PPA/Launchpad.net

2011-04-17 Thread Vasile Ermicioi
if it so then it is great! thanks for sharing

Re: [web2py] Re: gae error

2011-04-17 Thread Stifan Kristi
yes, i use python 2.6, i'll try your adviced to use python 2.5 thank you so much and best regards, steve van christie On Mon, Apr 18, 2011 at 5:34 AM, howesc how...@umich.edu wrote: i didn't look at the slicebut you are using python 2.6. GAE does not like python 2.6. it's old skool and

[web2py] OrderedTree implementation

2011-04-17 Thread elffikk
Hi, I am developing a solution to store hierarchical data, we have already nested sets, but I have some reasons to develop an alternative for those interested to contribute with ideas and implementation the description (draft)

[web2py] Re: OrderedTree implementation

2011-04-17 Thread Massimo Di Pierro
talking about knowledge that got lost... you may want to look into this: http://www.mail-archive.com/web2py@googlegroups.com/msg06393.html On Apr 17, 7:50 pm, elffikk elff...@gmail.com wrote: Hi, I am developing a solution to store hierarchical data, we have already nested sets, but I have

Re: [web2py] Re: OrderedTree implementation

2011-04-17 Thread Vasile Ermicioi
As I said, I have some reasons to develop an alternative to nested sets...

[web2py] Accessing form.vars

2011-04-17 Thread Drise
Hello again. I have this code that is able to read from from.vars for question in questions: options=[question['option_'+c] for c in ['A','B','C','D'] if question['option_'+c].strip()] stuff.append(TABLE([TR(question.question)], [TR(INPUT(_type=radio,_name=question.id,