[web2py] References in the book are broken

2012-01-27 Thread Stefan Scholl
I'd like to visit the referenced pages from http://www.web2py.com/book/default/chapter/01#Security but I only get the error invalid function (default/reference) Broken: http://www.web2py.com/books/default/reference/29/pythonsecurity http://www.web2py.com/books/default/reference/29/owasp

Re: [web2py] Re: web2py with Plesk Control Panel ?

2012-01-27 Thread Kenneth Lundström
On 26.1.2012 20:11, Ben Tammetta wrote: Ok, so if I install python 2.6 how do I tell apache, web2py, mod_wsgi and/or mod_python to use the python2.6 version ? If I remember right the only thing you need to do is install a 2.6 version of mod_wsgi. Kenneth

Re: [web2py] getting started with dotcloud

2012-01-27 Thread José Luis Redrejo Rodríguez
2012/1/26 Brad Miller bonel...@gmail.com: That did it, thanks! Is there a newer version of the tutorial somewhere? Not, as far as I know, but old tutorials are right in most parts.  I have some basic questions like  how do I get the app to start with an admin password? As far as I know you

[web2py] Re: Book typo

2012-01-27 Thread Johann Spies
In views - about auth.navbar(...): It is a heler factory and its output can be manipulated as any other helper. should probably be It is a helper factory and its output can be manipulated as any other helper. Regards Johann -- Because experiencing your loyal love is better than life itself,

[web2py] Re: Book typo

2012-01-27 Thread Johann Spies
In Views under Mobile development: Notice that the decorator must be important once before using it in a controller. *should probably be:* Notice that the decorator must be imported once before using it in a controller. Regards Johann -- Because experiencing your loyal love is better than life

[web2py] Re: Movuca CMS - Updates and Call for help

2012-01-27 Thread Alan Etkin
Wow!, there's so much to do :). I will try help when I have time. For keepalive features, I'd search for jQuery timing plugins. Anyway, using javascript setInterval and setTimeout functions is not too difficult. There's a web2py LOAD timing feature proposal that might be of use for that purpose:

[web2py] Re: Empty session after login. How can this happen?

2012-01-27 Thread Cliff
Before the problem I was using port 8010. The day the problem started I used port 8000. But I've changed ports before without problem. There was also a kernel upgrade, but I can't imagine that would cause this. Version 1.99.4 from the start. Checked permissions. Cleared browser cache,

[web2py] Nginx + uwsgi file download problem

2012-01-27 Thread Thomas Bellembois
Hello, I have a file download problem with my Web2py application. The file is about 200kB. web2py version: 1.99.2 (2011-09-26 06:55:33) stable nginx-1.0.6 uwsgi-0.9.9.2 Debian Squeeze. One of my crontroler creates a tar.gz file and returns it to the user. It works well with the default

Re: [web2py] cluster: distributed locks

2012-01-27 Thread Sebastian E. Ovide
yes... very similar... I guess that just deleting the JS part and creating a new DB object within the plugin (so that it has it own ttransaction) will make the work... thanks On Thu, Jan 26, 2012 at 9:20 AM, Bruno Rocha rochacbr...@gmail.com wrote: I dont know if it is related, but there is a

Re: [web2py] Re: begin a transaction manually ?

2012-01-27 Thread Sebastian E. Ovide
I guess that defining two will work for me... thanks ! On Thu, Jan 26, 2012 at 2:40 PM, Bruno Rocha rochacbr...@gmail.com wrote: maybe if there's a way to .close() the db to be able to define it again. http://zerp.ly/rochacbruno Em 26/01/2012 12:18, Massimo Di Pierro

[web2py] Re: Problem with legacy tables

2012-01-27 Thread brushek
And yes, as always Massimo :), it is working now, thank You for response :). Taken from trunk: Version 1.99.4 (2012-01-26 12:53:05) stable regards brushek On 26 Sty, 19:54, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Yes. This will be resolved. We are working on it. In fact it may be

