Definition at line 7 of file AFPDBBase.py.
◆ serialiseTypes()
def AFPDBBase.AFPDBRecordBase.serialiseTypes |
( |
|
self | ) |
|
Definition at line 20 of file AFPDBBase.py.
20 def serialiseTypes (self):
21 output =
'"folder_payloadspec": "'
22 for quantity
in dir(self):
23 if not callable(getattr(self, quantity))
and not quantity.startswith(
'__'):
24 output += quantity +
': ' + self.translateType(
type(getattr(self, quantity))) +
', '
◆ serialiseValues()
def AFPDBBase.AFPDBRecordBase.serialiseValues |
( |
|
self | ) |
|
Definition at line 8 of file AFPDBBase.py.
8 def serialiseValues (self):
10 for quantity
in dir(self):
11 if not callable(getattr(self, quantity))
and not quantity.startswith(
"__"):
13 output +=
str(getattr(self, quantity)) +
", "
◆ translateType()
def AFPDBBase.AFPDBRecordBase.translateType |
( |
|
self, |
|
|
|
typeName |
|
) |
| |
Definition at line 31 of file AFPDBBase.py.
31 def translateType (self, typeName):
34 elif (typeName == float):
36 elif (typeName == str):
39 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: