[turba] Address Book Setup Questions

Adam Tauno Williams adam at morrison-ind.com
Wed Oct 25 07:46:41 PDT 2006


I've written a Turba driver for OpenGroupware -
http://www.opengroupware.org - and it seems to be working pretty well; I
can search, add, edit, and delete.   But to make it work 'perfectly'
I've got some questions about address book 'source' configuration.

1. Compound field (and others) appearing in Advanced Search.

Since OGo supplies a firstname/lastname field I have a field in the
source defined like:

'name' => array('fields' => array('firstname', 'lastname'),
                       'format' => '%s %s'),

 - which appears OK and works as the link to go from search results to
editing the record/object.

But "name" also appears in Advanced Search.  Is it possible to limit the
fields that appear in advanced search?  Since "name" isn't really a
field I can't search it;  it does appear greyd out in the edit and add
screens.  

There are also other fields that cannot be searched but are available to
the user I would like to not appear in the Advanced Search form,  which
seems to just display all the fields.

I have a "search" stanza in the source config -
    'search' => array(
        'displayname',
        'firstname',
        'lastname',
    ),
- but it only limits the 'quick search' screen.

2. Permissions

I pretty sure this isn't possible,  but is there a way to signal the
user interface (perhaps via an attribute) that an object is read-only
and cannot be edited by the the user?  (Sort of like "__owner" divides
up an single source for multiple users.)  I noticed that the abstract
Turba Driver class has a hasPermission permission, but it only applies
to sources/shares (?) [ I'm unclear as the possible values of $perm for
hasPermission($perm) ].



More information about the turba mailing list