[web2py] Re: Book typo

2012-01-27 Thread Johann Spies
In http://www.web2py.com/books/default/chapter/29/4#API (Running tasks in the background): There is not a single was of doing it, should be There is not a single way of doing it, Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm

Re: [web2py] Re: Movuca CMS - Updates and Call for help

2012-01-27 Thread Bruno Rocha
On Fri, Jan 27, 2012 at 9:04 AM, Alan Etkin spame...@gmail.com wrote: Wow!, there's so much to do :). I will try help when I have time. For keepalive features, I'd search for jQuery timing plugins. Anyway, using javascript setInterval and setTimeout functions is not too difficult. There's a

[web2py] Re: Standalone DAL Usiage - Insert from a Dictionary (vs bulk_insert)

2012-01-27 Thread Anthony
def populate_table(): for row in sdb().select(sdb.mytbl.ALL): # build a dict for tbl insert for fldname in sdb().mytbl.fields: ddict[fldname] = row[fldname] Note, each row of the select result is a web2py Row object (see

[web2py] web2py CRUD example

2012-01-27 Thread Gian Luca Decurtins
Hi all I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm stuck at invalid view (default/data.html) while accessing https://localhost/init/default/data/tables. So far I've created a simple application init and changed the following: In controllers/default.py I've disabled

[web2py] Re: Movuca CMS - Updates and Call for help

2012-01-27 Thread Anthony
In site notifications looks like this: http://www.diigo.com/item/image/121xl/jqgp?size=o (a counter, a popup, a button to mark as read) Now I want to have an ajax keepalive or websockets to pop it automatically (does anyone knows about it?) Have you looked at Socket.IO

[web2py] delays with concurrent web requests from different local browsers, using rocket on win7

2012-01-27 Thread Carlos
Hi, I'm using (local environment): rocket / web2py's latest trunk / win7 / postgresql. Since about a month ago I've been experiencing big delays on concurrent web requests from different browsers (different sessions), after applying changeset # 9619eb054669 (Socket timeout is now int an

Re: [web2py] web2py CRUD example

2012-01-27 Thread Bruno Rocha
include response.generic_patterns = ['*'] in your models or in your data controller, so you will be able to use generic views. On Fri, Jan 27, 2012 at 9:01 AM, Gian Luca Decurtins decur...@gmail.comwrote: Hi all I'm trying to use the CRUD-feature of web2py (1.99.4). At the moment I'm stuck

[web2py] Web2py in large web scenarios

2012-01-27 Thread Alfonso de la Guarda
Hi, I'm about to start a major project development and although I am a regular user of web2py in my development, they have been mostly in intranets, what worries me is if anyone has had previous experience of putting an application based on web2py with several thousand users, in which case I

Re: [web2py] web2py CRUD example

2012-01-27 Thread Gian Luca Decurtins
Thank you! I had to edit models/db.py: # response.generic_patterns = ['*'] if request.is_local else [] response.generic_patterns = ['*'] Regards -Gian. BTW: In the original post I've replaced the FQDN with localhost. If the application did run on localhost this modification should not be

[web2py] Cherokee deployment config

2012-01-27 Thread Roberto Perdomo
Hi, I have problems with the configuration of a server cherokee with we2py. I follow the  Cherokee with FastCGI manual from: http://www.web2py.com/books/default/chapter/29/13. 1) create the file /var/web2py/startweb2py.sh and set as executable with this content: #!/bin/sh sudo -u www-data

[web2py] web2py book in Japanese

2012-01-27 Thread Massimo Di Pierro
Congratulations to Omi Chiba, Kenji Hosoda, Kenji Nakagaki, Mitsuhiro Tsuda, and Yota Ichino. The web2py book is now available in PDF in Japanese: http://web2py.com/books/static/web2py_japanese_3rd.pdf

[web2py] Re: References in the book are broken

