[web2py] auth.requires_login

2015-11-30 Thread Anthony Smith
Hi all I know auth.requires_login can be used, also auth.requires_has membership. If I want to query the records created by a group can this be done. I want to be able to have certain groups to be only able to query certain record of the same table. Cheers Anthony -- Resources: - http:/

[web2py] Export grid in pdf

2015-11-30 Thread Alessio Varalta
Hi, I have a question about export pdf a Sqlform Grid. For me generate the pdf is not a problem I can use wkhtmltopdf, but I see that you can export the grid in csv format, html format ecc...Because not in pdf? I think is useful to create in the framework default function for this operation, I

Re: [web2py] Re: Internationalization and Unicode

2015-11-30 Thread Richard Vézina
Français : http://sametmax.com/lencoding-en-python-une-bonne-fois-pour-toute/ :) I am not sure that what you say is correct... Did you try to look at these hardcoded code into the browser? Also, if you need to use the magic T(), it makes no sens to have different language code into the applicatio

[web2py] Re: auth.requires_login

2015-11-30 Thread Anthony
Are you saying you want to limit the query to records created by members of a specific auth_group? Assuming you have stored the auth_user IDs in something like a "created_by" field, you could do: group_members = db(db.auth_membership.group_id == auth.id_group('my role'))._sele

[web2py] record versioning

2015-11-30 Thread Fabiano Almeida
Hi All! I need create a report with record versioning. How to union table with table_archive? Thanks! -- 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) --- Yo

Re: [web2py] Source control versioning and migrations

2015-11-30 Thread Dave S
My notes below: On Friday, November 27, 2015 at 11:35:44 AM UTC-8, Antonio Salazar wrote: > > My projects are small enough that I can consider switching from migrated > to legacy databases. I feared I was overlooking something, but it really > seems like migrations, in some cases, will just shif

[web2py] how to make links conditional in grid

2015-11-30 Thread Alex Glaros
what is syntax for making links conditional in grid? I only want links to appear if db.auth_membership.is_active == True links = [dict(header='Cancel connection', body=lambda row: A('Withdraw my invitation', _href=URL('delete_connection_request_i_sent', args=row.auth_membership.id, if is

[web2py] Re: how to make links conditional in grid

2015-11-30 Thread 黄祥
please try : if db.auth_membership.is_active == True: links = [...] else: links = None best regards, stifan -- 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) --

[web2py] Re: form validation using onvalidation and form.validate for boolean data type

2015-11-30 Thread 黄祥
the error traceback is say about the field customer is empty, so i encountered it with IS_EMPTY_OR(IS_IN_DB() ) form validation. but it's not the main problem, the main problem is when using form.validate() it seems that boolean field type always return false answer even i already tick mark the

[web2py] Future of web2py

2015-11-30 Thread Márcio Almeida
Hi guys, I develop systems with web2py for some time but nothing too big. I love the web2py but I am worried about the future. I am beginning to develop a large system for an miltinacional corporation. Web2py will continue to be maintained for a long time? Maintaining compatibility? There will be i

[web2py] welcome app gui not working in firefox

2015-11-30 Thread Wolf-Dieter Klotz
is web2py not correctly working on firefox anymore? the welcome app guy is not usable in firefox 42.0 on OS X El Capitan. works however well on Safari. anyone out there who has same problem and a solution? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Defining stored procedures

2015-11-30 Thread Hector Chacon
Yarin Hello, good afternoon, I take your question to answer in general terms as used in web2py Procedures. 1- sure that the database engine you use supports stored procedures (ex: mysql, postgresql, Sybase, Oracle, etc). 2- must create the procedure in the database using the SQL client that corr

[web2py] How to use fancytree?

2015-11-30 Thread Henk huisman
Fancytree looks to me as a nice javascript library to generate trees ( https://github.com/mar10/fancytree/wiki). Unfortunatily I don't get it to work in Web2py. I just installed the libraries etc and copied some code from the examples websites, but the function fancytree doesnothing. This is

[web2py] how to stop asynchronous process in python called with ajax ?

2015-11-30 Thread Jonathan Hernandez
I have a request that takes about 25 seconds to complete, and I want to stop it when a user clicks on a link. By now i'm able to stop the ajax request but i can't figure out how to stop the python process. How can I do this? I'm very lose with this problem. Regards. -- Resources: - http:/

[web2py] Re: record versioning

2015-11-30 Thread Massimo Di Pierro
Not sure I understand, why union (join?)? is this because the last record is not the archive table? On Monday, 30 November 2015 11:31:46 UTC-6, Fabiano Almeida wrote: > > Hi All! > > I need create a report with record versioning. How to union table with > table_archive? > > Thanks! > -- Resour

[web2py] Re: Future of web2py

2015-11-30 Thread Massimo Di Pierro
The answer is yes to all of the questions. If you monitor the activity you will notice the number of contributions and contributors has increased over time. Web2py will continue to grow and be maintained, many of us have invested significatively in it and it will remain backward compatible, but

[web2py] Re: welcome app gui not working in firefox

2015-11-30 Thread Massimo Di Pierro
What do it mean "not working", can you give us more info? On Monday, 30 November 2015 23:02:59 UTC-6, Wolf-Dieter Klotz wrote: > > is web2py not correctly working on firefox anymore? the welcome app guy is > not usable in firefox 42.0 on OS X El Capitan. works however well on > Safari. anyone ou

Re: [web2py] How to use fancytree?

2015-11-30 Thread Johann Spies
On 1 December 2015 at 04:08, Henk huisman wrote: > > This is the code I tried: > > > "text/javascript"> >

[web2py] Re: auth.requires_login

2015-11-30 Thread Anthony Smith
Hi Anthony, Thanks ,but I am getting the following error, IndexError: list index out of range group_members = db(db.auth_membership.group_id == auth.id_group('user'))._select(db.auth_membership.user_id) @auth.requires_login() def companys(): db.company.created_on.readable = True