[web2py] Zero-downtime deploy and route mapping script for Bluemix

2014-10-08 Thread duncan macneil
Hi all, A small script I'd like to share -- I use it for zero-downtime Web2Py deploys to Bluemix (using a so-called Blue-Green deploy method). The script takes advantage of knowing that domain-mapping to apps is in 'routes.py', using that to map routes in Bluemix to the new deploy. I posted

[web2py] Re: Here's how to run Web2Py on IBM BlueMix

2014-05-09 Thread duncan macneil
On Thursday, 8 May 2014 22:29:31 UTC+10, Willoughby wrote: > > Is Azure in your shoot-out? I'd be interested in hearing those results... > >> >>> Hey, woah, I'm the cloud shootout guy now? ;-) Cool! I have had a small-to-serious look at Azure, Google Compute, Amazon, Rackspace, Heroku, etc. Ther

[web2py] Re: Here's how to run Web2Py on IBM BlueMix

2014-05-09 Thread duncan macneil
; Thank you Duncan, > > this is very valuable. There should be a setup script for this shipping > with web2py. Is there any IBM blog wjere we could advertise it? > > Massimo > > On Tuesday, 6 May 2014 19:29:48 UTC-5, duncan macneil wrote: >> >> Hi all, >> >

[web2py] Re: Here's how to run Web2Py on IBM BlueMix

2014-05-07 Thread duncan macneil
app-running-smoothly? " That's obviously a ridiculous example, but you get the idea. On Thursday, 8 May 2014 03:22:14 UTC+10, Dave S wrote: > > On Tuesday, May 6, 2014 5:29:48 PM UTC-7, duncan macneil wrote: >> >> Hi all, >> >> I've been trying out the

[web2py] Here's how to run Web2Py on IBM BlueMix

2014-05-06 Thread duncan macneil
Hi all, I've been trying out the www.bluemix.net IBM PaaS. It took me a bit of digging to realise there is in fact a Python runtime. But you need a buildpack. The setup is different enough from Heroku to warrant this mini-HowTo: Step 1: Use the source version of Web2Py and copy the entire lo

Re: [web2py] Re: This DAL feature was not obvious to me at first, may help others (avoid overly-complex sql joins)

2014-02-15 Thread Duncan Macneil | Cartesian >< Creative
Okay, good to know. I do have one quite data-intensive, high-demand query, and that is luckily one for which I had put all the joins in the original query. So good to know that was not wasted effort. Would be good to have a convenience option like: db(db.event).select(join_related=True) Which

[web2py] Re: This DAL feature was not obvious to me at first, may help others (avoid overly-complex sql joins)

2014-02-15 Thread duncan macneil
Hi again, Sorry to keep posting here, but I really think this information must be useful as it is to me. Now, you can't just use deep references in the format attribute for a table, so you use a lamda. Something like: format=lambda r: r.schedule.company.name + ': ' + r.schedule.name + ': '

[web2py] Re: This DAL feature was not obvious to me at first, may help others (avoid overly-complex sql joins)

2014-02-15 Thread duncan macneil
Sorry, even more complex: On Saturday, 15 February 2014 21:19:06 UTC+11, duncan macneil wrote: > > > I was jumping through hoops because before even attempting the above, I > was doing: > > db(db.competition_entry.registered_by == db.registrant.id).select() > > > Astu

[web2py] This DAL feature was not obvious to me at first, may help others (avoid overly-complex sql joins)

2014-02-15 Thread duncan macneil
Hi all, So I always knew there was *this *shorthand for getting the field attributes of a 'reference' type field: row.competition_entry.entrant.name What I did not discover until recently is that ALL references can be followed as far as they have been defined. For example: row.competition_ent

[web2py] Re: need a simple wiki...

2012-08-27 Thread duncan macneil
Works well! Just wondering are we keeping the ability to embed template code with the new auth.wiki? It would be handy to be able to {{=include.things}} using nothing more than the wiki form (for advanced users). Or do we always need to use LOAD now or something? The menu makes sense to m

[web2py] Re: IMPORTANT - NEED HELP: more speed improvements to be tested

2012-08-27 Thread duncan macneil
OK, I have downloaded the latest trunk from Git and have imported a simple application: A copy of my site at http://www.ec2scripts.com, which is based on Plugin_Wiki and seems to (mostly) work. On the page which is the equivalent of http://www.ec2scripts.com/welcome/plugin_wiki/page/submit-you