-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Larry Lay 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' 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.
One of your 'subsections' has a 'title' attribute which is None; it can't therefore be sorted by'sequence.sort' if the specification requires string methods ('nocase' implies that the sort must "flatten" the sort attribute's case). Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDc1zO+gerLs4ltQ4RAmNbAJ400QMkslDxTLjIFze004FBGoQCvQCfWqgd yCj63f4AeI7Y6ZWs1H75qS8= =ElzP -----END PGP SIGNATURE-----