Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread Darryl Cousins
On Wed, 2006-09-27 at 11:13 +1000, John Maddison wrote: > > Ah, I think I may have misdescribed what I was trying to do - I'm not > > trying to replace the root object, I'm trying to automatically create > > some other objects to put inside it (without having to use the ZMI). Hi John, Maybe we a

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
Oops, forgot to CC the list. On 9/27/06, John Maddison <[EMAIL PROTECTED]> wrote: On 9/26/06, Fred Drake <[EMAIL PROTECTED]> wrote: > On 9/26/06, John Maddison <[EMAIL PROTECTED]> wrote: > > Right, that's basically what I want to run, but I can't seem to figure > > out how to have that run at ZO

Re: [Zope3-Users] filter possibilities

2006-09-26 Thread Martijn Faassen
Ivan Horvath wrote: Dear All, i have to provide some filter function in our system. i've checked the hurry.query solution e.g. obj1.property = "As Built Documentation" obj2.property = "Planning Documentation" obj3.property = "As Built Drawing" i would like to filter my objects in the following

[Zope3-Users] Reportlab threadsafe solution?

2006-09-26 Thread Jim Washington
Hi I need to produce PDFs with reportlab. reportlab is not threadsafe. (http://two.pairlist.net/pipermail/reportlab-users/2006-June/005037.html) I think I need a way to queue or generate a "lockfile" on requests for PDFs so that only one-at-a-time is generated. I'm hoping that there is a u

[Zope3-Users] Re: File structure: interface and interfaces

2006-09-26 Thread George Lee
Philipp von Weitershausen <[EMAIL PROTECTED]> writes: > > George Lee wrote: > > What is the best practice for where to put interface definitions? Inside an > > interfaces.py, a browser/interfaces.py? > > We prefer to put public interfaces into package.interfaces. Other > modules can also define

Re: [Zope3-Users] Re: Reportlab threadsafe solution?

2006-09-26 Thread Chris McDonough
Why not just use a mutex (a recursive lock makes things easier too)? lock = threading.RLock() lock.acquire() try: ... finally: lock.release() On Sep 26, 2006, at 9:19 AM, Philipp von Weitershausen wrote: Jim Washington wrote: Hi I need to produce PDFs with reportlab. reportlab is not th

[Zope3-Users] Re: Reportlab threadsafe solution?

2006-09-26 Thread Philipp von Weitershausen
Jim Washington wrote: Hi I need to produce PDFs with reportlab. reportlab is not threadsafe. (http://two.pairlist.net/pipermail/reportlab-users/2006-June/005037.html) I think I need a way to queue or generate a "lockfile" on requests for PDFs so that only one-at-a-time is generated. I'm h

Re: [Zope3-Users] filter possibilities

2006-09-26 Thread Rupert Redington
I'm no expert on this... In fact I often find myself struggling to get cataloging in Zope3 to do what I want in a painless way (which is probably why hurry exists...). Experts please correct me if I'm doing anything objectionable... I'm assuming that you've got an IntIds utility and a catalog, and

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread Fred Drake
On 9/26/06, John Maddison <[EMAIL PROTECTED]> wrote: Right, that's basically what I want to run, but I can't seem to figure out how to have that run at ZODB creation time. Should I be listening for the event that Fred added (thanks!) and run that in the subscriber? There are a couple of ways t

Re[2]: [Zope3-Users] filter possibilities

2006-09-26 Thread Ivan Horvath
thank you Chris, at least you've answered ... but yesterday i've spent all my day to figure out how the hurry.query works without success - may be that was the reason if i was a little bit ironic - sorry for that unfortunatelly i don't know too much about zope, but i would like to learn its c

[Zope3-Users] Alternate root objects?

2006-09-26 Thread Chris Withers
Fred Drake wrote: This should make it a lot easier to use alternate root objects, something it sounds like many of us have run up against. Never bumped into this myself, curious about the need that drove this. can you explain or is there something I can look at? cheers, Chris -- Simplisti

Re: [Zope3-Users] filter possibilities

2006-09-26 Thread Chris Withers
Ivan Horvath wrote: Is there anybody out there? Plenty. why haven't i received any answer? Because no one understood the question, or maybe no one knew the answer, or just maybe nobody had time or nobody felt like it... i thought this list is to raise question if i don't know something,

Re: [Zope3-Users] filter possibilities

2006-09-26 Thread Ivan Horvath
Best regards, Ivan Horvath Chief Programmer   Alcatel ISD  PMS 2000 Product Team   H-1116, Budapest  Kondorfa u. 10.  Tel.: +36 1 209 9546  Fax.: +36 1 209 9599  Mobil: +36 30 257 0235  VOIP: +49 511 676 478010  [EMAIL PROTECTED] Anyone who has never made a mistake has never tried

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
On 9/25/06, Darryl Cousins <[EMAIL PROTECTED]> wrote: Hi John, This may be what you are after: root['my-app'] = MyApp() Right, that's basically what I want to run, but I can't seem to figure out how to have that run at ZODB creation time. Should I be listening for the event that Fred added (

Re: [Zope3-Users] Autocreated content objects

2006-09-26 Thread John Maddison
On 9/25/06, Stephan Richter <[EMAIL PROTECTED]> wrote: On Monday 25 September 2006 03:21, John Maddison wrote: > Is it possible/wise to "auto-create" content objects in the ZODB? Say I'm > creating a blog application and have a container type(BlogContainer) and > want an instance called "blog" in

Re: [Zope3-Users] Reportlab threadsafe solution?

2006-09-26 Thread JPenny
One way is to use another tool. If you look at it just right, lpr is a general purpose job scheduler. It checks a lock resource, and allows only one job to acquire the lock, etc. The best cookbook I can find to this idea is: http://www.faqs.org/docs/Linux-mini/Fax-Server.html Your main problem