Hey Malcolm,

thanks for your help!

Malcolm Tredinnick:
> There is no signal dispatched in the manipulators, so your best bet
> would be to replace the get_validation_errors() method in the
> Manipulator class with your own method that calls the original method
> and then sends off any signal or further processing that you want to do.
> Since custom manipulators sub-class Manipulator, this is easy.

Since this actually happens in 'get_advisories()' (which I 
patched into Manipulator), I changed it there. I finally decided 
to do it the other way around, and do it a bit more generic. 
get_advisories() looks if any validator has a 'prepare' method 
(and calls all prepare()s before calling the the validators).
This way the validator can start the dns query in prepare() and 
in __call__() check the result. Works fine, though it's a very 
special solution.

Michael


-- 
noris network AG - Deutschherrnstraße 15-19 - D-90429 Nürnberg -
Tel +49 911 9352-0 - Fax +49 911 9352-100

http://www.noris.de - The IT-Outsourcing Company

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to