Re: Webadmin: object type attributes definition

Aleksander Machniak <[email protected]>
Newsgroups gmane.comp.kde.devel.kolab,gmane.comp.kde.kolab.devel
Message-ID <[email protected]>
On 09/28/2012 03:19 PM, Jeroen van Meeuwen wrote:

>> 2. As you see above I removed also 'data' definition. The list of
>> attributes used for auto-generation of attribute values is hardcoded in
>> API code. It means we cannot change this.
> 
> How/where is the list of attributes used for auto-generation hardcoded?

All generate_* methods in kolab_api_service_form_value class. E.g.
generate_cn(). While it checks auto_form_fields, the method used later
is hardcoded:

$cn = trim($postdata['givenname'] . " " . $postdata['sn']);

-- 
Aleksander Machniak
Web Developer, Kolab Systems AG
-------------------------------------------------------
PGP:19359DC1 - http://www.kolabsys.com - http://alec.pl
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.