@@ -1575,10 +1575,10 @@ PYBIND11_MODULE(monero, m) {
15751575 MONERO_CATCH_AND_RETHROW (self.is_view_only ());
15761576 })
15771577 .def (" set_connection_manager" , [](PyMoneroWallet& self, const std::shared_ptr<PyMoneroConnectionManager> &connection_manager) {
1578- MONERO_CATCH_AND_RETHROW (self .set_connection_manager (connection_manager) );
1578+ throw PyMoneroError ( " MoneroWallet .set_connection_manager(): not supported " );
15791579 }, py::arg (" connection_manager" ))
15801580 .def (" get_connection_manager" , [](PyMoneroWallet& self) {
1581- MONERO_CATCH_AND_RETHROW (self .get_connection_manager ());
1581+ throw PyMoneroError ( " MoneroWallet .get_connection_manager(): not supported " );
15821582 })
15831583 .def (" set_daemon_connection" , [](PyMoneroWallet& self, const boost::optional<monero::monero_rpc_connection>& connection) {
15841584 MONERO_CATCH_AND_RETHROW (self.set_daemon_connection (connection));
@@ -1967,17 +1967,17 @@ PYBIND11_MODULE(monero, m) {
19671967 .def (" delete_address_book_entry" , [](PyMoneroWallet& self, uint64_t index) {
19681968 MONERO_CATCH_AND_RETHROW (self.delete_address_book_entry (index));
19691969 }, py::arg (" index" ))
1970- .def (" tag_accounts" , [](PyMoneroWallet & self, const std::string& tag, const std::vector<uint32_t >& account_indices) {
1971- MONERO_CATCH_AND_RETHROW (self .tag_accounts (tag, account_indices) );
1970+ .def (" tag_accounts" , [](monero::monero_wallet & self, const std::string& tag, const std::vector<uint32_t >& account_indices) {
1971+ throw PyMoneroError ( " MoneroWallet .tag_accounts(): not supported " );
19721972 }, py::arg (" tag" ), py::arg (" account_indices" ))
1973- .def (" untag_accounts" , [](PyMoneroWallet & self, const std::vector<uint32_t >& account_indices) {
1974- MONERO_CATCH_AND_RETHROW (self .untag_accounts (account_indices) );
1973+ .def (" untag_accounts" , [](monero::monero_wallet & self, const std::vector<uint32_t >& account_indices) {
1974+ throw PyMoneroError ( " MoneroWallet .untag_accounts(): not supported " );
19751975 }, py::arg (" account_indices" ))
1976- .def (" get_account_tags" , [](PyMoneroWallet & self) {
1977- MONERO_CATCH_AND_RETHROW (self .get_account_tags ());
1976+ .def (" get_account_tags" , [](monero::monero_wallet & self) {
1977+ throw PyMoneroError ( " MoneroWallet .get_account_tags(): not supported " );
19781978 })
1979- .def (" set_account_tag_label" , [](PyMoneroWallet & self, const std::string& tag, const std::string& label) {
1980- MONERO_CATCH_AND_RETHROW (self .set_account_tag_label (tag, label) );
1979+ .def (" set_account_tag_label" , [](monero::monero_wallet & self, const std::string& tag, const std::string& label) {
1980+ throw PyMoneroError ( " MoneroWallet .set_account_tag_label(): not supported " );
19811981 }, py::arg (" tag" ), py::arg (" label" ))
19821982 .def (" set_account_label" , [](PyMoneroWallet& self, uint32_t account_idx, const std::string& label) {
19831983 MONERO_CATCH_AND_RETHROW (self.set_subaddress_label (account_idx, 0 , label));
@@ -2195,7 +2195,19 @@ PYBIND11_MODULE(monero, m) {
21952195 }, py::arg (" connection" ), py::arg (" is_trusted" ), py::arg (" ssl_options" ))
21962196 .def (" stop" , [](PyMoneroWalletRpc& self) {
21972197 MONERO_CATCH_AND_RETHROW (self.stop ());
2198- });
2198+ })
2199+ .def (" tag_accounts" , [](PyMoneroWalletRpc& self, const std::string& tag, const std::vector<uint32_t >& account_indices) {
2200+ MONERO_CATCH_AND_RETHROW (self.tag_accounts (tag, account_indices));
2201+ }, py::arg (" tag" ), py::arg (" account_indices" ))
2202+ .def (" untag_accounts" , [](PyMoneroWalletRpc& self, const std::vector<uint32_t >& account_indices) {
2203+ MONERO_CATCH_AND_RETHROW (self.untag_accounts (account_indices));
2204+ }, py::arg (" account_indices" ))
2205+ .def (" get_account_tags" , [](PyMoneroWalletRpc& self) {
2206+ MONERO_CATCH_AND_RETHROW (self.get_account_tags ());
2207+ })
2208+ .def (" set_account_tag_label" , [](PyMoneroWalletRpc& self, const std::string& tag, const std::string& label) {
2209+ MONERO_CATCH_AND_RETHROW (self.set_account_tag_label (tag, label));
2210+ }, py::arg (" tag" ), py::arg (" label" ));
21992211
22002212 // monero_utils
22012213 py_monero_utils
0 commit comments