[dev] turba-git prefs
Ralf Lang
lang at b1-systems.de
Wed Apr 6 07:08:16 UTC 2011
Am Dienstag, 5. April 2011, 17:58:25 schrieb Michael Rubinsky:
> Quoting Ronan SALMON <rsalmon at mbpgroup.com>:
> >>> But, reading your comment, I understand now that I've been misled
> >>> by comments in turba/config/prefs.php :
> >>>
> >>> // Address books to be displayed in the address book selection widget
> >>> // and in the Browse menu item. The address book name is stored using
> >>> // the source key from backends.php (e.g. "localsql").
> >>> // You can provide default values this way:
> >>> // 'value' => json_encode(array('source_one', 'source_two'))
> >>>
> >>> There are a few comments/examples making references to backend
> >>> 'localsql'. This is really confusing me.
> >>
> >> Yeah, good point. We should tweak the text in that file. "localsql"
> >> will work, but only if it is not being backed by shares...as was
> >> the defaults in earlier versions of Horde, hence the reason that
> >> using 'localsql' worked for you in the past.
> >
> > In the previous version I'm currently running, this is working like a
> > charm : $cfgSources['localsql']['use_shares'] = true;
> > $_prefs['addressbooks']['value'] = "localsql\nfavourites\nlocalldap";
>
> Out of curiousity, what versions of Horde/Turba is this? I have *no*
> idea how this could ever work, as the key 'localsql' never represents
> a single address book when using shares, except maybe in a very early,
> buggy, implementation of share support in Turba. In your case, this
> *always* maps to the user's default address book? Do your user's have
> multiple Turba shares? Not in front of the code at the moment, but
> really no idea what's going on if that's the case, and I wrote most of
> that code :)
I did run something similar in the past. Don't know how it worked but localsql
somehow expanded to the actual share id on share creation / initial login.
At least that's how I rationalized that it was working - and it did.
--
Ralf Lang
Linux Consultant / Developer
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
More information about the dev
mailing list