[Zope-dev] FlashMovie

2004-12-13 Thread Krzysztof Kubacki
ï Hallo I have added new product named "FlashMovie". I'm adding new FlashMovie's object in Zope's folder and next I want to get it from ZTP: . After it ZPT is being redirected to ZPT named "flashmovie_view". I can not find in a ZMI the place where I can change it. I don't want to be redirecte

Re: [Zope-dev] getUserById

2004-12-13 Thread Florent Guillaume
In article <[EMAIL PROTECTED]> you write: > In User.py the method is defined as > > def getUserById(self, id, default=_marker): > try: > return self.getUser(id) > except: > if default is _marker: raise > return default > > I am wondering whether anybody actual

Re: [Zope-dev] getUserById

2004-12-13 Thread Stefan H. Holek
Hm, I'd rather not raise exceptions. getUserById was introduced in Zope 2.2 and since then has never raised anything. From what I can see it is used as a kind of alias for getUser, expected to return None if the user does not exist. So, my intention is to make 'default' work, not to make it rais

Re: [Zope-dev] Events in the core

2004-12-13 Thread Florent Guillaume
Dieter Maurer wrote: Florent Guillaume wrote at 2004-12-10 19:02 +0100: The two options we have are quite different: The model in Products/Event and Products/EventListenerTool is geared toward local definition of listeners and rules for dispatch (if needed, the tool could easily be divorced

Re: [Zope-dev] FlashMovie

2004-12-13 Thread Lennart Regebro
Krzysztof Kubacki wrote: After it ZPT is being redirected to ZPT named "flashmovie_view". I can not find in a ZMI the place where I can change it. That's probably because the ZMI doesn't do any redirection like that... -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management

Re: [Zope-dev] getUserById

2004-12-13 Thread Lennart Regebro
Stefan H. Holek wrote: In User.py the method is defined as def getUserById(self, id, default=_marker): try: return self.getUser(id) except: if default is _marker: raise return default I am wondering whether anybody actually depends on the fact that getUser is suppos

Re: [Zope-dev] getUserById

2004-12-13 Thread Jens Vagelpohl
On Dec 13, 2004, at 17:15, Florent Guillaume wrote: Can we have instead: def getUserById(self, id, default=_marker): """Return the user corresponding to the given id. Raises a KeyError if the user does not exist and no default is provided. """ user = self

Re: [Zope-dev] getUserById

2004-12-13 Thread Florent Guillaume
Jens wrote: > On Dec 13, 2004, at 17:15, Florent Guillaume wrote: > > Can we have instead: > > > > def getUserById(self, id, default=_marker): > > """Return the user corresponding to the given id. > > > > Raises a KeyError if the user does not exist and no default > > is

Re: [Zope-dev] getUserById

2004-12-13 Thread Florent Guillaume
In article <[EMAIL PROTECTED]> you write: > Hm, I'd rather not raise exceptions. > > getUserById was introduced in Zope 2.2 and since then has never raised > anything. From what I can see it is used as a kind of alias for > getUser, expected to return None if the user does not exist. > > So, my

Re: [Zope-dev] getUserById

2004-12-13 Thread Chris McDonough
On Mon, 2004-12-13 at 19:22 +0100, Stefan H. Holek wrote: > Hm, I'd rather not raise exceptions. > > getUserById was introduced in Zope 2.2 and since then has never raised > anything. From what I can see it is used as a kind of alias for > getUser, expected to return None if the user does not ex