[web2py] Re: additional software to run postgreSQL/postGIS on web2py

2015-11-15 Thread Leonardo Pires Felix
In the case of PostgreSQL, you only need the PostgreSQL database installed and running, as described in Detailed installation guides[PostgreSQL] . Em domingo, 15 de novembro de 2015 08:57:34 UTC-2, Pierre escreveu: > > Hi all, > > I

[web2py] Strange error on scheduler

2015-09-20 Thread Leonardo Pires Felix
starting scheduler from widget for "gie"... Currently running 1 scheduler processes Processes started Traceback (most recent call last): File "/home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/shell.py", line 271, in run exec(python_code, _env) File "", line 1, in File "/home/leonard

[web2py] How accept latin letters on args

2015-08-29 Thread Leonardo Pires Felix
Hi guys, I'm doing a little CMS for my application, My application can have some posts, so every post should be in a url like this /application/cms/post/{arg0:postid}/{arg1:the title of the post). The title of the post i'll not use it, it's just for a more friendly url. But if the title has non

[web2py] btn_group on smartgrid

2015-07-18 Thread Leonardo Pires Felix
There is how implement the btn_group (see bootstrap btn-group ) with the linked tables on smartgrid? I've a couple of linked tables,the grid is to big because of the linked tables to see details of the row. I think a btn-group will make more good l

[web2py] Widget on read operations

2015-07-12 Thread Leonardo Pires Felix
Hi, there is a way to implement widgets for read operations? I have a field that hold a hex color, so on grid, it would show the color, not the hex value (#FF). I can use the represent to make what i want, but if i use a export like csv, on the content will have the html i used to give the c

[web2py] Re: JSON and url vars

2015-07-07 Thread Leonardo Pires Felix
This is not a recomended approach. Sending such variables on URL you may run out of space, see here . And those variables will be cached on user browser, giving space for security breaches. And exposing those variables to the user you may run with some un

[web2py] Re: ascii codec can't decode byte

2015-07-07 Thread Leonardo Pires Felix
Use psycopg2 as database driver, just install it and restart your application. pg8000 has a problem with coding. Em terça-feira, 7 de julho de 2015 18:40:55 UTC-3, icodk escreveu: > > I have a small web2py site that works fine when runs on a Windows 7 > machine. > I move it to a linux machine,a

[web2py] Re: allow multiple extensions on upload

2015-07-07 Thread Leonardo Pires Felix
The validator IS_UPLOAD_FILENAME does what you want. Just add the regex that check if the extension is the one you want. requires = IS_UPLOAD_FILENAME(filename='^README$', extension='^(py|java|c)$', case=0) Em terça-feira, 7 de julho de 2015 18:40:55 UTC-3, reddyreddy escreveu: > > Hello, > >

[web2py] Re: Solve enconding on diferent server

2015-05-05 Thread Leonardo Pires Felix
I think that the problem was that... I've installed psycopg2 and it dependencies. And worked as expected. pg8000 has limitation/bug about this? Em quinta-feira, 30 de abril de 2015 22:39:59 UTC-3, Leonardo Pires Felix escreveu: > > Hi everyone. > i have a server that u

[web2py] Re: Solve enconding on diferent server

2015-05-05 Thread Leonardo Pires Felix
I can read the accents letters that from the database and they display normal. But if i try to update or insert letter with accent it gives that unicodeerror Em segunda-feira, 4 de maio de 2015 12:56:36 UTC-3, Tom Stratton escreveu: > > Hi - > > I've had several unicode issues pop up with postg

[web2py] Solve enconding on diferent server

2015-04-30 Thread Leonardo Pires Felix
Hi everyone. i have a server that used for all my applications. I can save any word on sqlform, "João", "josé", any word with accent. But one of my clients needed that the server would be hosted on their depedencies. So i coppied the folder of my application, and made a dump of database. Downlo

[web2py] Re: sub sub menu in newest version

2015-04-26 Thread Leonardo Pires Felix
Nested menus are not implemented in bootstrap 3. What you could do is add this piece of code to your layout.html < style> .dropdown-submenu{position:relative;} .dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-

[web2py] put table._format as default for referenced fields

2015-04-25 Thread Leonardo Pires Felix
Hi, There is a better way to put the table format attribute in each referenced field that has not a label specified? My application has now 183 tables so far, and puting one by one is kind of boring. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: Belongs not working

2015-03-29 Thread Leonardo Pires Felix
I think i misunderstood then. Em domingo, 29 de março de 2015 01:15:01 UTC-3, Anthony escreveu: > > Yes, but you are doing the opposite here. You are not checking whether a > field value belongs to a list - you are checking whether a list stored in a > field contains a particular value. The book

[web2py] Re: Belongs not working

2015-03-28 Thread Leonardo Pires Felix
g whether a single value is in a list > stored in a database field). > > Anthony > > On Saturday, March 28, 2015 at 12:26:55 PM UTC-4, Leonardo Pires Felix > wrote: >> >> Looks like that the belongs function to the "list:" has changed to >> the "contai