2012-01-27 Thread Massimo Di Pierro
hmm will work on it asap. On Jan 27, 3:10 am, Stefan Scholl ste...@no-spoon.de wrote: I'd like to visit the referenced pages fromhttp://www.web2py.com/book/default/chapter/01#Securitybut I only get the error invalid function (default/reference)

[web2py] Re: Empty session after login. How can this happen?

2012-01-27 Thread Massimo Di Pierro
Can you login into the welcome app? How about admin? Is this problem specific of one app? On Jan 27, 6:00 am, Cliff cjk...@gmail.com wrote: Before the problem I was using port 8010.  The day the problem started I used port 8000.  But I've changed ports before without problem. There was also a

[web2py] Re: Cherokee deployment config

2012-01-27 Thread Roberto Perdomo
I found that setting alternative doccument root to /var/web2py/applications the server work, but in the documentation that change does not appear. Solved my self, thanks 2012/1/27 Roberto Perdomo roberto...@gmail.com: Hi, I have problems with the configuration of a server cherokee with we2py.

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
My first tip is, avoid /models have your code in /modules import what you need only when and where you need! On Fri, Jan 27, 2012 at 1:39 PM, Alfonso de la Guarda alfons...@gmail.comwrote: Hi, I'm about to start a major project development and although I am a regular user of web2py in my

[web2py] Re: Movuca CMS - Updates and Call for help

2012-01-27 Thread Massimo Di Pierro
This is a fantastic project! On Jan 27, 2:53 am, Bruno Rocha rochacbr...@gmail.com wrote: Hi, I just finished the hardest part of the social network, the Notifications Engine, The secret of Facebook success is the notifiers showing news without the need of users to click anywhere. I did a

[web2py] Re: delays with concurrent web requests from different local browsers, using rocket on win7

2012-01-27 Thread Massimo Di Pierro
What do you get if you reduce 60 seconds to 10 seconds? On Jan 27, 9:27 am, Carlos carlosgali...@gmail.com wrote: Hi, I'm using (local environment): rocket / web2py's latest trunk / win7 / postgresql. Since about a month ago I've been experiencing big delays on concurrent web requests from

[web2py] how to restart only one app in uwsgi?

2012-01-27 Thread Bruno Rocha
HI, May be it is a better question to uwsgi list, but maybe someone here knows.. I have several apps in a single server running uwsgi, every time I need to reload some modules in some app I do /etc/init.d/uwsgi-python restart But it restarts all my apps.. Is there a way to specify which app

Re: [web2py] web2py CRUD example

2012-01-27 Thread Anthony
On Friday, January 27, 2012 10:43:53 AM UTC-5, Gian Luca Decurtins wrote: Thank you! I had to edit models/db.py: # response.generic_patterns = ['*'] if request.is_local else [] response.generic_patterns = ['*'] Note, there's a reason that generic views are enabled only on localhost by

[web2py] Re: delays with concurrent web requests from different local browsers, using rocket on win7

2012-01-27 Thread Carlos
Hi Massimo, Whatever value I assign, it's the number of seconds it usually takes for concurrent requests. With the original default value of 1 (one), the concurrent responses are immediate (as one would expect). Hope this helps, thanks. Carlos

[web2py] Redbean-like ORM in web2py

