Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2014-03-03 Thread Andrey K
similar thing http://www.jetbrains.com/pycharm/webhelp/remote-debugging.html

On Saturday, March 16, 2013 7:25:14 PM UTC+3, Niphlod wrote:
>
> a little offtopic but http://pydev.org/manual_adv_remote_debugger.html
>
>

-- 
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 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 options, visit https://groups.google.com/groups/opt_out.


Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Niphlod
a little offtopic but http://pydev.org/manual_adv_remote_debugger.html

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread David Lypka
How to breakpoint in the task?

On Sat, Mar 16, 2013 at 11:06 AM, Niphlod  wrote:

> and you need to read on the screen a row with 2k characters (supposedly a
> lot of rows on the same page) ?
> cs_monitor is more meant to monitor the workers "administratively", not to
> show their results, the plugin can be "eased" for sure but it can't be a
> solution for all kinds of requirements.
>
> On Saturday, March 16, 2013 5:00:21 PM UTC+1, dlypka wrote:
>
>> I could use an outer join or some custom code to handle the no child row
>> case.
>>
>> In my SolidTable view I simply display 2 tables. The first one is just
>> the first task table
>> and the second is just the inner join.  It is adequate for the time
>> being...
>>
>> My scheduled task executes a unix shell script and returns roughly a 2K
>> character message.
>>
>> By the way, I cannot get it to breakpoint in the task function under WING
>> IDE.
>>
>> Which debuggers if any are known to be able to do it?
>>
>> On Sat, Mar 16, 2013 at 10:53 AM, Niphlod  wrote:
>>
>>> uhm. can you send me a screenshot to identify the problem "in a visual
>>> way" ?
>>> if row_result is large I surely can't help (nor would any kind of
>>> "inline representation") but maybe with a tooltip we can circumvent the
>>> issue.
>>>
>>>
>>> On Saturday, March 16, 2013 4:48:52 PM UTC+1, dlypka wrote:
>>>
 actually, scrollable at a minimum requirement.

 On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  wrote:

> nope Used jqgrid in the past and it's kind of a beast, but .to
> be totally fair, resizing columns on a table doesn't play very well with
> touch devices .
> Which column would you like to be resizable ?
>
>
> PS: a task can be completed and have no scheduler_run rows available
> cause the function didn't return any value (or because the scheduler was
> set to discard return values)
>
> PS2: When you can, share your code, if it's more usable I'll adopt it
> in the plugin happily.
>
>
>
> On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>>
>> Is there a way to stretch (resize) each column? I also suggest using
>> jqgrid, from plugin_wiki I suppose.
>> jqgrid also can do tree-style parent-child expandable subrows which
>> would be very nice to have.
>> A row with a tree style plus sign would indicate the task finished (a
>> child task_run row is available).
>>
>> I rolled my own status view recently using SolidTable, but I plan to
>> change to jqgrid.
>>
>> I'll post something when I can.
>>
>>
>> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>>>
>>> spoilers here
>>> https://www.dropbox.com/sh/**gynhv3yvhnrw5is/YvtgRkIrlL
>>>
>>>
>>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:

 Not until beta at least...
 Graphs need a better look :-P

