This module provides common functionalities required by ASP applications and other modules.
More...
This module provides common functionalities required by ASP applications and other modules.
def aspMisc.getCNameT |
( |
|
clNameT | ) |
|
Convert a clNameT object into a string Its probably a bug somewhere, but sometimes the clNameT is not correctly ended by SWIG, so this function applies fixups.
- Parameters
-
clNameT | ASP clNameT C object |
- Returns
- string of the name
def aspMisc.getErrorString |
( |
|
errCode | ) |
|
def aspMisc.SaVersionT |
( |
|
releaseCode, |
|
|
|
major, |
|
|
|
minor |
|
) |
| |
Create a new initialized SAF SaVersionT C object.
- Parameters
-
releaseCode | A single character string indicating the SAF release code |
major | SAF major version (integer) |
minor | SAF minor version (integer) |
def aspMisc.setCNameT |
( |
|
clNameT, |
|
|
|
s |
|
) |
| |
Put a string into an ASP clNameT C object.
- Parameters
-
clNameT | the destination C code |
str | The source string |
- Returns
- clNameT
def aspMisc.setSaVersionT |
( |
|
saVersionT, |
|
|
|
releaseCode, |
|
|
|
major, |
|
|
|
minor |
|
) |
| |
Set the SAF SaVersionT C object.
- Parameters
-
saVersionT | The object (of type asp.SaVersionT) to be modified |
releaseCode | A single character string indicating the SAF release code |
major | SAF major version (integer) |
minor | SAF minor version (integer) |
dictionary aspMisc.AspError |
Initial value:
2 asp.SA_AIS_OK:
"SA_AIS_OK",
3 asp.SA_AIS_ERR_LIBRARY:
"SA_AIS_ERR_LIBRARY",
4 asp.SA_AIS_ERR_VERSION:
"SA_AIS_ERR_VERSION",
5 asp.SA_AIS_ERR_INIT:
"SA_AIS_ERR_INIT",
6 asp.SA_AIS_ERR_TIMEOUT:
"SA_AIS_ERR_TIMEOUT",
7 asp.SA_AIS_ERR_TRY_AGAIN:
"SA_AIS_ERR_TRY_AGAIN",
8 asp.SA_AIS_ERR_INVALID_PARAM:
"SA_AIS_ERR_INVALID_PARAM",
9 asp.SA_AIS_ERR_NO_MEMORY:
"SA_AIS_ERR_NO_MEMORY",
10 asp.SA_AIS_ERR_BAD_HANDLE:
"SA_AIS_ERR_BAD_HANDLE",
11 asp.SA_AIS_ERR_BUSY:
"SA_AIS_ERR_BUSY",
12 asp.SA_AIS_ERR_ACCESS:
"SA_AIS_ERR_ACCESS",
13 asp.SA_AIS_ERR_NOT_EXIST:
"SA_AIS_ERR_NOT_EXIST",
14 asp.SA_AIS_ERR_NAME_TOO_LONG:
"SA_AIS_ERR_NAME_TOO_LONG",
15 asp.SA_AIS_ERR_EXIST:
"SA_AIS_ERR_EXIST",
16 asp.SA_AIS_ERR_NO_SPACE:
"SA_AIS_ERR_NO_SPACE",
17 asp.SA_AIS_ERR_INTERRUPT:
"SA_AIS_ERR_INTERRUPT",
18 asp.SA_AIS_ERR_NAME_NOT_FOUND:
"SA_AIS_ERR_NAME_NOT_FOUND",
19 asp.SA_AIS_ERR_NO_RESOURCES:
"SA_AIS_ERR_NO_RESOURCES",
20 asp.SA_AIS_ERR_NOT_SUPPORTED:
"SA_AIS_ERR_NOT_SUPPORTED",
21 asp.SA_AIS_ERR_BAD_OPERATION:
"SA_AIS_ERR_BAD_OPERATION",
22 asp.SA_AIS_ERR_FAILED_OPERATION:
"SA_AIS_ERR_FAILED_OPERATION",
23 asp.SA_AIS_ERR_MESSAGE_ERROR:
"SA_AIS_ERR_MESSAGE_ERROR",
24 asp.SA_AIS_ERR_QUEUE_FULL:
"SA_AIS_ERR_QUEUE_FULL",
25 asp.SA_AIS_ERR_QUEUE_NOT_AVAILABLE:
"SA_AIS_ERR_QUEUE_NOT_AVAILABLE",
26 asp.SA_AIS_ERR_BAD_FLAGS:
"SA_AIS_ERR_BAD_FLAGS",
27 asp.SA_AIS_ERR_TOO_BIG:
"SA_AIS_ERR_TOO_BIG",
28 asp.SA_AIS_ERR_NO_SECTIONS:
"SA_AIS_ERR_NO_SECTIONS"