[Zope] Flash remoting and Zope

Jet Wilda jet.wilda@kobie.com
Fri, 6 Jun 2003 11:34:30 -0400


This is a multi-part message in MIME format.

------_=_NextPart_001_01C32C41.1F3C5AA0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
    Does anyone know how to get Flash to work with zope so that we can
load dynamic data into flash from zope objects(zSQL, python scripts,
DTML, etc).  I found this
          // In Flash, from a button instance...=20
                on (release) {=20
                    loadVariablesNum
("http://www.yourzopesite.com/zsqlMethods/loadData", 0);=20
                }=20
        # In Zope=20
                Where loadData is a DTML method with this content:=20
                    <dtml-call expr=3D"readDB(_)">=20
        That loads a ZSQL method called readDB with the following SQL:=20
                SELECT * FROM myTable WHERE user_id =3D 1;=20
at  http://www.ultraviolet.org/mail-archives/zope.2002/0219.html
<http://www.ultraviolet.org/mail-archives/zope.2002/0219.html>  and it
doesn't seem to work.
=20
    Then I found an XML-RPC client for Flash
http://sourceforge.net/projects/xmlrpcflash and that doesn't seem to
work.  I think to get it to work I would need to run apache 2 and
rewrite the header
http://www.zope.org/Members/ike/Flash-Zope/FLASH_xmlrpc_zope .=20
=20
Is there anyway to get dynamic data into and out of Flash using zope
objects?  Also without using apache?
=20
Any and all help on this would be greatly apreciated.
=20
Thank you for your time.
=20
=20
Jet
=20
=20
=20

------_=_NextPart_001_01C32C41.1F3C5AA0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003>&nbsp;&nbsp;&nbsp; <FONT =
face=3DArial=20
size=3D2>Does anyone know how to get Flash to work with zope so that we =
can load=20
dynamic data into flash from zope objects(zSQL, python scripts, DTML,=20
etc).&nbsp; I found this</FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial =
size=3D2><!--StartFragment --><FONT face=3D"Times New Roman"=20
size=3D3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
</FONT>// In=20
Flash, from a button=20
instance...&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
on (release)=20
{&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
loadVariablesNum ("<A=20
href=3D"http://www.yourzopesite.com/zsqlMethods/loadData">http://www.your=
zopesite.com/zsqlMethods/loadData</A>",=20
0);&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
} </FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # In=20
Zope&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
Where loadData is a DTML method with this=20
content:&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;dtml-call expr=3D"readDB(_)"&gt; </FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; That loads a ZSQL =
method=20
called readDB with the following=20
SQL:&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
SELECT * FROM myTable WHERE user_id =3D 1; </FONT></SPAN><SPAN=20
class=3D007340115-06062003><FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2><SPAN =
class=3D007340115-06062003>at=20
</SPAN>&nbsp;</FONT></FONT><A=20
href=3D"http://www.ultraviolet.org/mail-archives/zope.2002/0219.html"><FO=
NT=20
face=3DArial=20
size=3D2>http://www.ultraviolet.org/mail-archives/zope.2002/0219.html</FO=
NT></A><FONT=20
face=3DArial size=3D2>&nbsp;and it doesn't seem to work.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV></FONT></SPAN><SPAN class=3D007340115-06062003><FONT=20
face=3DArial>&nbsp;&nbsp;&nbsp; <FONT size=3D2>Then I found an XML-RPC =
client for=20
Flash <A=20
href=3D"http://sourceforge.net/projects/xmlrpcflash">http://sourceforge.n=
et/projects/xmlrpcflash</A>&nbsp;and=20
that doesn't seem to work.&nbsp; I think to get it to work I would need =
to run=20
apache 2 and rewrite the header <A=20
href=3D"http://www.zope.org/Members/ike/Flash-Zope/FLASH_xmlrpc_zope">htt=
p://www.zope.org/Members/ike/Flash-Zope/FLASH_xmlrpc_zope</A>&nbsp;.&nbsp=
;</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial size=3D2>Is =
there anyway to=20
get dynamic data into and out of Flash using zope objects?&nbsp; Also =
without=20
using apache?</FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial size=3D2>Any =
and all help on=20
this would be greatly apreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial size=3D2>Thank =
you for your=20
time.</FONT></SPAN></DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D007340115-06062003><FONT face=3DArial=20
size=3D2>Jet</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV align=3Dleft>&nbsp;</DIV>
<DIV>&nbsp;</DIV></BODY></HTML>
=00
------_=_NextPart_001_01C32C41.1F3C5AA0--