[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/tests - testFolderContents.py:1.3 testLoadedFolderContents.py:1.3

Jim Fulton jim@zope.com
Thu, 13 Jun 2002 19:16:12 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/tests
In directory cvs.zope.org:/tmp/cvs-serv10697/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/tests

Modified Files:
	testFolderContents.py testLoadedFolderContents.py 
Log Message:
Got icons working, and, along the way:

- Implemented the icon directive

- Implemented
  http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/ResourcesProposal

- Added a special view, named '', for service manager containers that
  allows resources to have URLs like:

  http://foo.com/@@/resourcename

- Fixed some server code that caused HTTP response data to get
  promoted to unicode

- Updated the folder contents page to display icons.

- Ported icons for folder, file, image, and zptpage. Many more icons
  need to be ported or created.



=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/tests/testFolderContents.py 1.2 => 1.3 ===
 
     def _TestView__newView(self, container):
-        return FolderContents(container, None)
+        from Zope.Publisher.Browser.BrowserRequest import TestRequest
+        return FolderContents(container, TestRequest())
 
     def testAddServiceManager(self):
         folder = Folder()


=== Zope3/lib/python/Zope/App/OFS/Content/Folder/Views/Browser/tests/testLoadedFolderContents.py 1.2 => 1.3 ===
 
     def _TestView__newView(self, container):
-        return LoadedFolderContents(container, None)
+        from Zope.Publisher.Browser.BrowserRequest import TestRequest
+        return LoadedFolderContents(container, TestRequest())
 
     def testAddServiceManager(self):
         folder = LoadedFolder()