[web2py] Re: Belongs not working

2015-03-28 Thread Leonardo Pires Felix
> Can you please try the "for testers" version on the web site? Can you > provide a simpler example to reproduce the problem? > > On Saturday, 28 March 2015 10:43:56 UTC-5, Leonardo Pires Felix wrote: >> >> Hi, >> I think on last update the belongs stoped working. &g

[web2py] Re: Belongs not working

2015-03-28 Thread Leonardo Pires Felix
Looks like that the belongs function to the "list:" has changed to the "contains", that's correct? Em sábado, 28 de março de 2015 12:43:56 UTC-3, Leonardo Pires Felix escreveu: > > Hi, > I think on last update the belongs stoped working. > I

[web2py] Belongs not working

2015-03-28 Thread Leonardo Pires Felix
Hi, I think on last update the belongs stoped working. I've a table that is defined like this: db.define_table("regra_entrada", Field("descricao", notnull=True, represent=nome, requires=[ IS_NOT_EMPTY(), IS_UPPER()]), Field("data_inicial", "date", widget=SQLFORM.widg

[web2py] Re: Return object from represent method of field

2015-02-21 Thread Leonardo Pires Felix
I think, like the represented of the widget of the field. But i've seen it just works with upload. If extend it to allow to other types to represent with custom html(like a tooltip in my case) Em sábado, 21 de fevereiro de 2015 15:06:13 UTC-2, Leonardo Pires Felix escreveu: > > T

[web2py] Re: Return object from represent method of field

2015-02-21 Thread Leonardo Pires Felix
02:20 UTC-2, Massimo Di Pierro escreveu: > > I just fixed this in trunk and I will rebuilding the new nightly built, > try in 1h. > > On Monday, 16 February 2015 21:08:31 UTC-6, Leonardo Pires Felix wrote: >> >> Hi, when i return a XML from the represent, it gives me a e

[web2py] Re: IMPORTANT - WEB2PY CONSULTING

2015-02-20 Thread Leonardo Pires Felix
Hello, Please add us: Corporate name: Leonardo Pires Felix - ME Trade name: LPFX website: http://lpfx.com.br Web2py about in http://lpfx.com.br/software, where we tell about the software that we use. Em domingo, 15 de fevereiro de 2015 20:21:36 UTC-2, Massimo Di Pierro escreveu: > > W

[web2py] Re: Return object from represent method of field

2015-02-17 Thread Leonardo Pires Felix
t; I just fixed this in trunk and I will rebuilding the new nightly built, > try in 1h. > > On Monday, 16 February 2015 21:08:31 UTC-6, Leonardo Pires Felix wrote: >> >> Hi, when i return a XML from the represent, it gives me a error. >> Traceback >> >> 1.

[web2py] Return object from represent method of field

