pycategories.py item counts
Rob Walker <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I've just spotted another bug in pycategories.py where the totals under each
category are counted incorrectly. The code is looking to see if the child
category *ends* with the parent, not that it begins with it. The code should read:
num = 0
for key in self._elistmap.keys():
if item == '' or key == item or key.startswith(item + os.sep):
num = num + self._elistmap[key]
Regards
Rob
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf