[OGo-Developer] Object Properties Question

Adam Tauno Williams developer@opengroupware.org
Thu, 08 Feb 2007 23:17:16 -0500


--=-K2cBFmC3V/QCAMSba5Sm
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

I can get a dictionary of object properties using -
[[[self getCTX] propertyManager] propertiesForGlobalID:eo];
- in which case the property name as in
"{http://www.opengroupware.org/properties/ext-attr}Color" is the key and
the value is the value (as in "Blue").

However I would very much like to have the object property id (the
obj_property_id column of obj_property) and the "preferredType" (the
preferred_type column in obj_property).  I see these attributes dealt
with in the propertyManager (SkyObjectPropertyManager.m) but no way to
get them.

The property id would provide a unique numeric id making it very easy to
automatically map the data into a client-side database cache;  I've been
able to provide a numeric objectId for everything else in ZOGI.

The preferredType would be necessary for client applications to
determine how to display/manage the property value.  Otherwise it is
impossible to tell a string from a BLOB encoded as a string, for
instance.

--=-K2cBFmC3V/QCAMSba5Sm
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQBFy/XMLRePpNle04MRAnFlAJ94VK/KZnD8VklpoJJxSVMG46ItjgCeO+Vp
PSUBlW3czkEl7d4dP4m2QlE=
=G1OU
-----END PGP SIGNATURE-----

--=-K2cBFmC3V/QCAMSba5Sm--