[Zope-dev] Reg. persisting data in ZODB via forms
Charlie Clark
charlie.clark at clark-consulting.eu
Wed Jun 8 05:40:33 EDT 2011
Am 08.06.2011, 11:31 Uhr, schrieb Joe Steeve <js at hipro.co.in>:
> How do we get the list of subscribers for a particular event?
By checking the registry for all adapters registered.
from zope.component import queryAdapter
queryAdapter(object, interface) ... # check the syntax and make sure you
have the registry loaded.
>> Why do want to disable notification?
> We dont want to disable notification. We are just trying to understand
> how zope.formlib works. We were of the understanding that every
> 'request' starts and ends a transaction automatically (somewhere). So,
> seeing this explicit notify() confused us. Note that adding a new object
> does not require this explicit notify().
The transactional stuff does not happen in zope.formlib. Unfortunately
zope.formlib is a bit opaque in the way it works.
> Further, if we have to expect the developer to manually notify after
> every change, it could invite unnecessary bugs.
Which is why you should let the library handle this for you wherever
possible and something you write tests for.
> We are killing the server with a "Ctrl-C". Maybe something is not
> getting flushed out to the disk yet?
No, that is not likely to be the case.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
More information about the Zope-Dev
mailing list