[Zope] Re: where's the XML?

Tres Seaver tseaver at palladion.com
Wed Apr 12 10:16:24 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Erik Myllymaki wrote:

> I want to access numerous methods/functions on a zope server via
> Javascript. Zope has xml "built-in" right?

Zope is about publishing *Python objects*;  any available XML support
which is focused on that (e.g., you can export objects from the ZODB as
XML pickles;  you can render an object to XML using a ZopePageTemplate,
etc.)

> So must I write my own XML output?

If you call a Zope method over XMLRPC, and return Python primitives
(lists, dicts, strings, ints, etc.), then Python's XMLRPC library will
marshall those objects to the XMLRPC XML dialect for you.  (BTW, the "X"
in "AJAX"" was originally about =XMLRPC, not about arbitrary XML).


Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEPQu4+gerLs4ltQ4RAmnpAJ9icf/BHfyJWMeLuYPKI293PuawUgCeMRbQ
Foojc58g6Vrm/XAu7iJzn9o=
=9TCI
-----END PGP SIGNATURE-----



More information about the Zope mailing list