>>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/**to
> **pic/web2py/FF2g_6qhxDs/**unsubsc**ribe?hl=en
> .
>  To unsubscribe from this group and all its topics, send an email to
> web2py+un...@**googlegroups.com.
>
> For more options, visit 
> https://groups.google.com/**grou**ps/opt_out
> .
>
>
>

  --
>>>
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/**
>>> topic/web2py/FF2g_6qhxDs/**unsubscribe?hl=en
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> web2py+un...@**googlegroups.com.
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Niphlod
and you need to read on the screen a row with 2k characters (supposedly a 
lot of rows on the same page) ?
cs_monitor is more meant to monitor the workers "administratively", not to 
show their results, the plugin can be "eased" for sure but it can't be a 
solution for all kinds of requirements.  

On Saturday, March 16, 2013 5:00:21 PM UTC+1, dlypka wrote:
>
> I could use an outer join or some custom code to handle the no child row 
> case.
>
> In my SolidTable view I simply display 2 tables. The first one is just the 
> first task table
> and the second is just the inner join.  It is adequate for the time 
> being...
>
> My scheduled task executes a unix shell script and returns roughly a 2K 
> character message.
>
> By the way, I cannot get it to breakpoint in the task function under WING 
> IDE.
>
> Which debuggers if any are known to be able to do it?
>
> On Sat, Mar 16, 2013 at 10:53 AM, Niphlod  >wrote:
>
>> uhm. can you send me a screenshot to identify the problem "in a visual 
>> way" ?
>> if row_result is large I surely can't help (nor would any kind of "inline 
>> representation") but maybe with a tooltip we can circumvent the issue.
>>
>>
>> On Saturday, March 16, 2013 4:48:52 PM UTC+1, dlypka wrote:
>>
>>> actually, scrollable at a minimum requirement.
>>>
>>> On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  wrote:
>>>
 nope Used jqgrid in the past and it's kind of a beast, but .to 
 be totally fair, resizing columns on a table doesn't play very well with 
 touch devices . 
 Which column would you like to be resizable ?


 PS: a task can be completed and have no scheduler_run rows available 
 cause the function didn't return any value (or because the scheduler was 
 set to discard return values)

 PS2: When you can, share your code, if it's more usable I'll adopt it 
 in the plugin happily.



 On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>
> Is there a way to stretch (resize) each column? I also suggest using 
> jqgrid, from plugin_wiki I suppose.
> jqgrid also can do tree-style parent-child expandable subrows which 
> would be very nice to have.
> A row with a tree style plus sign would indicate the task finished (a 
> child task_run row is available).
>
> I rolled my own status view recently using SolidTable, but I plan to 
> change to jqgrid.  
>
> I'll post something when I can.
>
>
> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>>
>> spoilers here
>> https://www.dropbox.com/sh/**gyn**hv3yvhnrw5is/YvtgRkIrlL
>>
>>
>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>>
>>> Not until beta at least... 
>>> Graphs need a better look :-P
>>>  
>>  -- 
  
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "web2py-users" group.
 To unsubscribe from this topic, visit https://groups.google.com/d/**
 topic/web2py/FF2g_6qhxDs/**unsubscribe?hl=en
 .
  To unsubscribe from this group and all its topics, send an email to 
 web2py+un...@**googlegroups.com.

 For more options, visit 
 https://groups.google.com/**groups/opt_out
 .
  
  

>>>
>>>  -- 
>>  
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread David Lypka
I could use an outer join or some custom code to handle the no child row
case.

In my SolidTable view I simply display 2 tables. The first one is just the
first task table
and the second is just the inner join.  It is adequate for the time being...

My scheduled task executes a unix shell script and returns roughly a 2K
character message.

By the way, I cannot get it to breakpoint in the task function under WING
IDE.

Which debuggers if any are known to be able to do it?

On Sat, Mar 16, 2013 at 10:53 AM, Niphlod  wrote:

> uhm. can you send me a screenshot to identify the problem "in a visual
> way" ?
> if row_result is large I surely can't help (nor would any kind of "inline
> representation") but maybe with a tooltip we can circumvent the issue.
>
>
> On Saturday, March 16, 2013 4:48:52 PM UTC+1, dlypka wrote:
>
>> actually, scrollable at a minimum requirement.
>>
>> On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  wrote:
>>
>>> nope Used jqgrid in the past and it's kind of a beast, but .to
>>> be totally fair, resizing columns on a table doesn't play very well with
>>> touch devices .
>>> Which column would you like to be resizable ?
>>>
>>>
>>> PS: a task can be completed and have no scheduler_run rows available
>>> cause the function didn't return any value (or because the scheduler was
>>> set to discard return values)
>>>
>>> PS2: When you can, share your code, if it's more usable I'll adopt it in
>>> the plugin happily.
>>>
>>>
>>>
>>> On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:

 Is there a way to stretch (resize) each column? I also suggest using
 jqgrid, from plugin_wiki I suppose.
 jqgrid also can do tree-style parent-child expandable subrows which
 would be very nice to have.
 A row with a tree style plus sign would indicate the task finished (a
 child task_run row is available).

 I rolled my own status view recently using SolidTable, but I plan to
 change to jqgrid.

 I'll post something when I can.


 On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>
> spoilers here
> https://www.dropbox.com/sh/**gyn**hv3yvhnrw5is/YvtgRkIrlL
>
>
> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>
>> Not until beta at least...
>> Graphs need a better look :-P
>>
>  --
>>>
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/**
>>> topic/web2py/FF2g_6qhxDs/**unsubscribe?hl=en
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> web2py+un...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Niphlod
uhm. can you send me a screenshot to identify the problem "in a visual way" 
?
if row_result is large I surely can't help (nor would any kind of "inline 
representation") but maybe with a tooltip we can circumvent the issue.

On Saturday, March 16, 2013 4:48:52 PM UTC+1, dlypka wrote:
>
> actually, scrollable at a minimum requirement.
>
> On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  >wrote:
>
>> nope Used jqgrid in the past and it's kind of a beast, but .to be 
>> totally fair, resizing columns on a table doesn't play very well with touch 
>> devices . 
>> Which column would you like to be resizable ?
>>
>>
>> PS: a task can be completed and have no scheduler_run rows available 
>> cause the function didn't return any value (or because the scheduler was 
>> set to discard return values)
>>
>> PS2: When you can, share your code, if it's more usable I'll adopt it in 
>> the plugin happily.
>>
>>
>>
>> On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>>>
>>> Is there a way to stretch (resize) each column? I also suggest using 
>>> jqgrid, from plugin_wiki I suppose.
>>> jqgrid also can do tree-style parent-child expandable subrows which 
>>> would be very nice to have.
>>> A row with a tree style plus sign would indicate the task finished (a 
>>> child task_run row is available).
>>>
>>> I rolled my own status view recently using SolidTable, but I plan to 
>>> change to jqgrid.  
>>>
>>> I'll post something when I can.
>>>
>>>
>>> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:

 spoilers here
 https://www.dropbox.com/sh/**gynhv3yvhnrw5is/YvtgRkIrlL


 On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>
> Not until beta at least... 
> Graphs need a better look :-P
>  
  -- 
>>  
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "web2py-users" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
>> To unsubscribe from this group and all its topics, send an email to 
>> web2py+un...@googlegroups.com .
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread David Lypka
actually, scrollable at a minimum requirement.

On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  wrote:

> nope Used jqgrid in the past and it's kind of a beast, but .to be
> totally fair, resizing columns on a table doesn't play very well with touch
> devices .
> Which column would you like to be resizable ?
>
>
> PS: a task can be completed and have no scheduler_run rows available cause
> the function didn't return any value (or because the scheduler was set to
> discard return values)
>
> PS2: When you can, share your code, if it's more usable I'll adopt it in
> the plugin happily.
>
>
>
> On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>>
>> Is there a way to stretch (resize) each column? I also suggest using
>> jqgrid, from plugin_wiki I suppose.
>> jqgrid also can do tree-style parent-child expandable subrows which would
>> be very nice to have.
>> A row with a tree style plus sign would indicate the task finished (a
>> child task_run row is available).
>>
>> I rolled my own status view recently using SolidTable, but I plan to
>> change to jqgrid.
>>
>> I'll post something when I can.
>>
>>
>> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>>>
>>> spoilers here
>>> https://www.dropbox.com/sh/**gynhv3yvhnrw5is/YvtgRkIrlL
>>>
>>>
>>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:

 Not until beta at least...
 Graphs need a better look :-P

>>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread David Lypka
In my case, the result / return value columns need to be resizeable.


On Sat, Mar 16, 2013 at 10:39 AM, Niphlod  wrote:

> nope Used jqgrid in the past and it's kind of a beast, but .to be
> totally fair, resizing columns on a table doesn't play very well with touch
> devices .
> Which column would you like to be resizable ?
>
>
> PS: a task can be completed and have no scheduler_run rows available cause
> the function didn't return any value (or because the scheduler was set to
> discard return values)
>
> PS2: When you can, share your code, if it's more usable I'll adopt it in
> the plugin happily.
>
>
>
> On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>>
>> Is there a way to stretch (resize) each column? I also suggest using
>> jqgrid, from plugin_wiki I suppose.
>> jqgrid also can do tree-style parent-child expandable subrows which would
>> be very nice to have.
>> A row with a tree style plus sign would indicate the task finished (a
>> child task_run row is available).
>>
>> I rolled my own status view recently using SolidTable, but I plan to
>> change to jqgrid.
>>
>> I'll post something when I can.
>>
>>
>> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>>>
>>> spoilers here
>>> https://www.dropbox.com/sh/**gynhv3yvhnrw5is/YvtgRkIrlL
>>>
>>>
>>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:

 Not until beta at least...
 Graphs need a better look :-P

>>>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/FF2g_6qhxDs/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Niphlod
nope Used jqgrid in the past and it's kind of a beast, but .to be 
totally fair, resizing columns on a table doesn't play very well with touch 
devices . 
Which column would you like to be resizable ?


PS: a task can be completed and have no scheduler_run rows available cause 
the function didn't return any value (or because the scheduler was set to 
discard return values)

PS2: When you can, share your code, if it's more usable I'll adopt it in 
the plugin happily.


On Saturday, March 16, 2013 4:13:48 PM UTC+1, dlypka wrote:
>
> Is there a way to stretch (resize) each column? I also suggest using 
> jqgrid, from plugin_wiki I suppose.
> jqgrid also can do tree-style parent-child expandable subrows which would 
> be very nice to have.
> A row with a tree style plus sign would indicate the task finished (a 
> child task_run row is available).
>
> I rolled my own status view recently using SolidTable, but I plan to 
> change to jqgrid.  
>
> I'll post something when I can.
>
>
> On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>>
>> spoilers here
>> https://www.dropbox.com/sh/gynhv3yvhnrw5is/YvtgRkIrlL
>>
>>
>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>>
>>> Not until beta at least... 
>>> Graphs need a better look :-P
>>>  
>>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread dlypka
Is there a way to stretch (resize) each column? I also suggest using 
jqgrid, from plugin_wiki I suppose.
jqgrid also can do tree-style parent-child expandable subrows which would 
be very nice to have.
A row with a tree style plus sign would indicate the task finished (a child 
task_run row is available).

I rolled my own status view recently using SolidTable, but I plan to change 
to jqgrid.  

I'll post something when I can.


On Sunday, February 24, 2013 7:28:11 AM UTC-6, Niphlod wrote:
>
> spoilers here
> https://www.dropbox.com/sh/gynhv3yvhnrw5is/YvtgRkIrlL
>
>
> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>
>> Not until beta at least... 
>> Graphs need a better look :-P
>>  
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Niphlod
you should insert a new task if it's "connected" to an event in a 
controller. If you need to queue a recurring task one-time-only and is not 
controlled by some logic in your app, you should insert it using the 
appadmin 

On Saturday, March 16, 2013 8:16:38 AM UTC+1, Paolo valleri wrote:
>
> Hi Niphlod, 
> I am thinking that I do misunderstood the book because I put  this line
> scheduler.queue_task(test_rest, period=10, repeats=0)
> in a model file, this means that I have re-scheduled my task times and 
> times! 
> Btw, which should be the best place to add a new task (beside using your 
> plugin!)?
>
> Paolo
>
>
> On Friday, March 15, 2013 11:29:26 AM UTC+1, Niphlod wrote:
>>
>> maybe the fact that you're using sqlite :D
>> If you have a recent sqlite distribution activate the WAL, it can zero 
>> out the issues for normal loads (usually also for low loads SQLite ends up 
>> locked)
>> Jokes aside, that's why I implemented multiple queries as regroupings in 
>> python, to alleviate db pressure on "normal" db and to see if sqlite can 
>> cope with it. 
>> Where are you seeing this error? 
>> If you were on the main page, did you try turning the autorefresh off ? 
>> Did you try increasing the cache time ? 
>> and setting GROUPING_MODE to python instead of database ? 
>>
>> PS: you did not used this as a model, right ? it queues a new task at 
>> every request in that case
>>
>> On Friday, March 15, 2013 11:14:46 AM UTC+1, Paolo valleri wrote:
>>>
>>> Hi, 
>>> I have in plan to use it in a future project, today a started a very 
>>> easy app but I ended up in the error: 'database is locked'.
>>> The tests were done by using sqlite. What is wrong in my app? Please 
>>> find attached the example test
>>> The ticket:
>>>
>>> Traceback (most recent call last):
>>>   File "/home/pvalleri/src/web2py/gluon/restricted.py", line 212, in 
>>> restricted
>>> exec ccode in environment
>>>   File "/home/pvalleri/src/web2py/applications/scapp/models/scheduler.py" 
>>> , line 
>>> 31, in 
>>> scheduler.queue_task(test_rest, period=10, repeats=0)
>>>   File "/home/pvalleri/src/web2py/gluon/scheduler.py", line 959, in 
>>> queue_task
>>> **kwargs)
>>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8460, in 
>>> validate_and_insert
>>> response.id = self.insert(**new_fields)
>>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8443, in insert
>>> ret =  self._db._adapter.insert(self, self._listify(fields))
>>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 1201, in insert
>>> raise e
>>> OperationalError: database is locked
>>>
>>>
>>>
>>> Paolo
>>>
>>> On Thursday, February 28, 2013 10:57:40 PM UTC+1, Niphlod wrote:

 plugin just got beta status. 
 I'd gladly take patches for:
 - a nicer layout ?
 - removing all the javascript in template views and consolidate it in a 
 separate js file 

 As always, testers are more than welcome. 
>>>
>>>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-16 Thread Paolo valleri
Hi Niphlod, 
I am thinking that I do misunderstood the book because I put  this line
scheduler.queue_task(test_rest, period=10, repeats=0)
in a model file, this means that I have re-scheduled my task times and 
times! 
Btw, which should be the best place to add a new task (beside using your 
plugin!)?

Paolo


On Friday, March 15, 2013 11:29:26 AM UTC+1, Niphlod wrote:
>
> maybe the fact that you're using sqlite :D
> If you have a recent sqlite distribution activate the WAL, it can zero out 
> the issues for normal loads (usually also for low loads SQLite ends up 
> locked)
> Jokes aside, that's why I implemented multiple queries as regroupings in 
> python, to alleviate db pressure on "normal" db and to see if sqlite can 
> cope with it. 
> Where are you seeing this error? 
> If you were on the main page, did you try turning the autorefresh off ? 
> Did you try increasing the cache time ? 
> and setting GROUPING_MODE to python instead of database ? 
>
> PS: you did not used this as a model, right ? it queues a new task at 
> every request in that case
>
> On Friday, March 15, 2013 11:14:46 AM UTC+1, Paolo valleri wrote:
>>
>> Hi, 
>> I have in plan to use it in a future project, today a started a very easy 
>> app but I ended up in the error: 'database is locked'.
>> The tests were done by using sqlite. What is wrong in my app? Please find 
>> attached the example test
>> The ticket:
>>
>> Traceback (most recent call last):
>>   File "/home/pvalleri/src/web2py/gluon/restricted.py", line 212, in 
>> restricted
>> exec ccode in environment
>>   File "/home/pvalleri/src/web2py/applications/scapp/models/scheduler.py" 
>> , line 
>> 31, in 
>> scheduler.queue_task(test_rest, period=10, repeats=0)
>>   File "/home/pvalleri/src/web2py/gluon/scheduler.py", line 959, in 
>> queue_task
>> **kwargs)
>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8460, in 
>> validate_and_insert
>> response.id = self.insert(**new_fields)
>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8443, in insert
>> ret =  self._db._adapter.insert(self, self._listify(fields))
>>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 1201, in insert
>> raise e
>> OperationalError: database is locked
>>
>>
>>
>> Paolo
>>
>> On Thursday, February 28, 2013 10:57:40 PM UTC+1, Niphlod wrote:
>>>
>>> plugin just got beta status. 
>>> I'd gladly take patches for:
>>> - a nicer layout ?
>>> - removing all the javascript in template views and consolidate it in a 
>>> separate js file 
>>>
>>> As always, testers are more than welcome. 
>>
>>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-15 Thread Niphlod
maybe the fact that you're using sqlite :D
If you have a recent sqlite distribution activate the WAL, it can zero out 
the issues for normal loads (usually also for low loads SQLite ends up 
locked)
Jokes aside, that's why I implemented multiple queries as regroupings in 
python, to alleviate db pressure on "normal" db and to see if sqlite can 
cope with it. 
Where are you seeing this error? 
If you were on the main page, did you try turning the autorefresh off ? 
Did you try increasing the cache time ? 
and setting GROUPING_MODE to python instead of database ? 

PS: you did not used this as a model, right ? it queues a new task at every 
request in that case

On Friday, March 15, 2013 11:14:46 AM UTC+1, Paolo valleri wrote:
>
> Hi, 
> I have in plan to use it in a future project, today a started a very easy 
> app but I ended up in the error: 'database is locked'.
> The tests were done by using sqlite. What is wrong in my app? Please find 
> attached the example test
> The ticket:
>
> Traceback (most recent call last):
>   File "/home/pvalleri/src/web2py/gluon/restricted.py", line 212, in 
> restricted
> exec ccode in environment
>   File "/home/pvalleri/src/web2py/applications/scapp/models/scheduler.py" 
> , line 
> 31, in 
> scheduler.queue_task(test_rest, period=10, repeats=0)
>   File "/home/pvalleri/src/web2py/gluon/scheduler.py", line 959, in queue_task
> **kwargs)
>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8460, in 
> validate_and_insert
> response.id = self.insert(**new_fields)
>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 8443, in insert
> ret =  self._db._adapter.insert(self, self._listify(fields))
>   File "/home/pvalleri/src/web2py/gluon/dal.py", line 1201, in insert
> raise e
> OperationalError: database is locked
>
>
>
> Paolo
>
> On Thursday, February 28, 2013 10:57:40 PM UTC+1, Niphlod wrote:
>>
>> plugin just got beta status. 
>> I'd gladly take patches for:
>> - a nicer layout ?
>> - removing all the javascript in template views and consolidate it in a 
>> separate js file 
>>
>> As always, testers are more than welcome. 
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-15 Thread Paolo valleri
Hi, 
I have in plan to use it in a future project, today a started a very easy 
app but I ended up in the error: 'database is locked'.
The tests were done by using sqlite. What is wrong in my app? Please find 
attached the example test
The ticket:

Traceback (most recent call last):
  File "/home/pvalleri/src/web2py/gluon/restricted.py", line 212, in restricted
exec ccode in environment
  File "/home/pvalleri/src/web2py/applications/scapp/models/scheduler.py" 
, line 31, 
in 
scheduler.queue_task(test_rest, period=10, repeats=0)
  File "/home/pvalleri/src/web2py/gluon/scheduler.py", line 959, in queue_task
**kwargs)
  File "/home/pvalleri/src/web2py/gluon/dal.py", line 8460, in 
validate_and_insert
response.id = self.insert(**new_fields)
  File "/home/pvalleri/src/web2py/gluon/dal.py", line 8443, in insert
ret =  self._db._adapter.insert(self, self._listify(fields))
  File "/home/pvalleri/src/web2py/gluon/dal.py", line 1201, in insert
raise e
OperationalError: database is locked



Paolo

On Thursday, February 28, 2013 10:57:40 PM UTC+1, Niphlod wrote:
>
> plugin just got beta status. 
> I'd gladly take patches for:
> - a nicer layout ?
> - removing all the javascript in template views and consolidate it in a 
> separate js file 
>
> As always, testers are more than welcome. 

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.


from gluon.scheduler import Scheduler
scheduler = Scheduler(db)



def test_rest():
	import urllib

	url = 'http://search.yahooapis.com/ContentAnalysisService/V1/termExtraction'
	appid = 'YahooDemo'

	context = '''
	Italian sculptors and painters of the renaissance favored
	the Virgin Mary for inspiration
	'''
	query = 'madonna'

	params = urllib.urlencode({
		'appid': appid,
		'context': context,
		'query': query
	})

	data = urllib.urlopen(url, params).read()
	print data

	return 5



scheduler.queue_task(test_rest, period=10, repeats=0)



Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-28 Thread Niphlod
plugin just got beta status. 
I'd gladly take patches for:
- a nicer layout ?
- removing all the javascript in template views and consolidate it in a 
separate js file 

As always, testers are more than welcome. 

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-25 Thread Paolo valleri
Really nice job, +1 for shipping this with web2py.
paolo

On Sunday, February 24, 2013 3:34:03 PM UTC+1, Massimo Di Pierro wrote:
>
> I think this plugin should ship with web2py. ;-)
>
> On Sunday, 24 February 2013 07:28:11 UTC-6, Niphlod wrote:
>>
>> spoilers here
>> https://www.dropbox.com/sh/gynhv3yvhnrw5is/YvtgRkIrlL
>>
>>
>> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>>
>>> Not until beta at least... 
>>> Graphs need a better look :-P
>>>  
>>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-24 Thread Massimo Di Pierro
I think this plugin should ship with web2py. ;-)

On Sunday, 24 February 2013 07:28:11 UTC-6, Niphlod wrote:
>
> spoilers here
> https://www.dropbox.com/sh/gynhv3yvhnrw5is/YvtgRkIrlL
>
>
> On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>>
>> Not until beta at least... 
>> Graphs need a better look :-P
>>  
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-24 Thread Niphlod
spoilers here
https://www.dropbox.com/sh/gynhv3yvhnrw5is/YvtgRkIrlL


On Saturday, February 23, 2013 10:17:22 PM UTC+1, Niphlod wrote:
>
> Not until beta at least... 
> Graphs need a better look :-P
>  

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-23 Thread niphlod
Not until beta at least...
Graphs need a better look :-P

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.




[web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-02-23 Thread Massimo Di Pierro
no screenshots? ;-)

On Saturday, 23 February 2013 12:11:19 UTC-6, Niphlod wrote:
>
> Hi all, 
>here  there's the first 
> implementation of a monitoring plugin for the embedded scheduler.
> Shouldn't break anything but at least for the moment do not use in 
> production, it's in alpha stage.
>
> Please test it and report back bugs or new ideas.
>
>

-- 

--- 
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 options, visit https://groups.google.com/groups/opt_out.