It appears that Zope/Plone is not seeing anything in 'title'. I can put 'blahblah' in the code and get the same error.<br><br>
<div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Larry Lay</b> <<a href="mailto:larrylay2@gmail.com">larrylay2@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I found no empty titles. Any other ideas?
<div><span class="e" id="q_1077ab80d8d1e549_1"><br><br>
<div><span class="gmail_quote">On 11/10/05, <b class="gmail_sendername">Peter Bengtsson</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" 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 onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" 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 onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="mailto:Zope@zope.org">
Zope@zope.org</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" 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 onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="http://mail.zope.org/mailman/listinfo/zope-announce">http://mail.zope.org/mailman/listinfo/zope-announce</a>
<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" 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 onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="http://www.fry-it.com/">www.fry-it.com</a><br>home <a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="http://www.peterbe.com/">
www.peterbe.com</a><br>hobby <a onclick="return top.js.OpenExtLink(window,event,this)" target="_blank" href="http://www.issuetrackerproduct.com/">www.issuetrackerproduct.com</a><br></blockquote></div><br></span></div></blockquote>
</div><br>