Re: [web2py] web2py CMS

2014-06-02 Thread Fabiano Almeida
://code.google.com/p/instant-press/ 2014-05-30 17:52 GMT-03:00 Fabiano Almeida fab...@techno7.com.br: Hi Andrey, Do you need a blog? 2014-05-30 11:21 GMT-03:00 Andrey K kmele...@gmail.com: I am interested to add in CMS system for our web2py application. Quick search does not give me any solutions

[web2py] SQLFORM option fields

2014-06-02 Thread Fabiano Almeida
Hi, Can I use fileds option in normal SQLFORM ? How? I tried: form = SQLFORM(Solicitacao, fields=[Solicitacao.almoxarifado_id]) And has error. thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Re: SQLFORM option fields

2014-06-02 Thread Fabiano Almeida
, 2014 5:11:18 PM UTC-4, Fabiano Almeida wrote: Hi, Can I use fileds option in normal SQLFORM ? How? I tried: form = SQLFORM(Solicitacao, fields=[Solicitacao.almoxarifado_id]) And has error. thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: SQLFORM option fields

2014-06-02 Thread Fabiano Almeida
I just discovered the problem, the fields in the attribute fields should be quoted without the table name: form = SQLFORM(Solicitacao, fields=['almoxarifado_id']) Thanks, Fabiano 2014-06-02 20:15 GMT-03:00 Fabiano Almeida fabi...@techno7.com.br: Hi, Showing my code: Solicitacao

Re: [web2py] web2py CMS

2014-05-30 Thread Fabiano Almeida
Hi Andrey, Do you need a blog? 2014-05-30 11:21 GMT-03:00 Andrey K kmelevs...@gmail.com: I am interested to add in CMS system for our web2py application. Quick search does not give me any solutions. Is there any CMS plugin already or any recipes on it? Any thoughts, suggestions, links and

Re: [web2py] Re: How to process form created in view

2014-05-21 Thread Fabiano Almeida
:45 PM UTC+2, Fabiano Almeida wrote: Hi Niphlod My code: *controller:* def index(): return dict() *view:* {{extend 'layout.html'}} h1Relatório Mensal/h1 br/ form name=fFiltro method=post bPeríodo:/bbr/ Data Inicial: input type=date name=dInicial br/ Data Final: input

[web2py] Calculate difference between datetimes

2014-05-21 Thread Fabiano Almeida
Good morning, What is the best method to calculate the time difference between two datetime fields? simple subtraction between the final and initial results on -00-00 00:00:00 Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Calculate difference between datetimes

2014-05-21 Thread Fabiano Almeida
Hi all, I just discovered that the timedelta ... my lack of intimacy with the python still kills me ... Thanks for all, Fabiano. Em quarta-feira, 21 de maio de 2014 10h08min56s UTC-3, Fabiano Almeida escreveu: Good morning, What is the best method to calculate the time difference between

[web2py] How to process form created in view

2014-05-20 Thread Fabiano Almeida
Hi all, I created directly in view of a form for report filtering options. How do I handle controler in the form after submit? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: How to process form created in view

2014-05-20 Thread Fabiano Almeida
20, 2014 9:08:32 PM UTC+2, Fabiano Almeida wrote: Hi all, I created directly in view of a form for report filtering options. How do I handle controler in the form after submit? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http

[web2py] SQLFORM.factory - other types of field

2014-05-20 Thread Fabiano Almeida
Good night, When building a custom form with SQLFORM, how do I specify the type of field to be displayed (eg date, time, number, etc.). Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: SQLFORM.factory - other types of field

2014-05-20 Thread Fabiano Almeida
Understood. Thank you!!! Fabiano. Em terça-feira, 20 de maio de 2014 20h49min05s UTC-3, 黄祥 escreveu: please read dal chapter about field constructor. taken from the book about SQLFORM.factory : The Field object in the SQLFORM.factory() constructor is fully documented in the DAL

[web2py] Menu for anonymous and logged

2014-05-19 Thread Fabiano Almeida
Hi all! It's possible make differ menu for groups or logged users in models/menu.py ? How? Thanks, Fabiano. -- 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

Re: [web2py] Re: Menu for anonymous and logged

2014-05-19 Thread Fabiano Almeida
Cool Anthony! Thanks!!! Fabiano. 2014-05-19 20:43 GMT-03:00 Anthony abasta...@gmail.com: Sure: if auth.user: [custom menu or append/insert into standard menu] if auth.has_membership('some_group'): [same idea here] Anthony On Monday, May 19, 2014 6:29:42 PM UTC-4, Fabiano

[web2py] How do I filter relationship in SQLForm?

2014-05-13 Thread Fabiano Almeida
Hi all! I have this relationship: db.define_table('tipos', Field('descricao')) db.define_table('user_ponto', Field('user_id',db.auth_user, notnull=True, default=me, readable=False, writable=False), Field('dia','datetime', default=request.now,

Re: [web2py] Re: How to hide buttons from form

2014-04-24 Thread Fabiano Almeida
Thanks!! Fabiano. 2014-04-24 0:17 GMT-03:00 Massimo Di Pierro massimo.dipie...@gmail.com: You only have the buttons because you did not create a view for the action. On Wednesday, 23 April 2014 14:22:20 UTC-5, Fabiano Almeida wrote: Hi, How to hide buttons from form

[web2py] master detail form

2014-04-24 Thread Fabiano Almeida
Hi, I'm trying to do a master detail form. It is possible that the details form is grid style? How? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] How to hide buttons from form

2014-04-23 Thread Fabiano Almeida
Hi, How to hide buttons from form? designrequestresponsesessiondb tablesdb stats Thanks, Fabiano -- 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

[web2py] Form Master detail

2014-04-23 Thread Fabiano Almeida
Hi, I'm trying to do a master detail form. It is possible that the details form is grid style? How? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

<    1   2