- **status**: in-progress --> code-review
- **Comment**:

Closed #555. Force-pushed `je/42cc_7199`

We've switched from `optparse` to `argparse`, so there's no need in that odd 
callback function anymore (it was needed, 'cause `oprparse` can't handle 
multiple values for argument).

Also, we've changed `-n` parameter to use url prefixes.



---

** [tickets:#7199] filter projects in create-allura-sitemap.py**

**Status:** code-review
**Milestone:** forge-backlog
**Labels:** 42cc 
**Created:** Fri Feb 21, 2014 03:35 PM UTC by Dave Brondsema
**Last Updated:** Mon Mar 03, 2014 06:36 PM UTC
**Owner:** nobody

scripts/create-allura-sitemap.py should omit deleted projects and should have 
commandline option for neighborhood(s) to exclude.  `chunked_find` can take a 
query param, so that should work.  The query shouldn't need to be indexed (and 
a $nin is even fine) since `chunked_find` uses the `_id` index to go through 
all the records.  (If you're up for it, investigate the first time chunked_find 
is called in which max_id is None and thus _id won't be in the query but is in 
the sort - will that perform poorly?  need to have an initial max_id?)

Also, `<lastmod>` shouldn't just use the current date all the time, it should 
use the project mod date.


---

Sent from sourceforge.net because [email protected] is subscribed 
to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/allura/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.

Reply via email to