Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Some more XML-RPC questions: msg#00014

cms.opengroupware.xmlrpc.devel

Subject: Re: Some more XML-RPC questions

Helge Hess wrote:
[..]
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.

The phone types list contains the configured types which are available [Default: LSTeleType.Person] (see Defaults.plist in Logic/LSAddress).
The phones list contains the phone entries, the person really has in the database. So I think what is redundant is that this is a dictionary (phoneType mapped to entry containing the phoneType again). This was for speed in the Document ObjC object as Helge said. An array would be enough.

- 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.

Most parts of the Contact WebUI already take those configured types. [Default: LSAddressType.Person] At a first look I could only see a few hard-coded mappings (like the cvs-import mapping suggestions). This has to be tested, so submitting a bug would be ok.


- 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).
Yes, it's configurable. But some entries like '01_tel' or '02_tel' should remain in this list. They are often used in overview lists. The same with the extended attribute 'email1'.

regards,
Martin


--
Martin Hoerning www.opengroupware.org

--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
solaris.opensol...    editors.vim/200...    web.turbogears....    jakarta.ant.dev...    mathematics.max...    text.unicode.ge...    lang.ruby.core/...    xfce.announce/2...    network.centeri...    php.cvs.pear/20...    user-groups.lin...    kde.devel.quant...    file-systems.ar...    redhat.fedora.t...    apple.fink.auto...    gnome.orbit.gen...    qplus.devel/200...    culture.transpo...    video.dri.user/...    operators.nanog...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation