Re[2]: [Zope-dev] moment when zope was started.
Hello Chris Withers, Tuesday, November 8, 2005, 1:26:29 PM, you wrote: CW Why on earth would you want to do that?! :) my product needs to do some specific things, right after the user is authenticated and becomes known. hook is hook and it may be overloaded as with zpublisher_exception_hook. -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re[2]: [Zope-dev] moment when zope was started.
Hello Tino Wildenhain, Tuesday, November 8, 2005, 4:29:39 PM, you wrote: TW You might want to look at userfolder implementation, for example PAS. Thank you, i look at it, but this is another story ;). -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re[2]: [Zope-dev] moment when zope was started.
Hello Tino Wildenhain, Tuesday, November 8, 2005, 5:56:25 PM, you wrote: TW Now you should tell us what you are really doing here :-) Subject: Re: [Zope-dev] moment when zope was started. /\ want to know | -/ -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re: Re[2]: [Zope-dev] moment when zope was started.
On 11/8/05, Victor Safronovich [EMAIL PROTECTED] wrote: Hello Tino Wildenhain, Tuesday, November 8, 2005, 5:56:25 PM, you wrote: TW Now you should tell us what you are really doing here :-) Subject: Re: [Zope-dev] moment when zope was started. /\ want to know | Yeah, but he asked for what you are trying to do, not what you want to know. We can't help you if we don't know what you are trying to do. ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Re[2]: [Zope-dev] moment when zope was started.
Hello Chris Withers, Monday, November 7, 2005, 8:15:58 PM, you wrote: CW Victor Safronovich wrote: But in Zope 2.8 the variable 'Zope2.Startup.started' not changed its value to True, because Zope2.Startup.start_zope was never called, instead of that called Zope2.Startup.run.run function. CW This sounds like a bug, but why do you want to know this? My Product wants to replace zpublisher_validate_hook in Zope2.__init__. Formerly I use the code class ZPValidateHookReplacer(Thread): def run(self): while not Zope.Startup.started: # in 2.8 'Zope' module must be replaced to Zope2 time.sleep(0.5) Zope.zpublisher_validate_hook = my_validate_hook ZPValidateHookReplacer().start() in Zope 2.8 this code was broken because Zope.Startup.started always False. I changed to new repeat condition while Zope.zpublisher_validate_hook is None: time.sleep(0.5) But what if others use Zope.Startup.started variable? -- Best regards, Victor Safronovich NauMen.NauDoc.SoftwareDeveloper http://www.naumen.ru ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )