I found no empty titles. Any other ideas?<br><br>
<div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Peter Bengtsson</b> <<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I suspect that one item in your 'subsections' variable is None.<br>Try:tal:repeat subsection python:sequence.sort
([x for x in subsections<br>if not None],(('title','nocase','asc'),))<br><br><br><br>On 11/10/05, Larry Lay <<a href="mailto:larrylay2@gmail.com">larrylay2@gmail.com</a>> wrote:<br>> when sorting using <...tal:repeat subsection
<br>> python:sequence.sort(subsections,(('title','nocase','asc'),))"><br>><br>> I get the following error:<br>><br>> Module DocumentTemplate.sequence.SortEx, line 134 in nocase<br>><br>> AttributeError: 'NoneType' object has no attribute 'lower'
<br>><br>> When I switch the 'nocase' to 'cmp' the sort defaults to sorting by order<br>> of entry or something.<br>><br>> Any help would be greatly appreciated.<br>><br>> Thanks.<br>><br>> _______________________________________________
<br>> Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>> <a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a><br>> ** No cross posts or HTML encoding! **
<br>> (Related lists -<br>> <a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>> <a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br>><br>><br>><br><br><br>--<br>Peter Bengtsson,<br>work <a href="http://www.fry-it.com">www.fry-it.com</a><br>home <a href="http://www.peterbe.com">www.peterbe.com</a><br>hobby <a href="http://www.issuetrackerproduct.com">
www.issuetrackerproduct.com</a><br></blockquote></div><br>