[turba] search sources localsql not working in groupware 1.2 with my setup under contactautocompleter

Dominique LALOT dom.lalot at gmail.com
Wed Dec 10 16:29:44 UTC 2008


Michael Rubinsky a écrit :
>
> Quoting Dominique LALOT <dom.lalot at gmail.com>:
>
>> Hello,
>>
>>
>> I noticed that in ContactAutoCompleter, I was unable to use localsql 
>> contacts. I begun to trace the code, and my localsql source 
>> disappeared here in api.php
>>            if (!in_array($sources[$id], $addressbooks)) {
>>                unset($sources[$id]);
>>            }
>>
>> my log debugging:
>> Dec 10 08:51:16 HORDE [error] [turba] tracedom 2localldaplocalsql 
>> [pid 6275 on line 1288 of 
>> "/var/www/perso/horde-webmail-1.2/turba/lib/api.php"]
>> Dec 10 08:51:16 HORDE [error] [turba] tracedom getaddressbooks 
>> localldap [pid 6275 on line 1295 of 
>> "/var/www/perso/horde-webmail-1.2/turba/lib/api.php"]
>> Dec 10 08:51:16 HORDE [error] [turba] tracedom getaddressbooks 
>> *adbf8cddd942d195cf686bcfdeccbc39* [pid 6275 on line 1295 of 
>> "/var/www/perso/horde-webmail-1.2/turba/lib/api.php"]
>>
>> my debug:
>>    if (!$forceSource) {
>>        // Make sure the selected source is activated in Turba.
>>        $addressbooks = array_keys(Turba::getAddressBooks());
>> foreach($addressbooks as $mybooks){
>>   Horde::logMessage("tracedom getaddressbooks $mybooks" , __FILE__, 
>> __LINE__, PEAR_LOG_ERR);
>> }
>>
>> localsql was not used after as dbf8cddd942d195cf686bcfdeccbc39 does 
>> not match localsql as expected in the code with the prefs setup. I 
>> suppose it comes from the use of turba sharing.. Obviously, I 
>> suppose, that if it's done by a user selecting it's sources, there 
>> will be then a match between the uniqueid and the "localsql" name. 
>> But I want to setup with most of the prefs locked
>
> Your assumptions are correct. It's not possible to lock that pref to a 
> source that is using shares as each user's address book is identified 
> by a unique identifier.
Is a hook possible to get something working as we expected? If not, I'll 
disable the sharing in turba as it's probably a little usage.

Thanks

Dom

-- 
Dominique LALOT
Ingenieur Systeme et Reseaux
Universite de la Mediterrane (Aix-Marseille 2)
http://annuaire.univmed.fr/showuser.php?uid=lalot



More information about the turba mailing list