def refresh_one_id(self, id): root = CurveDB.get_root_curve() if root==None: root_id = 0 else: root_id = root.id if id==root_id: self.refresh() else: self.tree.refresh_id(id) """curves = self.parent().query()
def setUp(self): """ Sets the file folder to tests/temp_files to not add data files in teh normal file system tree """ super(TestCurvestore, self).setUp() if not osp.exists(self.new_media_root): os.mkdir(self.new_media_root) models.MEDIA_ROOT = self.new_media_root settings.MEDIA_ROOT = self.new_media_root self.rootcurve = CurveDB.get_root_curve() CurveDB.set_root_curve(None)