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

Michael Rubinsky mrubinsk at horde.org
Wed Dec 10 15:26:38 UTC 2008


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.


Thanks,
mike

--
The Horde Project (www.horde.org)
mrubinsk at horde.org

"Time just hates me. That's why it made me an adult." - Josh Joplin


More information about the turba mailing list