Skip to content

jtgraves/ted_wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

ted_wrapper

This tool is a wrapper for the TED system to be used for directory lookups.

Installation

To bring this into a PyPE project you will need to add a new svn:externals property.

If you are using Tortoise:

Backwards Compatibility

PyPE applications that currently use the ted lookups in versions of infrastructure prior to 1.8 will not need to change their code, but will need to add a new svn:externals property in order to continue making those calls once they upgrade to 1.8. See Installation.

Use

There are two methods in the ted_lookup module (by_eid and by_uin), and they both require these paramters:

eid or uin: The identifier of the person you are looking up addl_attrs: There is a standard set of directory info that is brought back for all lookups as defined in ted.py. However, you can request that additional directory info be brought back. See http://www.utexas.edu/its/help/ted/1064 for the full set of available attributes. ted_eid: Your application's service EID which has been authorized to query TED. ted_pass: The password associated with the ted_eid. ted_host: The url of the TED service.

Example lookup by EID:

from ted import ted_lookup

directory_info = ted_lookup.by_eid(
    eid='foobar',
    addl_attrs=[
        'telephoneNumber',
        'utexasEduPersonOfficeLocation',
        ],
    ted_eid=settings.TED_EID,
    ted_pass=settings.TED_PASSWORD,
    ted_host=settings.TED_HOSTNAME,
    )

About

wrapper for the UT TED system.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages