-
Notifications
You must be signed in to change notification settings - Fork 3
2016 Example Class
Dieter Geerts edited this page Sep 24, 2016
·
2 revisions
"""This is an example on how to work with class (definitions).
"""
from dlibrary import ObjectRepository, Clazz
def run():
# Create a new class.
clazz = Clazz.create('new-clazz-name')
# Get the class by it's name.
clazz = ObjectRepository().get('clazz-name')
if clazz is None or not isinstance(clazz, Clazz):
return