Re: [Zope-CMF] getActionObject() deprecated?

2010-04-19 Thread Charlie Clark
Am 19.04.2010, 15:35 Uhr, schrieb yuppie : > And please don't forget that I plan to replace the unauth redirect code > completely. I've been working on a "getLoginURL()" method to be able to handle login/logout actions as well as the current behaviour but I don't seem to be able to write any

Re: [Zope-CMF] CMF Tests: 3 OK, 2 Failed

2010-04-19 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 yuppie wrote: > After spending hours trying to understand the exception handling in > Zope, I think the unauth redirect code should be completely removed from > CookieCrumbler. An exception view seems to be a much more appropriate > solution. I'll

Re: [Zope-CMF] getActionObject() deprecated?

2010-04-19 Thread Charlie Clark
Am 19.04.2010, 15:35 Uhr, schrieb yuppie : Hiya Yuppie, > Yes. You don't need that method for newstyle Actions. Just use this if > you want to get the Action object: > atool.user.login hm, direct access by attributes, who'd have thunk it!? ;-) > But you don't need the Action itself. You need th

Re: [Zope-CMF] getActionObject() deprecated?

2010-04-19 Thread yuppie
Hi! Charlie Clark wrote: > this may just be another case of me being thick but whilst working on > CookieCrumler I took a look at the best way for getting the "user/login" > and "user/logout" actions. getActionObject("user/login") would seem to be > best approach. However, it will not work with a

[Zope-CMF] getActionObject() deprecated?

2010-04-19 Thread Charlie Clark
Hi, this may just be another case of me being thick but whilst working on CookieCrumler I took a look at the best way for getting the "user/login" and "user/logout" actions. getActionObject("user/login") would seem to be best approach. However, it will not work with any straight actions as n

[Zope-CMF] CMF Tests: 5 OK

2010-04-19 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list. Period Sun Apr 18 12:00:00 2010 UTC to Mon Apr 19 12:00:00 2010 UTC. There were 5 messages: 5 from CMF Tests. Tests passed OK --- Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.6 : Linux From: CMF Tests Date: Sun Apr 18 21:46:16 EDT 2010 URL: ht

Re: [Zope-CMF] CMF Tests: 3 OK, 2 Failed

2010-04-19 Thread Charlie Clark
Am 19.04.2010, 09:19 Uhr, schrieb yuppie : > I doubt you need to understand the failure and patch the tests for this. > With the id on class level they should work as before. You're right. Only the import/export tests needed updating as they used another id. > And please don't forget to remove

Re: [Zope-CMF] CMF Tests: 3 OK, 2 Failed

2010-04-19 Thread yuppie
Hi Charlie! Charlie Clark wrote: > Am 15.04.2010, 15:03 Uhr, schrieb yuppie: >> UniqueObject is derived from ImmutableId. I think you have to set this >> for the class: >> id = 'cookie_authentication' > > Okay, makes sense if the tests are patched accordingly. Need to check what > was causing