-custom-object More...
Classes | |
| class | HelloServer |
Functions | |
| def | embed |
| def | say_hello |
| def | say_hello_array |
| def | say_hello_xml |
Variables | |
| tuple | script_dir = os.path.dirname(__file__) |
-custom-object
-enum
Show 3 different examples for creating an object: 1) create a basic object 2) create a new object type and a instance of the new object type 3) import a new object from xml address space and create a instance of the new object type
This example demonstrates the use of custom enums by: - Create a custom enum type - Create an object that contains a variable of this type
| def server.embed | ( | ) |
Definition at line 7 of file examples/simple-client-server-xml/server.py.
| def server.say_hello | ( | parent, | |
| happy | |||
| ) |
Definition at line 28 of file examples/simple-client-server-xml/server.py.
| def server.say_hello_array | ( | parent, | |
| happy | |||
| ) |
Definition at line 38 of file examples/simple-client-server-xml/server.py.
| def server.say_hello_xml | ( | parent, | |
| happy | |||
| ) |
Definition at line 17 of file examples/simple-client-server-xml/server.py.
| tuple server::script_dir = os.path.dirname(__file__) |
Definition at line 80 of file examples/simple-client-server-xml/server.py.