Changeset 2247 in products


Ignore:
Timestamp:
Apr 30, 2010 1:05:13 PM (11 years ago)
Author:
crchemist
Message:

Fix http://plone.org/products/plone-seo/issues/24

Location:
quintagroup.seoptimizer/trunk/quintagroup/seoptimizer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/configure.zcml

    r2139 r2247  
    8585        attribute="checkVisibilitySEOAction" 
    8686        layer=".interfaces.IPloneSEOLayer" 
    87         permission="cmf.ManagePortal" 
     87        permission="zope2.Public" 
    8888        /> 
    8989 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/browser/views.py

    r2237 r2247  
    313313        adapter = ISEOConfigletSchema(plone) 
    314314        return bool(self.context.portal_type in adapter.types_seo_enabled) 
     315 
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/tests/testBugs.py

    r2239 r2247  
    101101            self.fail("overrides.zcml removed from the package root") 
    102102 
     103 
     104    def test_bug_24_at_plone_org(self): 
     105        member_id = 'test_member' 
     106        editor_id = 'test_editor' 
     107        test_pswd = 'pswd' 
     108        uf = self.portal.acl_users 
     109        uf.userFolderAddUser(member_id, test_pswd, 
     110                        ['Member'], []) 
     111        uf.userFolderAddUser(editor_id, test_pswd, 
     112                        ['Member','Editor'], []) 
     113 
     114        member_auth = '%s:%s'%(member_id, test_pswd) 
     115        editor_auth = '%s:%s'%(editor_id, test_pswd) 
     116 
     117        portal_url = '/'.join(self.portal.getPhysicalPath()) 
     118 
     119        resp = self.publish(path=portal_url, basic=member_auth) 
     120        self.assertEqual(resp.getStatus(), 200) 
    103121         
     122        # This fails, althought must pass 
     123        resp = self.publish(path=portal_url, basic=editor_auth) 
     124        self.assertEqual(resp.getStatus(), 200) 
    104125 
    105126def test_suite(): 
     
    108129    suite.addTest(makeSuite(TestBugs)) 
    109130    return suite 
     131 
Note: See TracChangeset for help on using the changeset viewer.