Beispiel #1
0
    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):
        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
Beispiel #3
0
 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 )
Beispiel #4
0
 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)
Beispiel #5
0
        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)
Beispiel #6
0
    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
Beispiel #8
0
    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
Beispiel #9
0
    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
Beispiel #10
0
    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):
     WritableFSDVTest.setUp(self)
     self._registerDirectory(self)
Beispiel #12
0
 def setUp(self):
     WritableFSDVTest.setUp(self)
     self._registerDirectory(self)