[Zope-CMF] Publishing CMF Objects with ZPublisher.Client

Dieter Maurer dieter@handshake.de
Sat, 12 Jan 2002 19:34:20 +0100


Doyon, Jean-Francois writes:
 > I'm trying to modify the load_site.py script in order to batch upload CMF
 > content using CMFDefault object-types, and am having some trouble.
 > 
 > Right now I have a line that says:
 > 
 > call(object.manage_addProduct['CMFDefault'].manage_addContent(type='Document
 > ', id=name))
Although, ZPublisher.Client tries to provide the same interface as
the true objects, it does not succeed completely:

    "object.manage_addProduct" is a "Function" in the client,
    not a "ProductDispatcher" as on the server.

    The "Function" class does not define "__getitem__" as
    would be necessary for subscription access.


Dieter