wrapper class to handles a twisted threadpool
| Parameters: |
|
|---|
pool to handle database connection via sqlalchemy
taskpool to handle sending data
all available pools
A Task is one message to one recipient and is a part of one iro.model.job.ExJob.
| Parameters: |
|
|---|
Creates a iro.model.job.ExJob and start for all recipients one task.
| Parameters: |
|
|---|---|
| Returns: | the new iro.model.job.ExJob object. |
Bases: object
Interface for views.
Returns the bill, of not paid messages.
| Parameters: | user (string) – apikey of a user |
|---|---|
| Return dict: |
|
>>> bill(APIKEY)
{"route1": {"info1":{"anz":1,"price":2.00},
"info2":{"anz":2,"price":5.00},
"anz":3,"price":7.00},
"route2": {"info1":{"anz":3, "price":1.00},
"info3":{"anz":4, "price":8.00},
"anz":7, "price":9.00},
"total": {"anz":10, "price":16.00}
}
Returns all default offernames.
| Parameters: |
|
|---|---|
| Return list: | a list of all possible offer names for a typ |
Return True, if all mailadresses a valid.
| Parameters: | recipients (list) – a list of mailadresses |
|---|---|
| Return boolean: | True – all addresses are valid |
Send a fax.
| Parameters: |
|
|---|---|
| Return integer: | the job id |
Send a mail.
| Parameters: |
|
|---|---|
| Return integer: | the job id |
Returns a list of all possible offernames.
| Parameters: |
|
|---|---|
| Return list: | a list of all possible offer names for a typ |
Send a sms.
| Parameters: |
|
|---|---|
| Return integer: | the job id |
Returns the status of one or more jobs.
| Parameters: |
|
|---|---|
| Return dict: |
|
Warning
detailed is not used yet.
>>> status(APIKEY)
{"1": {"status":"sended"},
"2": {"status":"error"},
"10": {"status":"sending"}}
>>> status(APIKEY,10)
{"10": {"status":"sending"}}