To Add an Object to the Database:

  • Open pcty/cont_classes/DB_ProblemData.py

  • At the top are various global data structures. Edit the following:
    • Add the object's handle to ClassKeys under its class.

    • If the object has any sub-objects, then add the object and its sub-objects to SubObjectKeys.

    • Add the object's handle to PrettyObjects and keyed to its user-interface version.

    • If the object does not have an associated form, add its handle to ObjsWithoutForm.

    • If the object needs other objects to be viewed, add them to FormObjects.

  • Open pcty/client/forms/SearchDatabaseForm.py

  • Go to the bottom. Inside function openForm() of class FormViewer, add an elif clause that will open the form the same way it is called in its menu command class (just like the other objects are opened).

  • Make sure the object is accessible via getMetadataTypes() and getMetadata() in the ConatinerObj class of pcty/client/StoredData.py.

To Add an Attribute Type to the Database:

  • Open pcty/cont_classes/DB_ProblemData.py

  • At the top are various global data structures. Edit the following:
    • Add the type's system version to AttributeTypes.

    • Add the type's system version version to PrettyAttTypes keyed with its user-interface version.