Skip to content
Snippets Groups Projects

FIX: use identifiable instead of record

Merged Henrik tom Wörden requested to merge f-identifiable into dev
All threads resolved!
Compare and
5 files
+ 185
176
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -83,19 +83,7 @@ def clear_database():
def create_identifiable_adapter():
ident = CaosDBIdentifiableAdapter()
ident.register_identifiable("license", (
db.RecordType()
.add_parent("license")
.add_property("name")))
ident.register_identifiable("project_type", (
db.RecordType()
.add_parent("project_type")
.add_property("name")))
ident.register_identifiable("Person", (
db.RecordType()
.add_parent("Person")
.add_property("full_name")))
ident.load_from_yaml_definition(os.path.join(DATADIR, "identifiables.yml"))
return ident
Loading