|
|
|
@ -467,17 +467,18 @@ BOOST_PYTHON_MODULE(pEp)
|
|
|
|
|
auto user_interface_class = class_<UserInterface, UserInterface_callback, boost::noncopyable>(
|
|
|
|
|
"UserInterface",
|
|
|
|
|
"class MyUserInterface(UserInterface):\n"
|
|
|
|
|
" def notifyHandshake(self, me, partner):\n"
|
|
|
|
|
" def notifyHandshake(address, own_fpr, partner_fpr):\n"
|
|
|
|
|
" ...\n"
|
|
|
|
|
"\n"
|
|
|
|
|
"p≡p User Interface class\n"
|
|
|
|
|
"To be used as a mixin\n"
|
|
|
|
|
)
|
|
|
|
|
.def("notifyHandshake", &UserInterface::notifyHandshake,
|
|
|
|
|
"notifyHandshake(self, me, partner)\n"
|
|
|
|
|
"notifyHandshake(address, own_fpr, partner_fpr)\n"
|
|
|
|
|
"\n"
|
|
|
|
|
" me own identity\n"
|
|
|
|
|
" partner identity of communication partner\n"
|
|
|
|
|
" address own address to sync on\n"
|
|
|
|
|
" own_fpr key fingerprint from own identity"
|
|
|
|
|
" partner_fpr key fingerprint from partner\n"
|
|
|
|
|
"\n"
|
|
|
|
|
"overwrite this method with an implementation of a handshake dialog")
|
|
|
|
|
.def("deliverHandshakeResult", &UserInterface::deliverHandshakeResult,
|
|
|
|
@ -494,4 +495,3 @@ BOOST_PYTHON_MODULE(pEp)
|
|
|
|
|
|
|
|
|
|
call< object >(((object)(import("codecs").attr("register"))).ptr(), make_function(sync_search));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|