On 1/18/07, yacine chaouche <[EMAIL PROTECTED]> wrote:

I have an ajax application that is composed by :
1) An ajax client which is a web page with a button that calls a zope
object's method, say "toutCompter".
2) An ajax server (zope), with a zope object that has the method
"toutCompter" (all zope object methods are XMLRPC callable right ?).

I use two browsers on two separate machines. I call the methode on the two
browsers, and compares the zope trace and strace output of the network
activity. The problem is that zope says he sends data but strace don't, and
zope says he receives data and again strace don't.

This is the zope/python code that prints to the console :
    def toutCompter(self):
    this method is called via XMLRPC.
        IPAdresse  = self.REQUEST["REMOTE_ADDR"]
        print "ip:",IPAdresse,"requests counting of lines",self.getForm
    ... #some processing here. creation of XMLData
        print "sending results to "+IPAdresse
    return XMLData

Zope says :

<zope traces to the console>
ip: requests counting of lines 10 to 20
ip: requests counting of lines 10 to 20
sending results to
sending results to
ip: requests counting of lines 10 to 20
sending results to
</zope trace>

instead of strace try tcpdump, much more helpful:
tcpdump -i <INTERFACE> -s 0 -A HOST <HOST> AND PORT <PORT>
should show the reality

Best regards,

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to