[web2py] Re: deployment error

2014-04-15 Thread Richard
The issue was an admin app from an older version. The site on Justhost.com is running again. I am using the cgihandler.py. BUT: imported apps do not run and give the error [an error occurred while processing this directive] I tried both : installing the w2p file and copying the application as

[web2py] Re: deployment error

2014-04-15 Thread LightDot
Hmm, no... for example, on our servers, setting file permissions of a CGI script to 777 will prevent it from working as a security measure. So, file ownership or permissions are still first things that come to mind. Create a new app from scratch (as you say, this works) and upload/extract a zip

Re: [web2py] use executesql results in grid

2014-04-15 Thread Niphlod
yep but valid only for read-only grid. You need a unique integer value to use the grid for editing purposes > >> > What I do is to either create a database view or a table containing the > result and then in the controller define a model with 'migrate = False' to > read the view/table and then

Re: [web2py] Re: Brazilian web2py users, what system do you use to receive credit card payments?

2014-04-15 Thread Carlos Costa
Pagseguro, for sure is the most used here in Brazil. It belongs to UOL, it has a lot of advertising on TV. Its the best know and trusted. Another options are: -mercado pago -bcash -moip -braspag -f2b -paypal Brasil I tried to sort them in an order of popularity. 2014-04-11 23:54 GMT-03:00 samue

[web2py] Re: deployment error

2014-04-15 Thread Richard
It has to do with the controller or starting the view. Because when I delete default/index.html the error is still there, when I delete contrller/default.py then the app comes witht the error that no controller exists. When I make a python error in the cotroller the app reports a tickets, that

[web2py] Re: Online Manual: Chapter 9: Access Control - Formatting/content issues?

2014-04-15 Thread Tim Richardson
On Monday, 14 April 2014 22:05:44 UTC+10, Seeker wrote: > > Hi Tim, > > Any idea how long it will take for caches to clear? The problem still > persists :-| > > > It's ok now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Re: deployment error

2014-04-15 Thread Richard
SOLVED :) The print statements in the controller appear to be deadly and causing the error [an error occurred while processing this directive]. Thanks for the support ! On Tuesday, April 15, 2014 1:56:09 PM UTC+2, Richard wrote: > It has to do with the controller or starting the view. Be

Re: [web2py] Re: Change the download text from "file" to something else?

2014-04-15 Thread António Ramos
I tried the translation string but it doesn´t change the text in the web page. [image: Imagem inline 1] Regards António 2014-04-11 20:48 GMT+01:00 Niphlod : > make your own widget or act on the default translation of the string > > 'file ## download' > > hint: anything after ## is to be treated

[web2py] Issue 1865 code sample as requested

2014-04-15 Thread Remco Boerma
Hi, I've finally had the time to play a little with the code sample that was requested on issue 1865. It's in the comment there. https://code.google.com/p/web2py/issues/detail?id=1865 -- Cheers / Met vr. gr. Remco Boerma -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

Re: [web2py] Re: Change the download text from "file" to something else?

2014-04-15 Thread Niphlod
you need to translate the entire *file ## download *. my "everthing after ## is to be treated as comment" means that if you put something after ## in the translation, it won't pop up. On Tuesday, April 15, 2014 2:45:56 PM UTC+2, Ramos wrote: > > I tried the translation string but it doesn´t chan

Re: [web2py] possible issue (read bug) with web2py controllers parser

2014-04-15 Thread Richard Vézina
Done! https://code.google.com/p/web2py/issues/detail?id=1923 Thanks Richard On Tue, Apr 15, 2014 at 12:40 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Please open a ticket about this. I see the problem. > > > On Monday, 14 April 2014 14:45:07 UTC-5, Richard wrote: >> >> Hello,

Re: [web2py] Re: Change the download text from "file" to something else?

2014-04-15 Thread António Ramos
2014-04-15 14:24 GMT+01:00 Niphlod : > 'file ## download' > You lost me where do i find the string "'file ## download' ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Rep

Re: [web2py] Problem with rname?

2014-04-15 Thread Richard Vézina
Hello Johann, Do you get any advice? I am in the process to test the rname feature and I don't find much information, it's seems highly experimental and undocumented... Except maybe this : https://groups.google.com/d/msg/web2py/_q5qcARON4E/6JLCHM3eQHAJ Richard On Tue, Apr 1, 2014 at 4:41 AM

Re: [web2py] Problem with rname?

2014-04-15 Thread Richard Vézina
I am not sure what rname does... Does it do, what it means, so it should contains the real name of the backend table name for instance or the reverse... I make a test with one of my model, adding rname to the model for the table name and one of the table field and try to make a query and look at

Re: [web2py] Problem with rname?

2014-04-15 Thread Richard Vézina
This is exactly what happen... Let say I have a table like this one in Postgres : # Postgres CREATE TABLE address ( id serial NOT NULL, door_number character varying, street character varying, city_id integer, CONSTRAINT address_pkey PRIMARY KEY (id ) ) WITH ( OIDS=FALSE ); ALTER TAB

Re: [web2py] autodelete(?) on computed field

