[turba] 1.2RC2, distribution lists, and read only sources

Adam Tauno Williams adam at morrison-ind.com
Sun Mar 2 22:24:37 PST 2003


Is there a way to remove the create list option on read only data sources (such
as the one below).  I've added a field the the view that this queries that
always returns 'Contact', which solved a problem of loading every item in the
data source as a list, even when only a few records matched the query.  With a
database of >100k entries, this made the pages take awhile to load. :)  Since
this view is read-only all attempts to create a new list fail with the Failed to
create list message.

Is there a way for distribution lists to span sources?  Such as creating a list
in my personal address book and adding objects from other source?  I thought I
read about this on the list at one point but don't see anything new in the
config files that seems to pertain.

$cfgSources['mtacust'] = array(
    'title' => 'MTA Customer List',
    'type' => 'sql',
    'params' => array(
        'phptype' => 'odbc',
        'hostspec' => 'miecr',
        'username' => 'intranet',
        'password' => 'intranet',
        'database' => '',
        'table' => 'v_turba_mtacust'
    ),
    'map' => array(
        '__key' => 'record_id',
        '__type' => 'object_type',
        'mtacustomerno' => 'customerno',
        'name' => 'company',
        'workAddress' => 'address',
        'salespersoncode' => 'salescode',
        'salesperson' => 'salesname',
        'workPhone' => 'phone'
    ),
    'search' => array(
        'mtacustomerno',
        'salespersoncode',
        'name'
    ),
    'strict' => array(
        'record_id'
    ),
    'public' => true,
    'readonly' => true,
    'export' => false
);



More information about the turba mailing list