[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C
On Saturday, 10 January 2015 13:15:48 UTC, Paolo Valleri wrote: Hi, I've fixed the error but I've to understand if all common_filters are applied correctly. Do you mind to test https://github.com/ilvalle/web2py/tree/issue-2023 ? Ok, will add some more common filters and get onto testing

Re: [web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Paolo Valleri
I created a PR https://github.com/web2py/web2py/pull/585 Paolo 2015-01-10 17:31 GMT+01:00 Jose C houdinihoun...@gmail.com: Do you mind to test https://github.com/ilvalle/web2py/tree/issue-2023 ? Ok Paolo, it all appears to work as expected now with trunk (2.9.12 beta) - at least with

[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C
Do you mind to test https://github.com/ilvalle/web2py/tree/issue-2023 ? Ok Paolo, it all appears to work as expected now with trunk (2.9.12 beta) - at least with my current system and setup. I also backported your change to my dev version (2.9.5) and it too works. Many thanks for

[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Niphlod
uhmbut record_versioning adds a common_filter per se, and is usually on the form of is_active == True. Did you try to set a different common_filter ? On Saturday, January 10, 2015 at 8:58:21 AM UTC+1, Jose C wrote: Bug reported:

[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Jose C
On Saturday, 10 January 2015 12:20:31 UTC, Niphlod wrote: uhmbut record_versioning adds a common_filter per se, and is usually on the form of is_active == True. Did you try to set a different common_filter ? Yes I tried various, within the table definition and external to it (post

[web2py] Re: Traceback with record versioning enabled and common_filter defined.

2015-01-10 Thread Paolo Valleri
Hi, I've fixed the error but I've to understand if all common_filters are applied correctly. Do you mind to test https://github.com/ilvalle/web2py/tree/issue-2023 ? Paolo On Saturday, January 10, 2015 at 2:01:56 PM UTC+1, Jose C wrote: On Saturday, 10 January 2015 12:20:31 UTC, Niphlod

[web2py] SQLFORM in Nested components

2015-01-10 Thread Richard D
I have a form in nested components created by response.js's Create placeholders per topic for t in topics: url = URL('environment', 'issues_per_topic.load', vars=dict(topic=t.id, mgt_sys=S4)) response.js += $.web2py.component('%s','s4_topic_%s'); % (url, t.id) url =

[web2py] Re: Graphviz web2py not found

2015-01-10 Thread Niphlod
you need to install pygraphviz to have graphs On Saturday, January 10, 2015 at 4:15:32 PM UTC+1, Raphael Viana wrote: Hello everyone, I started very recently in web2py world, but i have a problem. when i use a graph model web2py return for me a error message graphviz library not found

[web2py] [solved] Weird type 'exceptions.AttributeError' 'Row' object has no attribute 'id' and Ñ error

2015-01-10 Thread Carlos Kitu
Hi, just for other developers sake to save some time. I was getting this error: type 'exceptions.AttributeError' 'Row' object has no attribute 'id' Versión web2py™ Version 2.9.11-stable+timestamp.2014.09.15.23.35.11 Traceback (most recent call last): File ./web2py/gluon/restricted.py, line

[web2py] Having trouble accessing db from a Thread executed within a module.

2015-01-10 Thread Michael Sounhein
Currently I am new to programming and I thought Python and web2py would be a good way to learn. But, I am in it over my head when it comes to this problem. I'm getting an error when trying to access a db connection inside a Thread which is contained inside a module. The most pertinent part of

[web2py] How to access a field value from its object?

2015-01-10 Thread Ben Lawrence
I have a table with many different kinds of fields: db.define_table('sounder', Field('part_nr','string',label='Part Number'), Field('current_mA','double',label='Current mA',comment='max current at rated voltage'),

[web2py] Re: Problem using grid after crud

2015-01-10 Thread Konstantin Fadeev
https://lh4.googleusercontent.com/-oiNvwgidljw/VLEEKGeyu4I/C2I/QUCMxdozIxI/s1600/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%2B%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%2B%D0%BE%D1%82%2B2015-01-10%2B13%3A48%3A57.png

[web2py] Launched a web2py beta page

2015-01-10 Thread pollfix . dev
Hi, everybody. There was a thread in this group (originally posted by Massimo, if I'm not mistaken), which compiled a list of the group's users' web2py projects. I can't seem to track down that thread, so I made this one to present http://pollfix.com, a web2py-based page that our little team

[web2py] Re: Not getting expected results from a query

2015-01-10 Thread Greg White
Thanks for the help, got it working. I need to learn some debugging techniques for web2py, but you have pointed me in the right direction for this kind of problem, if anyone has any suggested links it would be appreciated, thanks! On Friday, January 9, 2015 at 1:15:13 AM UTC-7, Niphlod wrote:

[web2py] Graphviz web2py not found

2015-01-10 Thread Raphael Viana
Hello everyone, I started very recently in web2py world, but i have a problem. when i use a graph model web2py return for me a error message graphviz library not found OBS: I'm using a web2py source code, and i set the variable on environment variable system. I use Windows 8.1 pro. --

[web2py] Re: Having trouble accessing db from a Thread executed within a module.

2015-01-10 Thread Massimo Di Pierro
You should not create threads from insider a web applications. Not in web2py. Not in any other web framework. This is because threads are managed by the web server which spawns a new one when an http request arrives and kills them they they are completed or timeout. This logic is outside of

[web2py] Re: cron job not running at all

2015-01-10 Thread Massimo Di Pierro
For something like that you have to use the unix cron. The web2py cron is only for python tasks. Anyway, cron is deprecated now that we have the scheduler. On Wednesday, 7 January 2015 18:51:48 UTC-6, SHAO MIN wrote: Hello there! I'm also having problem with my cron job.Basically i need

[web2py] Re: Having trouble accessing db from a Thread executed within a module.

2015-01-10 Thread Michael Sounhein
Thanks, that's good to know. I'll look into the scheduler. On Saturday, January 10, 2015 at 7:54:39 PM UTC-6, Massimo Di Pierro wrote: You should not create threads from insider a web applications. Not in web2py. Not in any other web framework. This is because threads are managed by the

[web2py] Re: How to access a field value from its object?

2015-01-10 Thread Massimo Di Pierro
In your table each row is a field but which record should this correspond to? given a record you can do record = db.sounder[some_record_id] a_field=[] field_header=TR(TH('Characteristic'),TH('Typical'),TH('Comments')) for f in db.sounder: a_field.append([ f.label ,*

[web2py] Re: In search of CAS 2 provider and consumer example

2015-01-10 Thread Pbop
For what it is worth we have integrated a web2py app to two different external cas providers both in http and https with no problem including ssls with ssl3.0 disabled in favor of tls. Anyone working on a shib sso? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Login to web2py from external script

2015-01-10 Thread Richard Penman
Do you happen to have made a script that can login to web2py? It looks quite complex because have to manage the _formkey and login form uses multipart/form-data instead of application/x-www-form-urlencoded. I have this working solution using mechanize: br = mechanize.Browser()