Пример #1
0
 def execute(self):
     log.info('Removing "%s"... ', self.name)
     yield self.storage.remove('profiles', self.name)
     log.info('OK')
Пример #2
0
 def execute(self):
     log.info('Uploading "%s"... ', self.name)
     yield self.storage.remove('profiles', self.name)
     log.info('OK')
Пример #3
0
 def execute(self):
     log.info('Rename "%s" to "%s"', self.name, self.copyname)
     oldprofile = yield View(self.storage, self.name).execute()
     yield Create(self.storage, self.copyname, oldprofile).execute()
Пример #4
0
 def execute(self):
     log.info('Uploading "%s"... ', self.name)
     profile = CocaineConfigReader.load(self.profile)
     yield self.storage.write('profiles', self.name, profile, PROFILES_TAGS)
     log.info('OK')
Пример #5
0
 def execute(self):
     log.info('Removing "%s"... ', self.name)
     channel = yield self.storage.remove('profiles', self.name)
     yield channel.rx.get()
     log.info('OK')