results from active handler in a separate module
Christopher Clarke <cclarke-wYfHrJ5eQDBWk0Htik3J/[email protected]> Thu, 28 Jun 2007 13:55:21 -0400
| Newsgroups | gmane.comp.python.spyce.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1813726695==
Content-Type: multipart/alternative; boundary=Apple-Mail-1-735174854
--Apple-Mail-1-735174854
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Hi All
In the active handler example handlerintro.spy
when i move calculate "outline" i.e to a module such as calculate.py
--
def calculate(api,x,y):
results=x*y
---
how do i get a handle on the results from the spy file?
Regards
Chris
--Apple-Mail-1-735174854
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
charset=ISO-8859-1
<HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; ">Hi All<DIV>In the active handler =
example=A0<FONT class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN=
class=3D"Apple-style-span" style=3D"font-size: =
13px;">handlerintro.spy</SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 13px;">when i move =
calculate "outline" i.e<B>=A0</B>to a module such as =
calculate.py</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 13px;">--</SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 13px;">def =
calculate(api,x,y):</SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: 13px;">=A0 =
=A0results=3Dx*y</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 13px;"><BR =
class=3D"khtml-block-placeholder"></SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: =
13px;">---</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 13px;">how do i get a handle on the results from the =
spy file?</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 13px;">Regards</SPAN></FONT></DIV><DIV><FONT =
class=3D"Apple-style-span" face=3D"Arial" size=3D"3"><SPAN =
class=3D"Apple-style-span" style=3D"font-size: =
13px;">Chris</SPAN></FONT></DIV><DIV><FONT class=3D"Apple-style-span" =
face=3D"Arial" size=3D"3"><SPAN class=3D"Apple-style-span" =
style=3D"font-size: 13px;"><BR =
class=3D"khtml-block-placeholder"></SPAN></FONT></DIV></BODY></HTML>=
--Apple-Mail-1-735174854--
--===============1813726695==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--===============1813726695==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Spyce-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spyce-users
--===============1813726695==--