Changeset 3510 in products for quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/filters.txt
- Timestamp:
- Aug 22, 2012 10:22:22 AM (12 years ago)
- Location:
- quintagroup.plonegooglesitemaps/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/trunk
- Property svn:mergeinfo
-
old new 3 3 /quintagroup.plonegooglesitemaps/branches/migratioin_product:2826-2839 4 4 /quintagroup.plonegooglesitemaps/branches/plone4:2549-2553 5 /quintagroup.plonegooglesitemaps/branches/sitemap_date:3481-3509 5 6 /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
-
- Property svn:mergeinfo
-
quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/filters.txt
r3247 r3510 157 157 >>> reloc = re.compile("<loc>%s([^\<]*)</loc>" % self.portal.absolute_url(), re.S) 158 158 159 Test if all 4 documents a nd default front-page are in the sitemap without filters.159 Test if all 4 documents are in the sitemap without filters. 160 160 161 161 >>> no_filters_res = reloc.findall(no_filters_content) … … 166 166 /doc1 167 167 /doc2 168 /front-page169 168 170 169 … … 172 171 ================= 173 172 174 Go to the sitemap edit form and add "doc1" and "front-page" lineswith "id:"173 Go to the sitemap edit form and add "doc1" line with "id:" 175 174 prefix to the "Blackout entries" field. 176 175 … … 179 178 >>> filtercontrol.value = """ 180 179 ... id:doc1 181 ... id:front-page182 180 ... """ 183 181 >>> browser.getControl("Save").click() 184 182 >>> id_filter_content = browser.contents 185 183 186 "doc1" and "front-page" documentsshould now be excluded from the184 "doc1" document should now be excluded from the 187 185 sitemap. 188 186 … … 197 195 =================== 198 196 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"197 Suppose we want to exclude "doc2" document, 198 located in test_user_1_ home folder, but leave "doc2" 201 199 untouched in portal root with all other objects. 202 200 … … 205 203 >>> filtercontrol.value = """ 206 204 ... path:/Members/test_user_1_/doc2 207 ... path:/front-page208 205 ... """ 209 206 >>> browser.getControl("Save").click() 210 207 >>> path_filter_content = browser.contents 211 208 212 "/Members/test_user_1_/doc2" and "/front_page" objectsshould209 "/Members/test_user_1_/doc2" object should 213 210 be excluded from the sitemap. 214 211 … … 227 224 filter name prefix is specified (e.g. old-fashion filters)?" 228 225 229 Go to the sitemap edit form and add "doc1" and "front-page"230 lineswithout any filter name prefix to the "Blackout entries"226 Go to the sitemap edit form and add "doc1" line 227 without any filter name prefix to the "Blackout entries" 231 228 field. 232 229 … … 235 232 >>> filtercontrol.value = """ 236 233 ... doc1 237 ... front-page238 234 ... """ 239 235 >>> browser.getControl("Save").click() 240 236 >>> default_filter_content = browser.contents 241 237 242 "id" filter must be used as default filter. So, all "doc1" and243 "front-page" objectsshould be excluded from the sitemap.238 "id" filter must be used as default filter. So, "doc1" 239 object should be excluded from the sitemap. 244 240 245 241 >>> default_filter_res = reloc.findall(default_filter_content) … … 337 333 /Members/test_user_1_/doc2 338 334 /doc2 339 /front-page
Note: See TracChangeset
for help on using the changeset viewer.