Definition at line 8 of file AFPDBBase.py.
◆ serialiseTypes()
def AFPDBBase.AFPDBRecordBase.serialiseTypes |
( |
|
self | ) |
|
Definition at line 21 of file AFPDBBase.py.
21 def serialiseTypes (self):
22 output =
'"folder_payloadspec": "'
23 for quantity
in dir(self):
24 if not callable(getattr(self, quantity))
and not quantity.startswith(
'__'):
25 output += quantity +
': ' + self.translateType(
type(getattr(self, quantity))) +
', '
◆ serialiseValues()
def AFPDBBase.AFPDBRecordBase.serialiseValues |
( |
|
self | ) |
|
Definition at line 9 of file AFPDBBase.py.
9 def serialiseValues (self):
11 for quantity
in dir(self):
12 if not callable(getattr(self, quantity))
and not quantity.startswith(
"__"):
14 output +=
str(getattr(self, quantity)) +
", "
◆ translateType()
def AFPDBBase.AFPDBRecordBase.translateType |
( |
|
self, |
|
|
|
typeName |
|
) |
| |
Definition at line 32 of file AFPDBBase.py.
32 def translateType (self, typeName):
35 elif (typeName == float):
37 elif (typeName == str):
40 raise ValueError (
"Unknown type of field, typeName is %s. Need to update method translateType in AFPDBBase.py" % typeName)
The documentation for this class was generated from the following file: