Ignore:
Timestamp:
Feb 9, 2010 1:30:50 PM (14 years ago)
Author:
mylan
Message:

Reregister ICanonicalPath adapter to IATContentType interface, which is more specific then IBaseContent (which registered by quintagroup.canonical pack)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.seoptimizer/trunk/quintagroup/seoptimizer/tests/testCanonicalURL.py

    r1671 r1672  
    5656 
    5757    def test_canonicalAdapterRegistration(self): 
    58         canonical = queryAdapter(self.mydoc, interface=ICanonicalPath, 
    59             name='qseo_canonical') 
     58        canonical = queryAdapter(self.mydoc, interface=ICanonicalPath) 
    6059        self.assertTrue(canonical is not None, 
    6160            "Not registered 'qseo_canonical' adapter") 
     
    6564        mydoc_path_rel = '/'+'/'.join(purl.getRelativeContentPath(self.mydoc)) 
    6665 
    67         canonical = queryAdapter(self.mydoc, ICanonicalPath, name='qseo_canonical') 
     66        canonical = queryAdapter(self.mydoc, ICanonicalPath) 
    6867        cpath = canonical.canonical_path() 
    6968        self.assertTrue(cpath == mydoc_path_rel, 
    7069            "By canonical path adapter got: '%s', must be: '%s'" % ( 
    7170             cpath, mydoc_path_rel)) 
    72          
     71 
    7372        # Update canonical url property 
    7473        mydoc_url_new = self.mydoc.absolute_url() + '.new' 
Note: See TracChangeset for help on using the changeset viewer.