[Kolab-devel] RFC: "gender" field in contacts

Bernhard Reiter bernhard at intevation.de
Fri Apr 18 15:26:22 CEST 2008


On Thursday 03 April 2008 09:02, Gunnar Wrobel wrote:
> Should I use the attached patch now? People seem to have agreed on the
> format. Though having a bug on horde bug be good for reference anyhow.

Agreement on the format happend on kolab-formats@,
we'll publish the format document 2.0rc7 in the next days. 

The patch still assumes "1" and "0" at serveral places, 
which it should not IMO 
as we have a clear format.

> > That still leaves the question if there is a gender field
> > somewhere hidden in Kontact?

It could be shown in a user defined field.
Maybe we should add an issue for this.


> > --- old/Horde/Kolab/XML/contact.php   Tue Mar 18 09:31:47 2008
> > +++ new/Horde/Kolab/XML/contact.php   Tue Apr  1 16:32:36 2008
> > @@ -334,6 +334,20 @@ class Horde_Kolab_XML_contact extends Ho
> >              }
> >          }
> >  
> > +        // Handle gender field
> > +        if (isset($object['gender'])) {
> > +            $gender = $object['gender'];
> > +
> > +            if ($gender == "female") {
> > +                $object['gender'] = 1;
> > +            } else if ($gender == "male") {
> > +                $object['gender'] = 0;
> > +            } else {
> > +                // unspecified gender
> > +                unset($object['gender']);


-- 
Managing Director - Owner: www.intevation.net       (Free Software Company)
Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com.
Intevation GmbH, Osnabrück, DE; Amtsgericht Osnabrück, HRB 18998
Geschäftsführer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.kolab.org/pipermail/devel/attachments/20080418/25c5f5e4/attachment.sig>


More information about the devel mailing list