| | |
| | | ! |
| | | ! CDDL HEADER END |
| | | ! |
| | | ! Copyright 2006-2008 Sun Microsystems, Inc. |
| | | ! Copyright 2006-2009 Sun Microsystems, Inc. |
| | | ! --> |
| | | <stax> |
| | | <defaultcall function="main_schema"/> |
| | |
| | | server.dn = DIRECTORY_INSTANCE_DN |
| | | server.password = DIRECTORY_INSTANCE_PSWD |
| | | server.suffix = DIRECTORY_INSTANCE_SFX |
| | | |
| | | def parse_stax_result(result): |
| | | |
| | | if result.__class__ is org.python.core.PyList: |
| | | _unwrapResult=result[1][0] |
| | | |
| | | try: |
| | | _functionString=_unwrapResult[1] |
| | | except AttributeError: |
| | | _functionString='Unable to parse result.' |
| | | elif result.__class__ is org.python.core.PyString: |
| | | _functionString=STAXResult |
| | | else: |
| | | _functionString='Unable to parse result.' |
| | | |
| | | return _functionString |
| | | </script> |
| | | |
| | | <!-- Run the test suites --> |