Skip to content
Snippets Groups Projects

DOC: Update tutorial on error handling

Merged Florian Spreckelsen requested to merge f-doc-errors into dev
Files
7
@@ -25,8 +25,8 @@
As a result, only a specific user or group may access it.
This script assumes that the user specified in the
pycaosdb.ini configuration can create new entities.
This script assumes that the user specified in the pycaosdb.ini
configuration can create new entities.
"""
@@ -206,7 +206,8 @@ def create_test_entities():
After calling this function, there will be a RecordType "Human Food" with the corresponding Records
"Bread", "Tomatoes", and "Twinkies" inserted in the database.
"""
rt = db.RecordType(name="Human Food", description="Food that can be eaten only by humans").insert()
rt = db.RecordType(
name="Human Food", description="Food that can be eaten only by humans").insert()
food = ("Bread", "Tomatoes", "Twinkies")
cont = db.Container()
Loading