[web2py] 'module' object has no attribute 'startswith'

2015-09-03 Thread Johann Spies
We have an app working with a database on another server through an ssh-tunnel. The app is working. But the admin app which worked previously suddenly throws an error when one try to we tries the "database administration" button - but only for this app. The traceback is this: Traceback (most re

[web2py] pypfdf - how to make text wrap table cells?

2015-09-03 Thread at
Hi, I was trying to use the first sample report from: https://code.google.com/p/pyfpdf/wiki/Web2Py. I modified it a little to fill the data dynamically inside the table, but the long text is not wrapping inside the table cells. I've tried setting different css to address the issue but no luck.

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Niphlod
On Thursday, September 3, 2015 at 7:22:52 AM UTC+2, Carlos Cesar Caballero wrote: > > Hi Niphlod, many thanks for your suggestions, The main problem with > web2pyslices.com is that I can't publish anything and I don't know why, I > mentioned this in other threads. > About the default value in

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Anthony
Actually, there's a bigger problem. In Python, default arguments are evaluated when the function is first defined, so all of your default arguments will be set when the module is first imported. Therefore, all references to the "current" object in the default arguments will be fixed to the valu

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Carlos Cesar Caballero Díaz
Perfect, the code is already fixed, Thanks. El 03/09/15 a las 11:11, Anthony escribió: Actually, there's a bigger problem. In Python, default arguments are evaluated when the function is first defined, so all of your default arguments will be set when the module is first imported. Therefore, a

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Alan Etkin
Sorry, probably your first post was not checked. We should implement some kind of post permission request on the user list since the automated mail for admins at the slices app wont work or was disabled El 03/09/2015 12:11, "Anthony" escribió: > Actually, there's a bigger problem. In Python, de

[web2py] Upload via ajax

2015-09-03 Thread Jose
Hi I want to upload a file via ajax. What I have working for when the file is stored in a folder, the problem and when I want it stored in a blob field. *In upload_picture function I do not know how to put the value of image_blob * The code is as follows ==

Re: [web2py] fabric app

2015-09-03 Thread Carlos Cesar Caballero Díaz
Hi massimo I took it as an exercise, and this is what I make: https://github.com/cccaballero/app_deploy can be used like: python main.py https://github.com/myuser/repo.git username:password@domain:/home/www-data/web2py/applications/estore3 the script make all the stuff locally, so nothing sp

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Alan Etkin
Ooops The web2pyslices site sends the new post notifications, my bad, I was just sending them to some unchecked email folder. 2015-09-03 14:40 GMT-03:00 Alan Etkin : > Sorry, probably your first post was not checked. > > We should implement some kind of post permission request on the user list

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
Nice Carlos, you should had work really hard... Do you know Fabric ( http://www.fabfile.org/)? I guess you had save some boiler plate... :) Richard On Thu, Sep 3, 2015 at 2:21 PM, Carlos Cesar Caballero Díaz < desarro...@spicm.cfg.sld.cu> wrote: > Hi massimo I took it as an exercise, and this

Re: [web2py] Re: simple seo plugin

2015-09-03 Thread Niphlod
so we're good to go ? On Thursday, September 3, 2015 at 8:29:48 PM UTC+2, Alan Etkin wrote: > > Ooops > > The web2pyslices site sends the new post notifications, my bad, I was > just sending them to some unchecked email folder. > > > 2015-09-03 14:40 GMT-03:00 Alan Etkin >: > > Sorry, probably

[web2py] Re: Upload via ajax

2015-09-03 Thread Jose
El jueves, 3 de septiembre de 2015, 14:50:37 (UTC-3), Jose escribió: > > Hi > > I want to upload a file via ajax. What I have working for when the file is > stored in a folder, the problem and when I want it stored in a blob field. > > *In upload_picture function I do not know how to put the val

Re: [web2py] fabric app

2015-09-03 Thread Dave S
On Thursday, September 3, 2015 at 11:50:46 AM UTC-7, Richard wrote: > > Nice Carlos, you should had work really hard... Do you know Fabric ( > http://www.fabfile.org/)? > I didn't know Fabric, and when I googled for it, I got to http://get.fabric.io/?locale=en-us> and I didn't get far enough

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
Fabric is a python tool to manage remote (and local) task without having to manually go in each remote machine to do so. Massimo mention that it his request that the script may be implemented with Fabric... And it of course a good idea to write a fabfile for it... Richard On Thu, Sep 3, 2015 at

[web2py] Re: Web2py-Heroku: Relation "my_table" already exists

2015-09-03 Thread James McGlynn
I am not using get_db. I am just using DAL and retrieving the database connection string from an environment variable. db = DAL(os.environ['DATABASE_URL'], pool_size=10) Even though I am just doing this, my app works fine on Heroku until I add a new table definition to my model file and git pu

Re: [web2py] fabric app

2015-09-03 Thread Dave S
On Thursday, September 3, 2015 at 1:17:51 PM UTC-7, Richard wrote: > > Fabric is a python tool to manage remote (and local) task without having > to manually go in each remote machine to do so. > Got it. > Massimo mention that it his request that the script may be implemented > with Fabric

Re: [web2py] fabric app

2015-09-03 Thread Richard Vézina
If you are developping and deploying web2py app and you not actually using it... You should really consider using it instead of bash script which are painful dependent of your background though... Richard On Thu, Sep 3, 2015 at 4:55 PM, Dave S wrote: > > > On Thursday, September 3, 2015 at 1:17

Re: [web2py] fabric app

2015-09-03 Thread Dave S
On Thursday, September 3, 2015 at 2:03:10 PM UTC-7, Richard wrote: > > If you are developping and deploying web2py app and you not actually using > it... You should really consider using it instead of bash script which are > painful dependent of your background though... > > As I said, I've got

Re: [web2py] fabric app

2015-09-03 Thread Niphlod
Btw, The fabric script is already complete and was sent to massimo... -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because yo