Exemple #1
0
def unload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content.split():
            shopping.revoke(module)
        event.reply("Unloading %s finished." % event.content)
Exemple #2
0
 def tearDown(self):
     sys.meta_path.remove(self.mall)
     for module in self.modules:
         shopping.revoke(module)
         delattr(self, module)
Exemple #3
0
def reload_module(event):
    admin = yield isadmin(event.source)
    if admin:
        for module in event.content:
            shopping.revoke(module)