[Zope-dev] property type

2003-02-06 Thread Tim McLaughlin
According to docs and testing (in the interpreter) I can make a read-only calculated attribute using property() (I know that setters do not work w/ non-new-style classes). So I tried the following: class CMixin: def getter(self): return 'test' prop = property(getter) and when I try to

Re: [Zope-dev] property type

2003-02-06 Thread Steve Alexander
Tim McLaughlin wrote: According to docs and testing (in the interpreter) I can make a read-only calculated attribute using property() (I know that setters do not work w/ non-new-style classes). So I tried the following: class CMixin: def getter(self): return 'test' prop =

Re: [Zope-dev] property type

2003-02-06 Thread Steve Alexander
Steve Alexander wrote: Tim McLaughlin wrote: According to docs and testing (in the interpreter) I can make a read-only calculated attribute using property() (I know that setters do not work w/ non-new-style classes). So I tried the following: class CMixin: def getter(self): return

[Zope-dev] Unsynced ZEO Clients and Undo

2003-02-06 Thread Brian R Brinegar
Hello, We've run into a problem with Zope 2.5.1 and ZEO 1 where a user does an Undo and some of the ZEO clients reflect the change and others do not. I believe it has to do with caches getting out of sync. Is this a known problem? It has happened to us at least 4 times that I know of. Usually we

[Zope-dev] Making private documents viewable by members in CMF

2003-02-06 Thread David Cain
CMF comes with a default workflow with three states: private, pending, and published. When an object is in the private state, only the user who created it and site managers can view and change it. How do I change the roles or security to allow Members to view each others private documents without

Re: [Zope-dev] Making private documents viewable by members in CMF

2003-02-06 Thread Gilles Lenfant
(Untested but should work) Make your own workflow with DCWorkflow (search and install that CMF extra product) DC Workflow comes with a pre-built workflow that acts like the CMF default workflow Edit the private state of the workflow in the permissions tab. Grant the View permission to Members.

[Zope-dev] override __of__

2003-02-06 Thread Tim McLaughlin
Is there any way to override __of__ on an object? I've tried it but for whatever reason, Implicit.__of__(self, object) says that self is not an Acquirer even though the object is a subclass of Implicit. I would implement in a traverse hook, but attribute access of that object won't do

Re: [Zope-dev] override __of__

2003-02-06 Thread Chris McDonough
Is this what you're trying to do? Starting debugger /home/chrism/projects/TIProject/bin/python -i -c import user;import Zope;app=Zope.app() from Acquisition import Implicit class Foo(Implicit): ... def __of__(self, parent): ... return Implicit.__of__(self, parent) ... f =

[Zope-dev] RE: [Zope] Time module in python scripts

2003-02-06 Thread sean . upton
I hope you all don't mind, but I've moved this to Zope-dev. I would like to propose that it be possible without modification (default behavior) in a future version of Zope to import the time module and its methods safely into TTW Python Scripts. I haven't used this yet in TTW code (I've had to

Re: [Zope-dev] RE: [Zope] Time module in python scripts

2003-02-06 Thread Tim Hoffman
Hi I wonder why DateTime().parts() results is different to time.localtime(time.time()) or at least returns less info than the latter. It would seem a change to DateTime would be in order ? Tim On Fri, 2003-02-07 at 06:30, [EMAIL PROTECTED] wrote: I hope you all don't mind, but I've moved

[Zope-dev] What makes Zope twirl?

2003-02-06 Thread Paul Winkler
Or: when zope goes into a nonresponsive state, what can you do to diagnose the cause? The even that prompts this question: Our production system (2 zeo clients) went down today. Platform: Linux 2.4, Zope 2.5.1 from source (wo_pcgi), Python 2.1.3 from source, running behind Apache for one site,

[Zope-dev] Zope Server Control

2003-02-06 Thread Shane Hathaway
Zope-Dev'ers, Just for fun, I made a mockup (using QT Designer) of a Zope server control and monitoring GUI. It's purely nonfunctional--just an idea. Check it out here: http://hathaway.freezope.org/Images/controller_snapshot.png It's not fancy, but it's complete: you can watch and control