Re: [Zope] ClockServer 0.1 released

2005-04-06 Thread Florent Guillaume
Chris McDonough  [EMAIL PROTECTED] wrote:
 I was creeped out by Zope scheduling products that started a separate
 thread to call methods at scheduled intervals and I got tired of setting
 up cron+wget to call Zope methods via HTTP, thus:
  
 http://plope.com/software/ClockServer
 
 It works by posing as a medusa server, and injects things that look like
 http requests into the publisher every so often.

Very nice.

I'm confused about the need for an external module for timeslice.
What's wrong with:

def timeslice(period, when=0):
return when - (when % period)

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of RD
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ClockServer 0.1 released

2005-04-02 Thread Chris McDonough
This doesn't really do all of what something like Xron does.. it's only
really a clock and you can't use it to schedule methods to run e.g.
every Wednesday at 3pm; instead you can only run things every x
seconds.  But if that's all you need, it's probably a lot simpler to
use than something like Xron.

On Fri, 2005-04-01 at 16:54, Jonathan Cyr wrote:
 Am I getting this this is what Zron should have been?
 
 -Jon
 
 Chris McDonough wrote:
  On Fri, 2005-04-01 at 02:40, Chris Withers wrote:

   Chris McDonough wrote:
   
It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.
  
   Isn't that effectively just creating a seperate thread though?
   
  No.  It reuses the thread pool that the publisher already uses.
  
  - C
  
  
  ___
  Zope maillist  -  Zope@zope.org
  http://mail.zope.org/mailman/listinfo/zope
  **   No cross posts or HTML encoding!  **
  (Related lists - 
   http://mail.zope.org/mailman/listinfo/zope-announce
   http://mail.zope.org/mailman/listinfo/zope-dev )
  
  


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Chris Withers
Chris McDonough wrote:
It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.
Isn't that effectively just creating a seperate thread though?
cheers,
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Chris McDonough
On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
 Chris McDonough wrote:
  It works by posing as a medusa server, and injects things that look like
  http requests into the publisher every so often.
 
 Isn't that effectively just creating a seperate thread though?

No.  It reuses the thread pool that the publisher already uses.

- C


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ClockServer 0.1 released

2005-04-01 Thread Jonathan Cyr




Am I getting this this is what
Zron should have been?

-Jon

Chris McDonough wrote:

  On Fri, 2005-04-01 at 02:40, Chris Withers wrote:
  
  
Chris McDonough wrote:


  It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.
  

Isn't that effectively just creating a seperate thread though?

  
  
No.  It reuses the thread pool that the publisher already uses.

- C


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


  



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ClockServer 0.1 released

2005-03-31 Thread Chris McDonough
Hi folks,

I was creeped out by Zope scheduling products that started a separate
thread to call methods at scheduled intervals and I got tired of setting
up cron+wget to call Zope methods via HTTP, thus:
 
http://plope.com/software/ClockServer

It works by posing as a medusa server, and injects things that look like
http requests into the publisher every so often.

Have fun!

- C


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )