Re: Some more XML-RPC questions

Helge Hess <[email protected]>
Newsgroups gmane.comp.cms.opengroupware.xmlrpc.devel
Message-ID <[email protected]>
Werner Schuster wrote:
> Team:
>  - why is there no team.update ?

There is team.setMembers. If you need team.update, please post an enh-bug.

>  - what is the "ownerID" in the Team document?
>    is that an Id of an Account or of a Person?

owner_id's are always accounts.

>  - what is this "isLocationTeam" field in the Team document?
> the name suggests a boolean that tells whether the Team ... well,
> is a "LocationTeam"... but is that right? If not, what does this
> field contain?

Yes, this is right. Its a boolean which marks a team as a "location" (eg 
London, Munich). Whether this has practical value, I don't know ;-)
Its a bit more convenient to select a location in the UI.

> Person:
>   - Well, there we're a little confused about the Person document;

Martin can probably tell more about Person documents when he is back ...

> the Address information is stored in a Map, where the key is the
> name of the Address ("location", "mailing", etc).

Yes.

> But the Phone information seems a little too redundant:
> there is a list that contains the Phone types, then there is a
> Map where the Phone documents are stored with their phone type as
> key AND those Phone documents have again a field that stores the
> Phones type... hmm... is there a reason for that?

Not sure. The "model idea" is that you have a "company" record which has 
named "address" and "phone" records (1:N, 1:N).

You may want to post a bug if you think there is redundant information. 
Note that the information may indeed be redundant in the Document ObjC 
object for speed and that the XML-RPC representation is autogenerated.
Anyway, Martin must tell ;-) And I'm not sure whether we want to break 
the output for legacy reasons.

>  - about the keys of the Map storing the Addres documents: are those
> keys defined in OGo? I mean mustthe names "location", etc. be used or
> are they user defined?

In theory they are user defined, but in practice the WebUI frontend only 
displayed the default set (AFAIK, Martin?) The set of default address 
always created is LSAddressType, see Defaults.plist.

You may want to submit a bug "add user defined addresses" to Bugzilla.

>  - similar question about the phone types: are they userdefined or
> standard in OGo?

Somewhat like above. But I think the viewers display all available 
phones, its configurable using the LSTeleType default (see 
Defaults.plist in LSAddress).

Added the plist to docs:
 
http://docs.opengroupware.org/Members/helge/.personal/Address%20Defaults/document_view

> Thanks in advance to whoever answers these questions (we shall
> thank you with a very-early-alpha-if-not-experimental release of JOGI some
> time next week (hopefully Tuesday));

:-)

> PS: Note to Helge Hess: about the OGo Bug #12, we are a little pressed
> for time right now, so we cannot test this at the moment; I hope this is
> not a problem;

Seems to be fixed, Burkhard checked. Close the bug.

regards,
   Helge
-- 
http://www.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.