2012-01-27 Thread Chnrxn
First off, my appreciation to Massimo and the web2py team for working on such a wonderful product. I had used RedBeanPHP ORM (http://redbeanphp.com/) in a recent project on PHP, and I really liked it. It stays true to it's claim - Combine The Simplicity of NoSQL With The Power of SQL. - making

[web2py] Re: Redbean-like ORM in web2py

2012-01-27 Thread Ross Peoples
I don't know about future development plans, but I can say that web2py does not use an ORM, it uses a database abstraction layer that generates the proper SQL (and NoSQL) code. Lack of an ORM is sometimes touted as a feature of web2py because ORMs are usually big, complicated, and difficult to

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Ross Peoples
This is very good advice. I have moved many of my plugins and apps from using models to modules because of the performance gain. There is nothing wrong with the models implementation, but it's really meant to define tables and that's it. Functionality that doesn't belong in a controller should

[web2py] web2py.com is down ?

2012-01-27 Thread Omi Chiba
Just me ?

Re: [web2py] web2py.com is down ?

2012-01-27 Thread Javier Quarite
On Fri, Jan 27, 2012 at 1:01 PM, Omi Chiba ochib...@gmail.com wrote: Just me ? Me too

Re: [web2py] web2py.com is down ?

2012-01-27 Thread Ovidio Marinho
+1 Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro Brasil 2012/1/27

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Ross Peoples
One other thing I noticed after reading your question a second time: Python (Django and web2py) will run much faster than PHP in almost every case. If you needed to start passing things to PHP in order to speed things up, then you must have been using a highly-tuned PHP configuration and a very

[web2py] Re: Empty session after login. How can this happen?

2012-01-27 Thread Cliff
I think the problem is in the app models, which I have attached below. Apologies for the lengthy post. Note the print statements at the end of db.py. Those statements do not execute until I attempt to use the database administration link on the admin/default/design page. Is that normal? ##

Re: [web2py] web2py.com is down ?

2012-01-27 Thread Jim Steil
+1 On 1/27/2012 12:04 PM, Ovidio Marinho wrote: +1 Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com mailto:ovidio...@gmail.com ovidiomari...@itjp.net.br mailto:ovidiomari...@itjp.net.br ITJP - itjp.net.br http://itjp.net.br

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
I also noted best performance directly rendering the templates and caching views where it can be cached. just replacing return dict() with return response.render(filename, context) in conttrollers and also usins @cached controllers and cached queries. the bottleneck is always server and

Re: [web2py] web2py.com is down ?

2012-01-27 Thread Vasile Ermicioi
same here

Re: [web2py] Re: Redbean-like ORM in web2py

2012-01-27 Thread Vasile Ermicioi
However, there is nothing stopping you from using RedBrean or even SQLAlchemy in your web2py projects. RedBean is a php library... :) I used it but I can't say that it is better than web2pys DAL

Re: [web2py] web2py.com is down ?

2012-01-27 Thread Ovidio Marinho
On Now Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ovidiomari...@itjp.net.br ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro Brasil 2012/1/27

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Magnitus
This is very good advice. I have moved many of my plugins and apps from using models to modules because of the performance gain. There is nothing wrong with the models implementation, but it's really meant to define tables and that's it. Functionality that doesn't belong in a controller should

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Vinicius Assef
It really depends. Querying and returning large datasets can become a huge bottleneck. More than letting db server work on its own relations. If you use a real RDBMS, it's designed to work on it. Web2py doesn't create indexes. You have to make it manually. Making so, RDBMS thanks you a lot and

Re: [web2py] Cherokee deployment config

2012-01-27 Thread Michele Comitini
I know it is not fcgi but I suggest scgi, it is simpler and couples very well with web2py. In the new web2py cookbook there is a recipe for using cherokee with scgi, there you will find a detailed setup description. The essence is that you create an scgi handler in cherokee. You set cherokee to

[web2py] Re: Chunked downloads and corrupt files with Internet Explorer 8 (IE8)

2012-01-27 Thread nick name
I posted https://github.com/explorigin/Rocket/issues/1#issuecomment-3648126- I suspect it is an interplay between timeouts and sendall(), though I can't really prove it (and I can't reliably reproduce this either right now). Also some characterization about when this happens to me (slow links,

[web2py] Re: web2py.com is down ?

2012-01-27 Thread Massimo Di Pierro
VPS.NET informed me they had a bad switch and needed to replace it. On Jan 27, 1:07 pm, Ovidio Marinho ovidio...@gmail.com wrote: On Now        Ovidio Marinho Falcao Neto                 Web Developer              ovidio...@gmail.com           ovidiomari...@itjp.net.br                  

