[dev] shared adressbook
    jvandal at infoteck.qc.ca 
    jvandal at infoteck.qc.ca
       
    Sun Apr 18 08:01:32 PDT 2004
    
    
  
> Yes, forgot to mention that I was using head. Okay, you say you use 
> permissions, thus under permissions, turba you create a sub catergory 
> with the name of the addressbook, or do you have to create the 
> addressbook under another sub catergory.. 
> ie. 
> turba - addressbooks - My addressbook 
> and 
> turba - addressbooks - Shared addressbook 
> 
> This of course me using addressbooks stored in an SQL base. 
I have create "standard" sources for each addressbook, since all my contacts are on the same database, I have add new parametesr to the turba/lib/Driver/sql.php to specify additionnal WHERE and JOIN clauses. (This patch work only for sql drivers and have never been post to dev list so if you need it I can sent it)
 $cfgSources['list1'] = array(
    'title' => _("Student"),
    'type' => 'sql',
    ...
    'whereextra' => ' AccountType=0',
);
 $cfgSources['list2'] = array(
    'title' => _("Teacher"),
    'type' => 'sql',
    ...
    'whereextra' => ' AccountType=1',
);
...
For permissions, it look like:
turba
   Sources
        list1
             user1
             user2
             group1
             ...
      list2
             user3
             group2
             group3             
      ...
--
Joel Vandal
Infoteck Internet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1030 bytes
Desc: Clef publique PGP
Url : http://lists.horde.org/archives/dev/attachments/20040418/54933f92/attachment.bin
    
    
More information about the dev
mailing list