[web2py] Re: MySQL will never migrate this way (not alter table problem)

2014-08-22 Thread Diogo Munaro
Summary: We can't make some database migrates on MySQL because we can't DROP column with foreign key. Suggestions? Em segunda-feira, 18 de agosto de 2014 09h46min49s UTC-3, Diogo Munaro escreveu: > > Hey guys, I'm trying to do CI (continuous integration) on web2py > application. > > I really ne

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-22 Thread Dave S
On Tuesday, August 12, 2014 10:16:33 AM UTC-7, Dave S wrote: > > > > On Monday, August 11, 2014 10:24:37 PM UTC-7, Massimo Di Pierro wrote: >> >> http://www.meetup.com/OWASP-OC/ >> >> Are you nearby? >> > > Yep, that Orange County. > > And well worth having pizza and beer pushed at me! Thanks ag

[web2py] Re: How to import MySQL database of web2py app in pythonanywhrere

2014-08-22 Thread Richard
Sorry but I just did the same and I needed to mention the db name: change DAL connection string in app to: db = DAL('mysql://user_name:password@mysql.server/database_name') [for pythonanywhere, the database_name is in the form user_

[web2py] Re: putting in a custom render function with T.M()

2014-08-22 Thread Calvin
Hi Massimo Here's an example: T.M("hello ``you``:custom", extra=dict(custom=lambda x: SPAN(x, _style= "font-size:0.8em"))) which throws *** TypeError: M() got an unexpected keyword argument 'extra' Calvin -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://git

[web2py] Re: I don't have a gluon forder in my web2py folder

2014-08-22 Thread Niphlod
you don't need anything. The binary is a compiled executable that happens to use library.zip. As you already tested, even with the missing gluon folder everything works fine, that is precisely the point of having a binary. If instead you have python installed and you want to play with additional

[web2py] Re: Scheduler task finishes but row not marked COMPLETED

2014-08-22 Thread Niphlod
ok, so it's definitely getting "hanged" between your "custom logging" (that you say it's just before the return at the end of your task) and updating the result + the status of the task. Are you by any chance using lots of print statements in your task ? If you're using popen2 (that anyway is NO

[web2py] Re: How to import MySQL database of web2py app in pythonanywhrere

2014-08-22 Thread Oli
create a database on pythonanywhere for excample: Database host adress : mysql.server Username : yourusername Database Name : db1 Password : yourpassword then go to your database modell db.py and change the default from: db = DAL('sqlite://storage.sql

[web2py] Re: Homemade tasks and model execution in subfolders of the model folder

2014-08-22 Thread Anthony
By default, model files in subfolders are only run when the subfolder name matches request.controller and/or request.function. If you want different behavior, you have to explicitly set response.models_to_run. Please see the documentation: http://web2py.com/books/default/chapter/29/04/the-core#

[web2py] Homemade tasks and model execution in subfolders of the model folder

2014-08-22 Thread Antonis Loumiotis
Hi, When I try to run a homemade task models defined in subfolders of the application model folder are not executed. Only models defined directly in the model folder are executed. Is this a bug or is this the normal behavior for homemade task? I'm using Web2py Version 2.9.5-stable+timestamp.

[web2py] Re: I don't have a gluon forder in my web2py folder

2014-08-22 Thread Joe
Hi Niphlod, thanks very much for your reply. In this case, should I unzipp and open the zipped library folder that contains the gluon folder and many other folders or I don't need to open that folder in the web2py directory? On Friday, August 22, 2014 3:03:05 PM UTC+8, Niphlod wrote: > > yu're

[web2py] Re: bootstrap 3 - if you care help test trunk now

2014-08-22 Thread Miquel Fontanals
Hi Massimo, Nice, now it works without any workarounds :) However about point 1, when I set db.child.parent.writable=False : -- bootstrap3_inline - the value misses the class .form-control-static to vertical align the value with his label -- bootstrap3_stacked - the html output is "Label: Val

[web2py] How to import MySQL database of web2py app in pythonanywhrere

2014-08-22 Thread Nitin Shrivastav
I want to host my web2py application on python anywhere with MySQL database on my domain.how to import MySQL database ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Repor

[web2py] Re: Scheduler task finishes but row not marked COMPLETED

2014-08-22 Thread Stephen Weiss
Niphlod, The following is the output from start of scheduler to the point where I Ctrl-C'd it, with the task run in the middle Here's the process output during the run... [root@centos-63 ~]# ps -ef | grep web root 7585 7521 0 05:34 pts/000:00:00 python web2py.py -K APITool2 -D 0 root

[web2py] Re: Requirements per application

2014-08-22 Thread Kuba Kozłowicz
I know I can put app-specific modules into application//modules. This is not what I meant. I mean I want a different python interpreter per each app - is that possible? Because one of them will have installed library in version X and the other one will have installed the same libary, but in ver

[web2py] Re: I don't have a gluon forder in my web2py folder

2014-08-22 Thread Niphlod
yu're using the binary. not the source code On Thursday, August 21, 2014 4:11:34 PM UTC+2, Joe wrote: > > I am using windows and when I downloaded web2py I unzipped it and I have > been using it, it works fine, however, I noticed that between the extras > folder and the handlers folder the g

[web2py] Re: Scheduler task finishes but row not marked COMPLETED

2014-08-22 Thread Niphlod
Given the weirdness, I'd still want to see the entire thing with the DEBUG level. On Thursday, August 21, 2014 8:36:44 PM UTC+2, Stephen Weiss wrote: > > > Yes, those messages appear far back in the logs, which I didn't include. > > I only included a snapshot of the debug output at the end of the