2014-04-15 Thread Marin Pranjić
Ok, I'll just code it by myself. I was hoping there is better solution. Marin On Mon, Apr 14, 2014 at 11:49 AM, Marin Pranjić wrote: > db.define_table(..., > Field('image', 'upload', autodelete=True), > Field('thumbnail', 'upload', autodelete=True, compute=create_thumbnail), > ...) > > Thi

[web2py] AYUDA como ajustar la resolucion de la pagina de web segun el navegador ?

2014-04-15 Thread Mayra Marticorena
hola buen dia , como andan ? estoy teniendo problemas de resolucion en mi pagina de web , http://www.distribuidorahenry.com.ar/welcome/default/index , si entro en la pc que he utilize para armar esta misma , se ve claramente , sin embargo cuando entro con otra pc se ve mal , saltos de pagina e

[web2py] a private auth.wiki()

2014-04-15 Thread Ben Lawrence
Hi I would really appreciate more information on the in-built wiki. I read what there is in the book and would like to know how to implement a private wiki with only @auth.requires_login() users allowed. (I tried implementing manage_permissions but only got two extra fields in the create page f

Re: [web2py] Nginx/passenger/web2py -> 504 Gateway Timeout?

2014-04-15 Thread Krzysztof Socha
Thanks... But I kinda cannot... The hosting I am using is providing nginx + phusion passenger... and it works with a simple script, as I have shown. Unfortunately, it looks like the web2py handler never returns anything and the request time-outs... I do not even know where to look to understand

[web2py] Import of a package

2014-04-15 Thread Beat Kohler
I installed a package (not a single module) with easy_install. The installation works fine with Python (2.7). The package can be imported and used without any problems. Inside web2py the import failed: "cannot import module". As a workaround I placed the package folder in the "site-packages" fold

[web2py] re: download hidden field in a grid

2014-04-15 Thread Girolamo Giudice
Hi all, i'm a new user of web2py My question is "simple" (maybe) In my app I display a grid with two hidden fields. Is there any method to export the grid including the hidden fields? Thank you Girolamo -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

Re: [web2py] Nginx/passenger/web2py -> 504 Gateway Timeout?

2014-04-15 Thread Richard Vézina
I make it works with Phusion long time ago, and then get convinced after reading a blog post that this were a bad idea, since at that time phusion was not following the same rule as other linux in matter of service managment, so I resign. I remember having read and work hard, since there were no si

[web2py] Current date/time for datetime field (time is wrong)

2014-04-15 Thread LoveWeb2py
Hello, I love the calendar that pops up in the 'datetime' field with a time/date selector. However, when my customers use it their time is always off. Is there a way to prepopulate the field with the current time, or make a button for them to click which will take their local system time? --

Re: [web2py] Current date/time for datetime field (time is wrong)

2014-04-15 Thread Marco Mansilla
El Tue, 15 Apr 2014 10:13:26 -0700 (PDT) LoveWeb2py escribió: > Hello, > > I love the calendar that pops up in the 'datetime' field with a > time/date selector. However, when my customers use it their time is > always off. Is there a way to prepopulate the field with the current > time, or make

Re: [web2py] Current date/time for datetime field (time is wrong)

2014-04-15 Thread Austin Taylor
Perfect. Thank you! On Tue, Apr 15, 2014 at 1:04 PM, Marco Mansilla wrote: > El Tue, 15 Apr 2014 10:13:26 -0700 (PDT) > LoveWeb2py escribió: > > > Hello, > > > > I love the calendar that pops up in the 'datetime' field with a > > time/date selector. However, when my customers use it their time

[web2py] experimental rname feature documentation compendium

2014-04-15 Thread Richard
Hello, I was trying the rname feature and I had to find those ressources, so I thought it could be nice to aggregate them : What rname is : https://groups.google.com/d/msg/web2py/_q5qcARON4E/6JLCHM3eQHAJ Precision on how to use it : https://groups.google.com/d/msg/web2py/Z8O-h2lyVKk/XINO2f3Y5U

Re: [web2py] AYUDA como ajustar la resolucion de la pagina de web segun el navegador ?

2014-04-15 Thread Carlos Costa
Mayra, esto es lo grupo web2py en ingles. Por favor, reecriba tu question en ingles para que qualquier uno pueda compreenderla. Asi tenes mas chances de ser respondida. Mayra, this is the web2py group in english. Please, rewrite your question in english so anyone can understand it. So you more cha

Re: [web2py] Problem with rname?

2014-04-15 Thread Johann Spies
Hallo Richard, I use rname to be able to make use of Postgresqll schemas. e.g. rname = '"level1"."journal"' In this case when migrate is true, DAL will create a table 'journal' in the schema 'level1' . And that is working as expected. My problem as stated above is only when I then make change

[web2py] Re: Online Manual: Chapter 9: Access Control - Formatting/content issues?

2014-04-15 Thread Seeker
Thanks lots Tim. On Tuesday, 15 April 2014 14:24:25 UTC+2, Tim Richardson wrote: > > > > On Monday, 14 April 2014 22:05:44 UTC+10, Seeker wrote: >> >> Hi Tim, >> >> Any idea how long it will take for caches to clear? The problem still >> persists :-| >> >> >> It's ok now. > -- Resources: - ht