[turba] Re: Turba Patch - allowing LDAP addresses to be added to SQL - FIXED ADVANCED SEARCH

Rob Wiltbank chade at hopi.dtcc.edu
Mon Aug 18 07:59:47 PDT 2003


I ran into the usual patch issues I usually do -- wound up installing it 
by hand and creating a patch that can be deployed on our system but, other 
than that, it works great.  One small detail, in adduser.inc there is no 
end php tag (?>).

Thanks so much for your work on this, Jon -- great work. :)

Regards,
Rob

On Mon, 18 Aug 2003, jonathan soong wrote:

> Ok,
> 
> I have fixed it now so that Advanced Search results can be added to the 
> Personal Address Book.
> 
> I have done this for Turba 1.2 STABLE.
> 
> I did this by moving the TURBA_ADD functionality into a separate include 
> file "lib/adduser.inc" (so that normal
> Search/Browse/Advanced Search can all use the functionality). This makes 
> sense to me.
> 
> The patch is attached. (It should be applied to Turba 1.2 STABLE).
> 
> Jon
> --------------------------------------------------------------------------------------------------------------
>     I have altered:
>             advanced.php
>             browse.php
>             lib/AbstractObject.php
>             lib/api.php
>             lib/Group.php
>             lib/Turba.php
>             templates/browse/actions.inc
>             templates/browse/contactrow.inc
>    
>     And added:
>              /lib/adduser.inc
> 
>         
> Below are some notes, and things that NEED to be changed to make it work.
> -------------------------------------------------------------------------------------------------------------- 
> 
> NOTE:
> In config/sources.php, you will need to add the following line to the 
> bottom of the file, where 'localsql' is the name  of your
> sql source.. (i.e. $cfgSources['localsql'] )
> 
>  define('PERSONAL_ADDRESS_BOOK_SOURCE', 'localsql');
> 
> Also, make sure that  $cfgSources['localsql'] array has something that 
> looks like:
> 
>         'map' => array(
>            '__key' => 'object_id',
>            '__owner' => 'owner_id',
>            '__type' => 'object_type',
>            '__members' => 'object_members',
> 
> Also,
>    In lib/api.php, i don't check for 'turba_lists' as was in 1.2 STABLE, 
> i couldn't work out why this was needed, so i just
>   assume it is a turba_list.
> ---------------------------------------------------------------------------------------------------------------------
> 
> 

-- 

*******************************************************************
*    Rob Wiltbank        * Delaware Technical & Community College *
* Application Specialist *      Computer Services Department      * 
*  chade at hopi.dtcc.edu   *          Wilmington Campus             *
*     302.571.5398       *            Lackey @ Large              *
*******************************************************************



More information about the turba mailing list