Re: deleting an enterprise?

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Hi Stefan,

On Jul 1, 2004, at 14:11, Stefan Kreutter wrote:
> I'm trying to delete an enterprise but I get a strage error: <Fault 0: 
> 'ObjcRuntimeException: NSBoolNumber (instance) does not recognize 
> count'>

Wrong input parameter, error message could be better though ...

> >>> print server.enterprise.getByNumber(4711)
> {'extendedAttrs': {}, 'number': '4711', 'addresses': {'ship': {'type': 
> 'ship',
...

> >>> print server.enterprise.delete(4711)

This is incorrect. You can either use:

   server.enterprise.deleteByNumber("4711")

(note that the enterprise "number" is a string!) or pass in the whole 
object into "delete":

   doc = server.enterprise.getByNumber("4711")
   server.enterprise.delete(doc)

Greets,
   Helge
-- 
http://docs.opengroupware.org/Members/helge/
OpenGroupware.org

-- 
OpenGroupware.org XML-RPC
[email protected]
http://mail.opengroupware.org/mailman/listinfo/xmlrpc
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.