[Zope] AttributeError: 'NoneType' object has no attribute 'lower'
Gabriel Genellina
gagenellina at softlab.com.ar
Thu Nov 10 20:54:04 EST 2005
At Thursday 10/11/2005 12:08, Larry Lay wrote:
>I found no empty titles. Any other ideas?
>
>On 11/10/05, Peter Bengtsson <<mailto:peter at fry-it.com>peter at fry-it.com>
>wrote:
>I suspect that one item in your 'subsections' variable is None.
>Try:tal:repeat subsection python:sequence.sort ([x for x in subsections
>if not None],(('title','nocase','asc'),))
Note the typo (which was valid Python code anyway so might go undetected),
should be:
python:sequence.sort([x for x in subsections if x is not
None],(('title','nocase','asc'),))
Gabriel Genellina
Softlab SRL
More information about the Zope
mailing list