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:
id
The primary key associated with that person.
lastname
The last name of the encapsulated person.
firstname
The given (first) name of the encapsulated person.
salutation
The salutation for the encapsulated person.