PYTHONPATH=$DAQROOT/pythonLibs/nscldaq python3
import LogBook.LogBook as LogBook
...
book = LogBook.LogBook('logbookfile.log')
person = book.get_person(1)
id = person.id
last = person.lastname
first = person.firstname
sal = person.salutation
LogBook.Person is a python class that wraps
instances of persons in the logbook database
LogBook
provides methods that produce LogBook.Person
objects, or tuples of them.
A LogBook.Person object should be thought of
as a container with several read-only attributes. These are:
idThe primary key associated with that person.
lastnameThe last name of the encapsulated person.
firstnameThe given (first) name of the encapsulated person.
salutationThe salutation for the encapsulated person.