Re: Envoking Active Handlers

"Jonathan Ellis" <[email protected]>
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
On Tue, 28 Mar 2006 13:13:37 +1100, "konrad Zielinski"
<[email protected]> said:
> Hi,
> 
> Is it possible to manually envoce acive handlers without using an
> f:submit elment.

Since the handlers are normal python methods, you can call them from
anywhere you can call a python method.

> I Would like to use Active handlers to handle XMLRequest (aka Ajax)
> calls.
> 
> If someone could give me some pointers as to where to look in the source
> that would be good too.

Spyce doesn't do anything to help you with this, yet.  So what you'd do
is put your handlers in a .py module -- in your lib/ directory if you're
following the spyceProject layout -- direct the ajax request to a .spy
page, pull out the request variables, and pass them to your handler
method manually.

I'd like to make this more user-friendly at some point, but I'm not sure
yet exactly how that would work.

Honestly if AJAX is your top priority your best bet is probably the
TurboGears framework at this point in time.  They're the only ones who
have really prioritized that so far.

-Jonathan
-- 
C++ is history repeated as tragedy. Java is history repeated as farce.  --Scott McKay



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.