Ignore:
Timestamp:
Aug 22, 2012 10:22:22 AM (8 years ago)
Author:
potar
Message:

Merged sitemap_date branch into trunk

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk

    • Property svn:mergeinfo
      •  

        old new  
        33/quintagroup.plonegooglesitemaps/branches/migratioin_product:2826-2839 
        44/quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 
         5/quintagroup.plonegooglesitemaps/branches/sitemap_date:3481-3509 
        56/quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536 
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/filters.txt

    r3247 r3510  
    157157    >>> reloc = re.compile("<loc>%s([^\<]*)</loc>" % self.portal.absolute_url(), re.S) 
    158158 
    159 Test if all 4 documents and default front-page are in the sitemap without filters. 
     159Test if all 4 documents are in the sitemap without filters. 
    160160 
    161161    >>> no_filters_res = reloc.findall(no_filters_content) 
     
    166166    /doc1 
    167167    /doc2 
    168     /front-page 
    169168 
    170169 
     
    172171================= 
    173172 
    174 Go to the sitemap edit form and add "doc1" and "front-page" lines with "id:"  
     173Go to the sitemap edit form and add "doc1" line with "id:"  
    175174prefix to the "Blackout entries" field. 
    176175 
     
    179178    >>> filtercontrol.value = """ 
    180179    ...     id:doc1 
    181     ...     id:front-page 
    182180    ... """ 
    183181    >>> browser.getControl("Save").click() 
    184182    >>> id_filter_content = browser.contents 
    185183 
    186 "doc1" and "front-page" documents should now be excluded from the 
     184"doc1" document should now be excluded from the 
    187185sitemap. 
    188186 
     
    197195=================== 
    198196 
    199 Suppose we want to exclude "front_page" from portal root and "doc2" 
    200 document, located in test_user_1_ home folder, but leave "doc2"  
     197Suppose we want to exclude "doc2" document,  
     198located in test_user_1_ home folder, but leave "doc2"  
    201199untouched in portal root with all other objects. 
    202200 
     
    205203    >>> filtercontrol.value = """ 
    206204    ...    path:/Members/test_user_1_/doc2 
    207     ...    path:/front-page 
    208205    ... """ 
    209206    >>> browser.getControl("Save").click() 
    210207    >>> path_filter_content = browser.contents 
    211208 
    212 "/Members/test_user_1_/doc2" and "/front_page" objects should 
     209"/Members/test_user_1_/doc2" object should 
    213210be excluded from the sitemap. 
    214211 
     
    227224filter name prefix is specified (e.g. old-fashion filters)?" 
    228225 
    229 Go to the sitemap edit form and add "doc1" and "front-page" 
    230 lines without any filter name prefix to the "Blackout entries"  
     226Go to the sitemap edit form and add "doc1" line 
     227without any filter name prefix to the "Blackout entries"  
    231228field. 
    232229 
     
    235232    >>> filtercontrol.value = """ 
    236233    ...     doc1 
    237     ...     front-page 
    238234    ... """ 
    239235    >>> browser.getControl("Save").click() 
    240236    >>> default_filter_content = browser.contents 
    241237 
    242 "id" filter must be used as default filter. So, all "doc1" and 
    243 "front-page" objects should be excluded from the sitemap. 
     238"id" filter must be used as default filter. So, "doc1" 
     239object should be excluded from the sitemap. 
    244240 
    245241    >>> default_filter_res = reloc.findall(default_filter_content) 
     
    337333    /Members/test_user_1_/doc2 
    338334    /doc2 
    339     /front-page 
Note: See TracChangeset for help on using the changeset viewer.