Browse Source

add missing parameter

283
ThomasV 10 years ago
parent
commit
4cfb6e1d76
  1. 4
      lib/plugins.py

4
lib/plugins.py

@ -46,7 +46,7 @@ class Plugins:
continue continue
x = item.get('registers_wallet_type') x = item.get('registers_wallet_type')
if x: if x:
self.register_wallet_type(name, x) self.register_wallet_type(config, name, x)
if config.get('use_' + name): if config.get('use_' + name):
self.load_plugin(config, name) self.load_plugin(config, name)
@ -109,7 +109,7 @@ class Plugins:
self.load_plugin(config, name) self.load_plugin(config, name)
return self.plugins[name] return self.plugins[name]
def register_wallet_type(self, name, x): def register_wallet_type(self, config, name, x):
import wallet import wallet
x += (lambda: self.wallet_plugin_loader(config, name),) x += (lambda: self.wallet_plugin_loader(config, name),)
wallet.wallet_types.append(x) wallet.wallet_types.append(x)

Loading…
Cancel
Save