I found no empty titles.&nbsp; Any other ideas?<br><br>
<div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Peter Bengtsson</b> &lt;<a href="mailto:peter@fry-it.com">peter@fry-it.com</a>&gt; 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 &lt;<a href="mailto:larrylay2@gmail.com">larrylay2@gmail.com</a>&gt; wrote:<br>&gt; when sorting using &lt;...tal:repeat subsection
<br>&gt; python:sequence.sort(subsections,(('title','nocase','asc'),))&quot;&gt;<br>&gt;<br>&gt; I get the following error:<br>&gt;<br>&gt; Module DocumentTemplate.sequence.SortEx, line 134 in nocase<br>&gt;<br>&gt; AttributeError: 'NoneType' object has no attribute 'lower'
<br>&gt;<br>&gt; When I switch the 'nocase' to 'cmp' the sort defaults to sorting by order<br>&gt; of entry or something.<br>&gt;<br>&gt; Any help would be greatly appreciated.<br>&gt;<br>&gt; Thanks.<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Zope maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Zope@zope.org">Zope@zope.org</a><br>&gt; <a href="http://mail.zope.org/mailman/listinfo/zope">http://mail.zope.org/mailman/listinfo/zope</a><br>&gt; **&nbsp;&nbsp; No cross posts or HTML encoding!&nbsp;&nbsp;**
<br>&gt; (Related lists -<br>&gt;&nbsp;&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>&gt;&nbsp;&nbsp;<a href="http://mail.zope.org/mailman/listinfo/zope-dev">http://mail.zope.org/mailman/listinfo/zope-dev
</a> )<br>&gt;<br>&gt;<br>&gt;<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>