Re: Validation and Events
Martin Aspeli <[email protected]> Tue, 26 Sep 2006 07:43:15 -0700 (PDT)
| Newsgroups | gmane.comp.web.zope.plone.archetypes.devel |
|---|---|
| Message-ID | <[email protected]> |
George Lee wrote: > > Trying to figure out -- how do you add an event subscriber in python in a > PloneTestCase test? How do you tear it down? > Run Zope 2.10 and the Plone 3.0 bundle, first of all. Note that here, all ZCML that Plone loads at startup gets loaded (once) by the PloneTestCase ZCML layer. If it's in your configure.zcml, you don't need to set it up or tear it down again. Othewrise, look at zope.component. I think it's something like zope.component.provideSubscriber. Not too sure about the tear-down, but it's probably in zope.component.interfaces. Martin -- View this message in context: http://www.nabble.com/Validation-and-Events-tf2327007.html#a6508341 Sent from the Archetypes - devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV