# HG changeset patch # User Jeff Hammel # Date 1293597488 28800 # Node ID 145a4d85b37d17c096611201663f74bc68b0b4b1 # Parent a88a670c92d004a28b1f9f7c6c22e7d14c474573 exclude long urls for now ::sigh:: diff -r a88a670c92d0 -r 145a4d85b37d svgsitemap/middleware.py --- a/svgsitemap/middleware.py Tue Dec 28 20:27:12 2010 -0800 +++ b/svgsitemap/middleware.py Tue Dec 28 20:38:08 2010 -0800 @@ -37,6 +37,7 @@ 'external_referers': True, 'maxwidth': 5, 'minwidth': '0.01', + 'maxlength': 80, 'excluded': '*.css *.js */static/* /css/* *.ico /backgrounds/*', # input/output @@ -186,6 +187,9 @@ for url in urls: if fnmatch(url, pattern): return True + for url in urls: + if len(url) > self.maxlength: + return True return False def set_widths(self):