|
|
Choosing A Webhost: |
CVS: Products/CMFCore/tests - test_FSMetadata.py:1.8: msg#00011web.zope.cmf.cvs
Update of /cvs-repository/Products/CMFCore/tests In directory cvs.zope.org:/tmp/cvs-serv30097/CMFCore/tests Modified Files: test_FSMetadata.py Log Message: - FSObject: Now FSObject-derived items like FSImage or FSFile can have security declarations inside the metadata file. (http://www.zope.org/Collectors/CMF/289) === Products/CMFCore/tests/test_FSMetadata.py 1.7 => 1.8 === --- Products/CMFCore/tests/test_FSMetadata.py:1.7 Wed Nov 24 10:12:30 2004 +++ Products/CMFCore/tests/test_FSMetadata.py Sat Dec 4 17:05:18 2004 @@ -42,6 +42,36 @@ self.ob.fake_skin.test6, ['Manager', 'Anonymous']) + def test_basicPermissionsOnImage(self): + # Test basic FS permissions on Image + test_image = getattr(self.ob.fake_skin, 'test_image.gif') + assert(test_image.title == 'Test image') + self._checkSettings( + test_image, + 'Access contents information', + 1, + ['Manager','Anonymous']) + self._checkSettings( + test_image, + 'View management screens', + 0, + ['Manager']) + + def test_basicPermissionsOnFile(self): + # Test basic FS permissions on File + test_file = getattr(self.ob.fake_skin, 'test_file.swf') + assert(test_file.title == 'Test file') + self._checkSettings( + test_file, + 'Access contents information', + 1, + ['Manager','Anonymous']) + self._checkSettings( + test_file, + 'View management screens', + 0, + ['Manager']) + def test_proxy(self): # Test roles ob = self.ob.fake_skin.test_dtml
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: Products/CMFCore - FSObject.py:1.20, Jens Vagelpohl |
|---|---|
| Next by Date: | CVS: Products/CMFCore/tests/fake_skins/fake_skin - test_file.swf.metadata:1.1.2.1 test_image.gif.metadata:1.1.2.1, Jens Vagelpohl |
| Previous by Thread: | CVS: Products/CMFCore - FSObject.py:1.20, Jens Vagelpohl |
| Next by Thread: | CVS: Products/CMFCore/tests/fake_skins/fake_skin - test_file.swf.metadata:1.1.2.1 test_image.gif.metadata:1.1.2.1, Jens Vagelpohl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |