[Zope] AttributeError: 'NoneType' object has no attribute 'lower'

Larry Lay larrylay2 at gmail.com
Thu Nov 10 10:33:51 EST 2005


It appears that Zope/Plone is not seeing anything in 'title'. I can put
'blahblah' in the code and get the same error.

On 11/10/05, Larry Lay <larrylay2 at gmail.com> wrote:
>
> I found no empty titles. Any other ideas?
>
> On 11/10/05, Peter Bengtsson <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'),))
> >
> >
> >
> > On 11/10/05, Larry Lay <larrylay2 at gmail.com> wrote:
> > > when sorting using <...tal:repeat subsection
> > > python:sequence.sort(subsections,(('title','nocase','asc'),))">
> > >
> > > I get the following error:
> > >
> > > Module DocumentTemplate.sequence.SortEx, line 134 in nocase
> > >
> > > AttributeError: 'NoneType' object has no attribute 'lower'
> > >
> > > When I switch the 'nocase' to 'cmp' the sort defaults to sorting by
> > order
> > > of entry or something.
> > >
> > > Any help would be greatly appreciated.
> > >
> > > Thanks.
> > >
> > > _______________________________________________
> > > Zope maillist - Zope at zope.org
> > > http://mail.zope.org/mailman/listinfo/zope
> > > ** No cross posts or HTML encoding! **
> > > (Related lists -
> > > http://mail.zope.org/mailman/listinfo/zope-announce
> > > http://mail.zope.org/mailman/listinfo/zope-dev )
> > >
> > >
> > >
> >
> >
> > --
> > Peter Bengtsson,
> > work www.fry-it.com <http://www.fry-it.com/>
> > home www.peterbe.com <http://www.peterbe.com/>
> > hobby www.issuetrackerproduct.com <http://www.issuetrackerproduct.com/>
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20051110/16ea0269/attachment.htm


More information about the Zope mailing list