[imp] Any way to have two local MySQL based directories?

lists at carmelme.com lists at carmelme.com
Wed Jan 22 14:17:50 PST 2003


Here is my config, am I doing it right?


$cfgSources['localsql'] = array(
    'title' => 'Carmel',
    'type' => 'sql',
    'params' => array(
        'phptype' => 'mysql',
        'hostspec' => 'localhost',
        'username' => 'horde',
        'password' => 'password',
        'database' => 'horde',
        'table' => 'turba_objects_pub'
    ),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        'name' => 'object_name',
        'email' => 'object_email',
        'homeAddress' => 'object_homeAddress',
        'workAddress' => 'object_workAddress',
        'homePhone' => 'object_homePhone',
        'workPhone' => 'object_workPhone',
        'cellPhone' => 'object_cellPhone',
        'fax' => 'object_fax',
        'title' => 'object_title',
        'company' => 'object_company',
        'notes' => 'object_notes'
    ),
    'search' => array(
        'name',
        'company'
    ),
    'strict' => array(
        'object_id'
    ),
    'public' => true,
    'readonly' => false,
    'admin' => array(),
    'export' => true
);
$cfgSources['localsql'] = array(
    'title' => 'Personal',
    'type' => 'sql',
    'params' => array(
        'phptype' => 'mysql',
        'hostspec' => 'localhost',
        'username' => 'horde',
        'password' => 'password',
        'database' => 'horde',
        'table' => 'turba_objects'
    ),
    'map' => array(
        '__key' => 'object_id',
        '__owner' => 'owner_id',
        'name' => 'object_name',
        'email' => 'object_email',
        'homeAddress' => 'object_homeAddress',
        'workAddress' => 'object_workAddress',
        'homePhone' => 'object_homePhone',
        'workPhone' => 'object_workPhone',
        'cellPhone' => 'object_cellPhone',
        'fax' => 'object_fax',
        'title' => 'object_title',
        'company' => 'object_company',
        'notes' => 'object_notes'
    ),
    'search' => array(
        'name',
        'company'
    ),
    'strict' => array(
        'object_id'
    ),
    'public' => true,
    'readonly' => false,
    'admin' => array(),
    'export' => true
);


Quoting Chuck Hagenbuch <chuck at horde.org>:

> Quoting lists at carmelme.com:
> 
> > I tried to cofigure my Turba with IMP to have two local MySQL based
> > directories, but any time I try to borwse, only one shows up.
> 
> Make sure you changed the name of the second one, too (and the array key
> name).
> 
> -chuck
> 
> --
> Charles Hagenbuch, <chuck at horde.org>
> must ... find ... acorns ... *thud*
> 
> -- 
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> 





More information about the imp mailing list