Skip to content

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

Home

DLibrary for VW2017

PREVIOUS VERSIONS

Clone this wiki locally