def disconnect(request, uid): paths = json.loads(request.raw_post_data) dudley.connect(uid, paths)
def attach(self, rtype, did): # connect if we can if did: dudley.connect(did, (rtype, )) # now, get records and return that return self.fetch_records(rtype)