Fix requiring receipt request messages to have ID values.

This commit is contained in:
Lance Stout 2012-03-16 22:01:56 -07:00
parent 58e0f1e6c3
commit 19a6f61b44

View file

@ -26,6 +26,8 @@ class Request(ElementBase):
if val:
parent = self.parent()
parent._set_sub_text("{%s}request" % self.namespace, keep=True)
if not parent['id']:
parent['id'] = parent.stream.new_id()
def get_request_receipt(self):
parent = self.parent()