Sapan Bhatia | dbaf193 | 2013-09-03 11:28:52 -0400 | [diff] [blame] | 1 | import os |
| 2 | import base64 |
Scott Baker | 86e132c | 2015-02-11 21:38:09 -0800 | [diff] [blame] | 3 | from xos.config import Config |
Sapan Bhatia | dbaf193 | 2013-09-03 11:28:52 -0400 | [diff] [blame] | 4 | |
| 5 | class Deleter: |
| 6 | model=None # Must be overridden |
| 7 | |
Scott Baker | 6ecd426 | 2014-01-21 23:15:21 -0800 | [diff] [blame] | 8 | def __init__(self, *args, **kwargs): |
| 9 | pass |
| 10 | |
| 11 | def call(self, pk, model_dict): |
Scott Baker | 0355284 | 2015-02-18 16:13:48 -0800 | [diff] [blame] | 12 | # Fetch object from XOS db and delete it |
Sapan Bhatia | dbaf193 | 2013-09-03 11:28:52 -0400 | [diff] [blame] | 13 | pass |
| 14 | |
Scott Baker | 6ecd426 | 2014-01-21 23:15:21 -0800 | [diff] [blame] | 15 | def __call__(self, *args, **kwargs): |
| 16 | return self.call(*args, **kwargs) |