Beispiel #1
0
class LegacyRequestProcessorClient(AbstractRequestProcessorClient):
	def __init__(self, url, *args, **kw):
		super(LegacyRequestProcessorClient, self).__init__(*args, **kw)
		self.__rp = RestClient(url, cache = False)
		self.serializer = LegacyRPRequestSerializer()
	
	def book_vct(self, user, vct):
		request = LegagyRPRequest("booking", "book_vct", user, vct)
		with self.__rp.post("/", self.serializer.dumps(request)) as result:
			return result.read()
Beispiel #2
0
 def __init__(self, url, *args, **kw):
     super(LegacyRequestProcessorClient, self).__init__(*args, **kw)
     self.__rp = RestClient(url, cache=False)
     self.serializer = LegacyRPRequestSerializer()