def publish_files(self): ''' Publish the current file collection. ''' if not self.publisher: try: self.publisher = Publisher.get_instance() except Exception, err: print 'Error getting publisher:', err self.publisher = None
def publish_files(self): ''' Publish the current file collection. ''' if not self.publisher: try: self.publisher = Publisher.get_instance() except Exception, err: print 'Error getting publisher:', err self.publisher = None
def publish_updates(self, added_set, changed_set, deleted_set): publisher = Publisher.get_instance() if publisher: types = get_available_types() types.extend(self.get_available_types()) publisher.publish('types', [ packagedict(types), list(added_set), list(changed_set), list(deleted_set), ]) else: logger.error("no Publisher found")
def load_project(self,filename): print 'loading project from:',filename self.projfile = filename self.proj = project_from_archive(filename,dest_dir=self.getcwd()) self.proj.activate() Publisher.get_instance()