def setUp(self): from Products.CMFCore.DirectoryView import _dirreg WritableFSDVTest.setUp(self) self._registerDirectory(self) info = _dirreg.getDirectoryInfo(self.ob.fake_skin._dirpath) self.use_dir_mtime = info.use_dir_mtime self.saved_cfg_debug_mode = getConfiguration().debug_mode getConfiguration().debug_mode = True
def setUp( self ): # initialise skins WritableFSDVTest.setUp(self) self._registerDirectory(self) # set up ZODB RequestTest.setUp(self) # put object in ZODB root=self.root try: root._delObject('fake_skin') except AttributeError: pass root._setObject( 'fake_skin', self.ob.fake_skin )
def setUp(self): # initialise skins WritableFSDVTest.setUp(self) self._registerDirectory(self) # set up ZODB RequestTest.setUp(self) # put object in ZODB root = self.root try: root._delObject('fake_skin') except AttributeError: pass root._setObject('fake_skin', self.ob.fake_skin)
def setUp( self ): WritableFSDVTest.setUp(self) self.test1path = join(self.skin_path_name,'test1.py') self.test2path = join(self.skin_path_name,'test2.py') self.test3path = join(self.skin_path_name,'test3') # initialise skins self._registerDirectory(self) # add a method to the fake skin folder self._writeFile(self.test2path, "return 'test2'") # edit the test1 method self._writeFile(self.test1path, "return 'new test1'") # add a new folder mkdir(self.test3path)
def setUp(self): WritableFSDVTest.setUp(self) self.test1path = join(self.skin_path_name, 'test1.py') self.test2path = join(self.skin_path_name, 'test2.py') self.test3path = join(self.skin_path_name, 'test3') # initialise skins self._registerDirectory(self) # add a method to the fake skin folder self._writeFile(self.test2path, "return 'test2'") # edit the test1 method self._writeFile(self.test1path, "return 'new test1'") # add a new folder mkdir(self.test3path)
def setUp(self): from Products.CMFCore.DirectoryView import _dirreg WritableFSDVTest.setUp(self) self.saved_cfg_debug_mode = getConfiguration().debug_mode getConfiguration().debug_mode = True # initialise skins self._registerDirectory(self) # add a method to the fake skin folder self._writeFile('test2.py', "return 'test2'") # edit the test1 method self._writeFile('test1.py', "return 'new test1'") # add a new folder mkdir(join(self.skin_path_name, 'test3')) info = _dirreg.getDirectoryInfo(self.ob.fake_skin._dirpath) info.reload() self.use_dir_mtime = info.use_dir_mtime
def setUp( self ): from Products.CMFCore.DirectoryView import _dirreg WritableFSDVTest.setUp(self) self.test1path = join(self.skin_path_name,'test1.py') self.test2path = join(self.skin_path_name,'test2.py') self.test3path = join(self.skin_path_name,'test3') # initialise skins self._registerDirectory(self) # add a method to the fake skin folder self._writeFile(self.test2path, "return 'test2'") # edit the test1 method self._writeFile(self.test1path, "return 'new test1'") # add a new folder mkdir(self.test3path) info = _dirreg.getDirectoryInfo(self.ob.fake_skin._dirpath) info.reload() self.use_dir_mtime = info.use_dir_mtime
def setUp(self): from Products.CMFCore.DirectoryView import _dirreg WritableFSDVTest.setUp(self) self.test1path = join(self.skin_path_name, 'test1.py') self.test2path = join(self.skin_path_name, 'test2.py') self.test3path = join(self.skin_path_name, 'test3') # initialise skins self._registerDirectory(self) # add a method to the fake skin folder self._writeFile(self.test2path, "return 'test2'") # edit the test1 method self._writeFile(self.test1path, "return 'new test1'") # add a new folder mkdir(self.test3path) info = _dirreg.getDirectoryInfo(self.ob.fake_skin._dirpath) info.reload() self.use_dir_mtime = info.use_dir_mtime
def tearDown(self): RequestTest.tearDown(self) WritableFSDVTest.tearDown(self) self._ignore_log_errors() self._ignore_log_errors(subsystem='CMFCore.DirectoryView')
def tearDown(self): self._ignore_log_errors(subsystem='CMFCore.DirectoryView') self._ignore_log_errors(subsystem='CMFCore.FSMetadata') WritableFSDVTest.tearDown(self)
def setUp(self): WritableFSDVTest.setUp(self) self._registerDirectory(self)
def tearDown(self): getConfiguration().debug_mode = self.saved_cfg_debug_mode WritableFSDVTest.tearDown(self)
def tearDown( self ): RequestTest.tearDown(self) WritableFSDVTest.tearDown(self) self._ignore_log_errors() self._ignore_log_errors(subsystem='CMFCore.DirectoryView')