[web2py] Re: Chunked downloads and corrupt files with Internet Explorer 8 (IE8)

2012-01-27 Thread Massimo Di Pierro
Thank you. This is really an important issue and should get priority. On Jan 27, 4:04 pm, nick name i.like.privacy@gmail.com wrote: I postedhttps://github.com/explorigin/Rocket/issues/1#issuecomment-3648126-I suspect it is an interplay between timeouts and sendall(), though I can't really

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread pbreit
Are there any good instructions for how to do this?

[web2py] Re: Web2py in large web scenarios

2012-01-27 Thread pbreit
1. It's much easier to scale than it is to gain enough users where scaling is a problem. 2. The framework is almost never the culprit. For example, Disqus has 500 million monthly uniques on Django. 3. There are lots of ways to optimize system performance from caching, to optimizing queries,

[web2py] Re: Redbean-like ORM in web2py

2012-01-27 Thread pbreit
Is the main benefit not having to pre-define models? I suppose that could be nice during development but don't find that to be a big problem with DAL. DAL is pretty integral to Web2py and one of the most popular features. And it has many of the same advantages as RedBean and from my brief look,

[web2py] Re: Nginx + uwsgi file download problem

2012-01-27 Thread pbreit
Hard to say. I don't know if this helps but here's how appadmin does it for a csv file: def csv(): import gluon.contenttype response.headers['Content-Type'] = \ gluon.contenttype.contenttype('.csv') db = get_database(request) query = get_query(request) if not query:

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Michele Comitini
About db bottlenecks: I think that using executesql gives a performance gain of 2 orders of magnitude over DAL on datasets with more than 1000 records. The DAL is a huge bottleneck if used inappropriately. I suggest using posgtresql with proper indexing. How? Just take your query and run it

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Bruno Rocha
I am using /models just to define small global functions and to set some response and request keys. All my code including datamodels I am putting into /modules In my mind I changed the /models to /scripts or /batches so it is more easy to understand why avoiding it. my current structure is:

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread pbreit
What confuses me is what modules have access to and what needs to be imported (in modules and controllers).

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread pbreit
I wonder if DAL should have an ability to return JSON data sets that are then manipulated with JavaScript? Or something like that?

Re: [web2py] Cherokee deployment config

2012-01-27 Thread Roberto Perdomo
Thank for you suggest. The next monday i try. Today with cherokee and fastcgi the welcome app work fine, but only show the index, and with other apps is the same problem. El 27/01/2012 16:15, Michele Comitini michele.comit...@gmail.com escribió: I know it is not fcgi but I suggest scgi, it is

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Alfonso de la Guarda
Hi, Nice Bruno, But those approachs how many traffic deals? By the way, is the first time that i notice about use the /modules approach to gain performance, are you measure the performance por models inside /model and /modules? To all: Mores experiences? Problem resolutions? Maybe put all of

[web2py] Re: Need help with selecting multiple rows into a single row

2012-01-27 Thread Adi
Alan, than you very much! Totally new concept for me, but you got exactly what I needed. I just fixed couple typos, and copying it here in case someone else needs to resolve a similar problem. rows = db(db.purchase_order.id0).select(db.purchase_order.po_number, db.item.id,

[web2py] Monitoring memory usage leaks

2012-01-27 Thread Joseph Jude
What tools / code snippets are you using to monitor memory leaks?

[web2py] Re: Cherokee deployment config

2012-01-27 Thread Gour
On Fri, 27 Jan 2012 11:23:22 -0430 Roberto Perdomo roberto...@gmail.com wrote: I have problems with the configuration of a server cherokee with we2py. Have you considered Cherokee + uWSGI? Sincerely, Gour -- In this endeavor there is no loss or diminution, and a little advancement on this