[web2py] Re: Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-08 Thread Francisco Ribeiro
just one worker... > > On Monday, May 7, 2018 at 8:13:02 PM UTC+2, Francisco Ribeiro wrote: >> >> I have been testing my own hypothesis, it didn't work. I was unable to >> assign a task to a specific worker, I can only assign tasks to groups. >> Please correct me if I

[web2py] Re: Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-07 Thread Francisco Ribeiro
I have been testing my own hypothesis, it didn't work. I was unable to assign a task to a specific worker, I can only assign tasks to groups. Please correct me if I am wrong... On Sunday, 6 May 2018 16:16:08 UTC+1, Francisco Ribeiro wrote: > > Thank you for confirming. > > I pr

[web2py] Re: Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-06 Thread Francisco Ribeiro
see any problem doing that? On Sunday, 6 May 2018 04:16:53 UTC+1, Massimo Di Pierro wrote: > > No. I do not believe there is any way to guarantee that every work will > execute the same task. > > > On Friday, 4 May 2018 17:36:30 UTC-5, Francisco Ribeiro wrote: >>

[web2py] Scheduler: Is it possible to assign a task to all workers that are part of a group?

2018-05-04 Thread Francisco Ribeiro
The question refers to submitting a task simultaneously to all workers within a group. Thank you -- 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] Re: Run custom code upon error ticket issuance?

2018-02-15 Thread Francisco Ribeiro
That is useful but is it really equivalent to error ticket issuance i.e. do all tickets we see as error tickets hit the routes_onerror? What if the error is triggered by a scheduled task running in the background? Thanks On Thursday, 15 February 2018 17:43:58 UTC, Leonel Câmara wrote: > > I'd

[web2py] Run custom code upon error ticket issuance?

2018-02-15 Thread Francisco Ribeiro
Hi all, I have created an event viewer web console that uses websockets to keep itself up to date. I wanted error tickets to show up in here as well, so once a ticket is issued it would execute my custom code that keeps my event viewer up to date with a link to the ticket itself. Ideally, the

[web2py] Re: Bug with URL encoding?

