blob: 93fa572786f07355bfa979baac04ba56286bc4c4 [file] [log] [blame]
Sapan Bhatiadbaf1932013-09-03 11:28:52 -04001import os
2import base64
Scott Baker76a840e2015-02-11 21:38:09 -08003from xos.config import Config
Sapan Bhatiadbaf1932013-09-03 11:28:52 -04004
5class Deleter:
6 model=None # Must be overridden
7
Scott Baker6ecd4262014-01-21 23:15:21 -08008 def __init__(self, *args, **kwargs):
9 pass
10
11 def call(self, pk, model_dict):
Scott Baker286a78f2015-02-18 16:13:48 -080012 # Fetch object from XOS db and delete it
Sapan Bhatiadbaf1932013-09-03 11:28:52 -040013 pass
14
Scott Baker6ecd4262014-01-21 23:15:21 -080015 def __call__(self, *args, **kwargs):
16 return self.call(*args, **kwargs)