Definition at line 7 of file AFPDBBase.py.
◆ result
◆ serialiseTypes()
| 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))) +
', '
25
26 output = output[:-2]
27 output += '"'
28
29 return output
30
◆ serialiseValues()
| AFPDBBase.AFPDBRecordBase.serialiseValues |
( |
| self | ) |
|
Definition at line 8 of file AFPDBBase.py.
8 def serialiseValues (self):
9 output = "["
10 for quantity in dir(self):
11 if not callable(getattr(self, quantity)) and not quantity.startswith("__"):
12
13 output += str(getattr(self, quantity)) + ", "
14
15 output = output[:-2]
16 output += "]"
17
18 return output
19
◆ translateType()
| AFPDBBase.AFPDBRecordBase.translateType |
( |
| self, |
|
|
| typeName ) |
Definition at line 31 of file AFPDBBase.py.
31 def translateType (self, typeName):
32 if (typeName == int):
33 return "Int32"
34 elif (typeName == float):
35 return "Float"
36 elif (typeName == str):
37 return "String"
38 else:
39 raise ValueError ("Unknown type of field, typeName is %s. Need to update method translateType in AFPDBBase.py" % typeName)
40
41
The documentation for this class was generated from the following file: