Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added `SiriPlugin.complete` function to cleanly end a session

  • Loading branch information...
commit 319396c1104a4e6928aa5c9818f37d456c42f20b 1 parent 03421cb
@wrboyce authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 sirious/plugins/__init__.py
View
5 sirious/plugins/__init__.py
@@ -24,6 +24,11 @@ def handle_answer(*a, **kw):
dispatcher.disconnect(handle_answer, signal='consume_phrase')
dispatcher.connect(handle_answer, signal='consume_phrase')
+ def complete(self):
+ request_complete = SiriObjects.RequestCompleted()
+ request_complete.make_root(self.proxy.ref_id)
+ self.proxy.inject_plist(request_complete.to_dict())
+
def plist_from_server(self, plist):
return plist
Please sign in to comment.
Something went wrong with that request. Please try again.