State of Plone web api

Dylan Jay <djay-n0pU0XVUApFWk0Htik3J/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
<rant>
Plone's web api sucks.
For example setting custom field values on objects via web calls.
For archetypes
  - you can't use the .update method Zope traversal doesn't parse *kwargs type method definitions
  - you can use setFIELDNAME accessors created AT via XMLRPC or normal url. Except that it doesn't work with archetypes.schemaextender fields
  - you can't use XMLRPC for any method that requires keyword args. So accessors that use keywords args can't use XMLRPC
WebDAV
  - doesn't support propfind propset propget for any schema based fields. Only standard fields like Title and creationDate
  - RFC822Marshaller is used for most types so you can upload all the content + custom fields via a PUT request. Except this isn't used for files or images so there is 
    no way via webdav to set custom fields
Dexterity
	Can't be done for dexterity objects at all that I've worked out. Maybe via RFC822Marshaller and PUT but as above, is unlikely to work for File or Images.

So if you want to set schemaextender or dexterity fields or some kind of consistent api for setting... it just isn't there :(
Possibly the only way I can think of doing it with out-of-the-box Plone would be to upload a PythonScript that does the setting for me.

</rant>


Dylan Jay





------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.