[dev] shared adressbook

tim email at teletechnics.com
Sun Apr 18 15:30:39 PDT 2004


Hello Joel,

Thanks for that, all sorted.
Not quite sure what your extra parameter are supposed to do, but by
setting permission as you mentioned,
and setting said address book in sources.php to
    'public' => true,
    'readonly' => false,
    'admin' => array(),
made the address book available to those I want and that they see the
entries in commune.

jiqc> I have create "standard" sources for each addressbook,
jiqc> since all my contacts are on the same database, I have add new
jiqc> parametesr to the turba/lib/Driver/sql.php to specify
jiqc> additionnal WHERE and JOIN clauses. (This patch work only for
jiqc> sql drivers and have never been post to dev list so if you need
jiqc> it I can sent it)

jiqc>  $cfgSources['list1'] = array(
jiqc>     'title' => _("Student"),
jiqc>     'type' => 'sql',
jiqc>     ...
jiqc>     'whereextra' => ' AccountType=0',
jiqc> );

jiqc>  $cfgSources['list2'] = array(
jiqc>     'title' => _("Teacher"),
jiqc>     'type' => 'sql',
jiqc>     ...
jiqc>     'whereextra' => ' AccountType=1',
jiqc> );

jiqc> ...

jiqc> For permissions, it look like:

jiqc> turba
jiqc>    Sources
jiqc>         list1
jiqc>              user1
jiqc>              user2
jiqc>              group1
jiqc>              ...
jiqc>       list2
jiqc>              user3
jiqc>              group2
jiqc>              group3             
jiqc>       ...

jiqc> --
jiqc> Joel Vandal
jiqc> Infoteck Internet



-- 
Best regards,
 tim                            mailto:email at teletechnics.com



More information about the dev mailing list