List Info

Thread: Validation and Events




Validation and Events
user name
2006-09-26 14:20:06
Martin Aspeli <optilude...> writes:

> 
> George Lee wrote:
> >> Also - I don't remember whether notify()
blocks until all event handlers 
> >> have completed or not. Presuming it does, that
approach could work.
> 
> > I smell a test to write.
> 
> Go ahead 

Trying to figure out -- how do you add an event subscriber
in python in a
PloneTestCase test? How do you tear it down?

Peace,
George


------------------------------------------------------------
-------------
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
_______________________________________________
Archetypes-devel mailing list
Archetypes-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archet
ypes-devel
Validation and Events
user name
2006-09-26 14:43:15


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-t
f2327007.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
_______________________________________________
Archetypes-devel mailing list
Archetypes-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/archet
ypes-devel
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )