Re: [web2py] Re: Deployment sqlite question

2012-04-02 Thread Ruben Orduz
Thanks for link, I'll check it out. And yeah it's totally risky, but it's more to prove a point that automated deployment works with a small app rather than full-sized deployment. On Mon, Apr 2, 2012 at 1:02 AM, pbreit pbreitenb...@gmail.com wrote: That seems risky to automatically pull in

Re: [web2py] wb2py with existing database

2012-04-01 Thread Ruben Orduz
Nice work Manuele, I'll keep an eye on that project. On Sun, Apr 1, 2012 at 4:48 PM, Manuele Pesenti manuele.pese...@gmail.com wrote: Il 01/04/2012 18:25, Anthony ha scritto: You should replace the Sourceforge link on the web2pyslices post with the above link. already added it in a

Re: [web2py] Re: wb2py with existing database

2012-03-30 Thread Ruben Orduz
Cool. Thanks for the confirm. It's bombing for me right now, but it's very likely due to the changes I made so that it would skip most types since it's mongoDB. On Fri, Mar 30, 2012 at 4:00 PM, Anthony abasta...@gmail.com wrote: Where should I run this scrip from? Does it matter? Just from the

Re: [web2py] Re: wb2py with existing database

2012-03-29 Thread Ruben Orduz
Let me check it out. Looks promising. On Thu, Mar 29, 2012 at 1:18 PM, Anthony abasta...@gmail.com wrote: Check out this script: http://code.google.com/p/web2py/source/browse/scripts/extract_pgsql_models.py. You may need to adapt it slightly for your particular database. Anthony On

Re: [web2py] Re: wb2py with existing database

2012-03-29 Thread Ruben Orduz
Nice. Actually I think tweaking the one Anthony provided will be easier since this DB is a mongoDB instance, and all fields have the same type (and no relationships to speak of). On Thu, Mar 29, 2012 at 1:26 PM, pbreit pbreitenb...@gmail.com wrote: Also one for MySQL:

Re: [web2py] Re: Using routes.py as a dispatcher for URL shortener app

2012-03-29 Thread Ruben Orduz
Good point, Anthony. I forgot they are evaluated in order. So you can declare them explicitly before the generic pattern and achieve the same result. For bonus points, OP, you should make it RESTful like I did with mine and then heavily leverage the default layout :) Mine's currently up at the

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
I'm definitely confused with this routing scheme. There's the base routes.py (which is usually ignored due to file name). Inside this file there are 3 examples (routes_app, routes_in and routes_out). So, assuming you change the name of the file routes.py and restart your server, it will use

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
...@pobox.com wrote: On Mar 20, 2012, at 8:09 AM, Ruben Orduz wrote: I'm definitely confused with this routing scheme. There's the base routes.py (which is usually ignored due to file name). Inside this file there are 3 examples (routes_app, routes_in and routes_out). So, assuming you change the name

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
Perhaps I'm misreading your answers, but now I'm more confused. I'll keep bumping my head till I figure out a way or else use apache's mod_rewrite which is a heck lot more straight forward. I would suggest the following behavior though: routes_in and routes out in the _base_ routes.py should be

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
Not sure why so defensive. All I'm suggesting is that there is precedent in simpler routing schemes: consider django's (or Rails'), for instance. In django you have a urls.py at the root, and then optionally one in your app folder. You have to explicitly tell the root urls.py which urls to use for

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
Lundell jlund...@pobox.com wrote: On Mar 20, 2012, at 10:00 AM, Ruben Orduz wrote: Not sure why so defensive. All I'm suggesting is that there is precedent in simpler routing schemes: consider django's (or Rails'), for instance. In django you have a urls.py at the root, and then optionally one

Re: [web2py] Re: routes.py not picking up

2012-03-20 Thread Ruben Orduz
-or-break for them and we really have no say in the matter. So any help in this specific case is much appreciated. On Tue, Mar 20, 2012 at 1:09 PM, Jonathan Lundell jlund...@pobox.com wrote: On Mar 20, 2012, at 10:00 AM, Ruben Orduz wrote: Not sure why so defensive. All I'm suggesting

Re: [web2py] Re: routes.py not picking up

2012-03-19 Thread Ruben Orduz
Another thing that needs to be pointed out (at least this is the case in Windows) that modifications to this file require a full web2py server shutdown/restart. If you use the tk UI to stop server and then start server, it will not pick up changes in the file -- perhaps this is obvious to some,

Re: [web2py] routes.py not picking up

2012-03-16 Thread Ruben Orduz
Anthony, yes to your first question. And i know it's not picking it up because I mangled it on purpose and it kept working with no errors. As soon as I can VPN to work, I'll post its contents. Thx. On Friday, March 16, 2012, Anthony abasta...@gmail.com wrote: To be clear, you have a file

Re: [web2py] Re: logical/relationship url mapping

2012-03-14 Thread Ruben Orduz
What does that mean exactly? You can have multiple RESTful controllers, and they can call functions defined elsewhere if necessary. Just taking the sample code in the docs as an example You have the patterns, the magic sauce in parse_as_rest(), then the db object passes the results to the

Re: [web2py] Re: Reporting documentation/book typos?

2012-03-13 Thread Ruben Orduz
Thanks again, Anthony, I was just wondering if there was a system so that not to pollute the list with duplicate typos that have already been reported. On Tue, Mar 13, 2012 at 4:13 PM, Anthony abasta...@gmail.com wrote: Right here is good. Unfortunately, the new online book is not easily