Skip to content
Snippets Groups Projects

DOC: Update tutorial on error handling

Merged Florian Spreckelsen requested to merge f-doc-errors into dev

Files

+ 4
3
@@ -25,8 +25,8 @@
@@ -25,8 +25,8 @@
As a result, only a specific user or group may access it.
As a result, only a specific user or group may access it.
This script assumes that the user specified in the
This script assumes that the user specified in the pycaosdb.ini
pycaosdb.ini configuration can create new entities.
configuration can create new entities.
"""
"""
@@ -206,7 +206,8 @@ def create_test_entities():
@@ -206,7 +206,8 @@ def create_test_entities():
After calling this function, there will be a RecordType "Human Food" with the corresponding Records
After calling this function, there will be a RecordType "Human Food" with the corresponding Records
"Bread", "Tomatoes", and "Twinkies" inserted in the database.
"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")
food = ("Bread", "Tomatoes", "Twinkies")
cont = db.Container()
cont = db.Container()
Loading