wuttjamaican.people

People Handler

This is a handler to manage “people” in the DB.

class wuttjamaican.people.PeopleHandler(config)[source]

Base class and default implementation for the “people” handler.

This is responsible for managing Person records, and related things.

get_person(obj, **kwargs)[source]

Return the Person associated with the given object, if one can be found.

This method should accept “any” type of obj and inspect it to determine if/how a person can be found. It should return the “first, most obvious” person in the event that the object is associated with multiple people.

This is a rather fundamental method, in that it is called by several other methods, both within this handler as well as others. There is also a shortcut to it, accessible via wuttjamaican.app.AppHandler.get_person().