[xml] discuss. associating "Resolver" with XMLDocument or Stylesheet



I still have on my to-do list modifying Python Resolver callbacks to support bound 
methods, but I think that won't be sufficient in itself to solve my problem.

For example, in Zope there may be multiple threads all wanting to apply a stylesheet to 
a different doc, but doing it with different authorized users.

A single global Resolver callback (even with bound methods), won't work in this case.

What I really need is to associate the Resolver with the stylesheet, or the base 
document.

I'm looking for feedback on this idea.. right way, wrong way.. what's the best way to 
solve this problem?

Could I use the ctx parameter in the Resolver to accomplish this some way? 


Also, with respect to Python modules having to call freeDoc.. Should the Python API 
handle reference counting, or was there a reason why "automatic" C object freeing was 
not implemented?




-- 
Brad Clements,                bkc murkworks com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
http://www.wecanstopspam.org/                   AOL-IM: BKClements




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]