2015-02-16 Thread Leonardo Pires Felix
Hi, when i return a XML from the represent, it gives me a error. Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Traceback (most recent call last): File "/home/leonardo/PycharmProjects/lpfx_gie/web2py/gluon/restricted.py", line 224, in restricted exec ccode in envi

[web2py] Export limit

2014-07-31 Thread Leonardo Pires Felix
There is a clever way to limit the number of rows passed to exporter class? The easy way i see is in limiting on the query, but on that way the user will cannot search on the rows that isn't included on the search. There is a way to only limit the export? -- Resources: - http://web2py.com - http

[web2py] Virtual Field not working anymore?

2014-05-03 Thread Leonardo Pires Felix
I've created a virtualfield on my table as this: db.define_table("alunos", SQLField("nome", "string", length=255, label="Nome", notnull=True, requires=IS_UPPER()) SQLField("data_nascimento", "date", label="Data de nascimento",represent=campoDataNascimento, notnull=True), SQLFie

[web2py] ExportClasses on grid

2014-03-16 Thread Leonardo Pires Felix
Hi, There is how change the default exportclasses on web2py without modify in the code of web2py, and without expliciting it in all my grids? I didn't found anything. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - http

[web2py] Re: current trunk using memdb results in crash

2014-03-07 Thread Leonardo Pires Felix
Looks like that this is happening with the REDIS too, Upgraded from 2.8.3 to 2.9.4 And the error persist. Traceback (most recent call last): File "/home/leonardo/domains/cef03.com/arquivos/web2py/gluon/restricted.py", line 217, in restricted exec ccode in environment File "/home/leonard

[web2py] Get label of field

2014-01-11 Thread Leonardo Pires Felix
I'm tryng to make the export classes export with fieldlabel instead of dbname.field. So i'm seeing that should be here where i should change: writer.writerow( [unicode(col).encode ("utf8") for col in self.rows

[web2py] Label as column name on export grid

2013-12-18 Thread Leonardo Pires Felix
Hi, there is how export the grid with the label of the field? Or do i need to do a workaround? Since on tsv that uses represent and all on the export, it doesn't use the labels as export way. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/w

[web2py] Re: Globals.py Bad Request

2013-11-29 Thread Leonardo Pires Felix
unos.nome_responsavel,db. > alunos.serie_turma] > form = SQLFORM.grid(db.alunos,fields=campos,deletable=False,orderby= > "alunos.nome") > return dict(form=form) > > I am not sure whether this is causing your problem. Something else may be > going on. > >

[web2py] Globals.py Bad Request

2013-11-28 Thread Leonardo Pires Felix
Sorry for my english. Hi there, i've this simple sqlform.grid: @auth.requires_membership("secretaria") def turmas(): campos = [db.alunos.id,db.alunos.nome,db.alunos.nome_responsavel,db. alunos.serie_turma] form = SQLFORM.grid(db.alunos,fields=campos,deletable=False,orderby= "alunos.nome")

[web2py] Re: admin page is not working in web2py 2.7.4

2013-10-18 Thread Leonardo Pires Felix
Same thing here, even with the new alias and restarting apache the admin doesn't look as it should be. Em quinta-feira, 17 de outubro de 2013 21h01min50s UTC-3, frasse escreveu: > > I have restart my apache. The only change I have in my web2py configration > is in routes.py and it is like this >

[web2py] Re: Date search on sqlform.grid not working

2013-08-17 Thread Leonardo Pires Felix
I've found something, when i do the search using the date picker, it returns me in the format of the translation file("%d/%m/%Y"), but when use like this to do the search, it returns nothing or something not expected. But if i mannually change the format from the search on the sqlform.grid to "

[web2py] Date search on sqlform.grid not working

2013-08-17 Thread Leonardo Pires Felix
Hi, I'm trying to do a search by date with sqlform.grid. But it is not returning the right date. There is a picture on attachment of the issue. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiv

[web2py] Header for selectable

2013-08-15 Thread Leonardo Pires Felix
How put a header on selectable column on SQLFORM.grid? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more option