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 wrote: > That seems risky to automatically pull in changes but I guess it cou

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 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 comment... what's the pro

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 wrote: >> Where should I run this scrip from? Does it matter? > > Just from the command line. I

Re: [web2py] Re: wb2py with existing database

2012-03-30 Thread Ruben Orduz
Anthony, Where should I run this scrip from? Does it matter? On Thu, Mar 29, 2012 at 1:18 PM, Anthony 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 >

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 supe

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 wrote: > Also one for MySQL: > http://code.google.com/p/web2py/source/browse/s

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 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 Thursday, March 29

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

2012-03-20 Thread Ruben Orduz
t;> >> http://domain.com/AppName/model1/{model1_id}/model2/{model2_id}/model3/{model3_id} >> should be routed to the default function of cont3 >> >> ... and so forth. >> >> We already did a proof-of-concept with couple other frameworks, and >> wou

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

2012-03-20 Thread Ruben Orduz
at 1:09 PM, Jonathan Lundell 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

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
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 c

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

2012-03-20 Thread Ruben Orduz
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 rou

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 routes

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 wrote: > To be clear, you have a file called "routes.py" in yo

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 par

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 wrote: > Right here is good. Unfortunately, the new online book is not easily > editable at the moment