Public Member Functions | |
def | __init__ |
def | addRow |
def | send |
def | clearRows |
def | __str__ |
Public Attributes | |
password | |
group | |
url | |
args | |
urlWithArgs | |
data | |
Private Member Functions | |
def | __buildReq |
def | __signature |
Collects data intended for a hardware database table. On command, the data is sent to a server for loading.
Definition at line 24 of file DataLoader3.py.
def DataLoader3.DataLoader.__init__ | ( | self, | |
password, | |||
url, | |||
group, | |||
table | |||
) |
Class constructor. Args: password - Agreed upon password - for the group. url - Http URL to the server used for loading. group - Group the table is part of. table - Postgresql database table data will be loaded into.
Definition at line 28 of file DataLoader3.py.
|
private |
Definition at line 108 of file DataLoader3.py.
|
private |
Definition at line 111 of file DataLoader3.py.
def DataLoader3.DataLoader.__str__ | ( | self | ) |
Definition at line 118 of file DataLoader3.py.
def DataLoader3.DataLoader.addRow | ( | self, | |
row, | |||
mode = 'insert' |
|||
) |
Adds a single row of data to the instance. This row will be inserted or updated in the database. Args: row - a dictionary containing a name/value pair for each required table column. mode - insert or update
Definition at line 46 of file DataLoader3.py.
def DataLoader3.DataLoader.clearRows | ( | self | ) |
Deletes all rows from the instance, readying it for the next set of data.
Definition at line 102 of file DataLoader3.py.
def DataLoader3.DataLoader.send | ( | self, | |
echoUrl = False |
|||
) |
Sends the data to the server for loading. Returns: Boolean indicating success and failure of the call. A code indicating Html return status. Text describing any error which returned.
Definition at line 62 of file DataLoader3.py.
DataLoader3.DataLoader.args |
Definition at line 40 of file DataLoader3.py.
DataLoader3.DataLoader.data |
Definition at line 42 of file DataLoader3.py.
DataLoader3.DataLoader.group |
Definition at line 38 of file DataLoader3.py.
DataLoader3.DataLoader.password |
Definition at line 37 of file DataLoader3.py.
DataLoader3.DataLoader.url |
Definition at line 39 of file DataLoader3.py.
DataLoader3.DataLoader.urlWithArgs |
Definition at line 41 of file DataLoader3.py.