2017-10-22 Thread Francisco Ribeiro
se the parameter-based rewrite system and specify args_match to >suit your needs (the default args_match regex is '([\w@ =-]|(?<=[\w@ >-])[.])*$'. > > Anthony > > On Thursday, October 19, 2017 at 1:30:09 PM UTC-4, Francisco Ribeiro wrote: >> >> Hi, &g

[web2py] Bug with URL encoding?

2017-10-19 Thread Francisco Ribeiro
something? shouldn't request.args() take care of URL encoding / decoding for me? Thank you Kind regards, Francisco Ribeiro -- 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] Re: SQLFORM.smartgrid() custom field representation breaks exporting functions

2017-10-09 Thread Francisco Ribeiro
Well, actually I was able to hide it as well with CSS: table th:nth-child(7) {display: none;} table td:nth-child(7) {display: none;} Not ideal since all this content is there twice but it works :) On Monday, 9 October 2017 11:28:52 UTC+1, Francisco Ribeiro wrote: > > That works, (

[web2py] Re: SQLFORM.smartgrid() custom field representation breaks exporting functions

2017-10-09 Thread Francisco Ribeiro
That works, (thanks for the idea btw) but leaves me with a different problem which is that 'myfield' becomes visible and it happens to hold a long string (reason why I came up with the idea to turn it into copy-to-clipboard button). On Monday, 9 October 2017 03:22:11 UTC+1, 黄祥 wrote: > > had

[web2py] SQLFORM.smartgrid() custom field representation breaks exporting functions

2017-10-08 Thread Francisco Ribeiro
hi, I have customized one of the fields of my SQLForm whereby instead of displaying its long content, it shows a small button that copies its content into the clipboard, as follows: db.mytable.myfield.represent = lambda value, row: TAG.button(SPAN(DIV( row.myfield,

[web2py] Hiding fields in SQLForm but make them searchable AND usable within "links="

2017-09-25 Thread Francisco Ribeiro
This use case keeps on haunting me... :) Sometimes i want to hide columns from a smartgrid but I still want to be able to search for them AND use it within the SQLFORM links parameter, like the 'fingerprint' parameter in the following example: in model: db.define_table('mytable',

[web2py] Re: Stopping a loaded component

2017-09-15 Thread Francisco Ribeiro
the last iteration of the loop. Francisco On Friday, 15 September 2017 03:35:06 UTC+1, Francisco Ribeiro wrote: > > Hi all, > > I have a monitoring component in which my app continuously grabs data from > the database through a controller which is triggered by a javascript cal

[web2py] Stopping a loaded component

2017-09-14 Thread Francisco Ribeiro
Hi all, I have a monitoring component in which my app continuously grabs data from the database through a controller which is triggered by a javascript call as follows: $.web2py.component("{{=URL('controller', 'my_function.load')}}", "my_target" , timeout=2000, times='Infinity'); As you can

[web2py] Re: PyCharm license for web2py dev - who wants?

2015-10-17 Thread Francisco Ribeiro
interest in here is far greater than the number of people who messaged their email addresses. I will need your email address to send you the license so if you haven't done so please do it. Kind regards, Francisco On Sunday, 11 October 2015 20:21:16 UTC+1, Francisco Ribeiro wrote: > > Hel

Re: [web2py] PyCharm license for web2py dev - who wants?

2015-10-17 Thread Francisco Ribeiro
licenses for the pro version? > Is the pro version supporting web2py? > If yes i'm iterested. > > Il giorno domenica 11 ottobre 2015 21:29:54 UTC+2, Encompass solutions ha > scritto: >> >> I can try it if you want. +1 >> >> On Sun, Oct 11, 2015, 22:21 F

[web2py] PyCharm license for web2py dev - who wants?

2015-10-11 Thread Francisco Ribeiro
Hello all, for those who know PyCharm is a great IDE from JetBrains that provides free licenses for Open Source projects like web2py ( https://www.jetbrains.com/buy/opensource/?product=pycharm ). To request such a license, I need to know how many of you would want one of these as well so I

[web2py] Re: What are the usual steps for designing a web2py application?

2015-01-23 Thread Francisco Ribeiro
There is another way of looking at this which I think it's really effective. Don't guide your approach by user requirements because customers don't know what are their own requirements. Even we, think we do but many times, we don't. Guide your approach by something concrete based on rapid

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-05 Thread Francisco Ribeiro
there is not with the validator but with the value that is passed to the validator when the box is not checked. It's not clear how a new validator would help here, as such a validator would be completely superfluous. Anthony On Thursday, December 4, 2014 8:12:17 AM UTC-5, Francisco Ribeiro

[web2py] bug in IS_NOT_EMPTY() ?

2014-12-04 Thread Francisco Ribeiro
hi there, I noticed that when I use the IS_NOT_EMPTY() validator on a boolean field (i.e. a form checkbox) that it will not allow me to submit the form with this field as not checked / unticked. In my opinion, this is a wrong interpretation of what is an empty value, since a checkbox can only

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Francisco Ribeiro
Kiran, I did not assign the default value of False explicitly but implicitly since it's already the default. Anthony, I understand the interpretation currently in place but if you think about this, validators are supposed to accept allowed values *first* and reject all others. True and False

[web2py] Re: bug in IS_NOT_EMPTY() validator?

2014-12-04 Thread Francisco Ribeiro
UTC-5, Francisco Ribeiro wrote: Kiran, I did not assign the default value of False explicitly but implicitly since it's already the default. Anthony, I understand the interpretation currently in place but if you think about this, validators are supposed to accept allowed values *first

Re: [web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-24 Thread Francisco Ribeiro
with no timeout, but the scheduler doesn't allow a timeout=None for the reasons explained before. summary: I'll send a patch to restrict the timeout value to be = 1 instead of = 0. On Sunday, November 23, 2014 10:29:19 PM UTC+1, Francisco Ribeiro wrote: Niphlod, let me tell you that the 0

Re: [web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-24 Thread Francisco Ribeiro
with no timeout, but the scheduler doesn't allow a timeout=None for the reasons explained before. summary: I'll send a patch to restrict the timeout value to be = 1 instead of = 0. On Sunday, November 23, 2014 10:29:19 PM UTC+1, Francisco Ribeiro wrote: Niphlod, let me tell you that the 0

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-23 Thread Francisco Ribeiro
Niphlod, let me tell you that the 0 is very often interpreted as disabled in computing. For example in select() the famous UNIX system call, uses that convention for the timeout argument and the same happens when you use the snapshop length = 0 argument in tcpdump -s 0 which is allowed but

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
. On Thursday, November 20, 2014 12:07:50 PM UTC+1, Francisco Ribeiro wrote: thank you, a different and yet related problem that I found when I was testing the timeout behaviour using a simple task that just does a time.sleep(3000) is that this keeps the CPU load of its process close to 100% during

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
into the scheduler. Kind regards, Francisco On Friday, 21 November 2014 13:13:04 UTC, Niphlod wrote: will do. in the meantime with timeout=0 what are you trying to achieve ? On Friday, November 21, 2014 12:42:54 PM UTC+1, Francisco Ribeiro wrote: just create and trigger the following task: def

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-21 Thread Francisco Ribeiro
is kinda the nonsense I was trying to figure it out ;-P On Friday, November 21, 2014 4:47:53 PM UTC+1, Francisco Ribeiro wrote: So, by disabling the timeout, I'm making sure that the scheduler will be taken by that process for 3600s rather than being released on its own through a term

[web2py] Re: Scheduler misleading DEBUG logging when task reaches timeout

2014-11-20 Thread Francisco Ribeiro
exceptions. The finer grained statuses are computed back in the worker process (the report_task() routine, to be exact), that knows, e.g., if a task needs to be queued again, etc etc etc On Thursday, November 20, 2014 4:30:36 AM UTC+1, Francisco Ribeiro wrote: hi, After some debugging, I

[web2py] Scheduler misleading DEBUG logging when task reaches timeout

2014-11-19 Thread Francisco Ribeiro
hi, After some debugging, I noticed that when tasks timeout while using the scheduler, I get an output as follows: DEBUG:web2py.app.myapp:new task report: FAILED DEBUG:web2py.app.myapp: traceback: Traceback (most recent call last): File /../web2py/gluon/scheduler.py, line 303, in

[web2py] Re: Customizing generated columns from SQLFROM.grid

2014-10-21 Thread Francisco Ribeiro
. - it would be nice to have an API for grids. I think there is this big jump for database records to generated HTML code ready to be rendered, not so much control over the Application logic on it. Kind regards, Francisco On Saturday, 18 October 2014 15:00:33 UTC+1, Francisco Ribeiro wrote

[web2py] Customizing generated columns from SQLFROM.grid

2014-10-18 Thread Francisco Ribeiro
hello everyone, I believe I have ran into a dead end but maybe one of you may find a way for what I'm trying to do. So, please consider this model: db.define_table('house', Field('location_type', requires=IS_IN_SET(['city', 'country', 'sea'])), Field('location_type_msg'),

[web2py:36124] Re: Encoding problem (bug?)

2009-11-28 Thread Francisco Ribeiro
hi Nice! Thank you for the attention. There is a good reason that I'm sure you deeply understand for me to be less connected... I've been finishing my mst. thesis. Work done, presentation finished more time free. Meanwhile, I've been working on some interesting projects including web2py