[moin-user] ListPages macro doesn't work

Lars Kruse lists at sumpfralle.de
Sun Sep 3 16:05:27 EDT 2017


Hallo Volker,


Am Sun, 03 Sep 2017 20:50:27 +0200
schrieb Volker Wysk <post at volker-wysk.de>:

> Am Sonntag, 3. September 2017, 14:33:45 CEST schrieb Lars Kruse:
>  [...]  
> > 
> > "broken" is quite a heavy word.
> > Maybe you meant "not suitable for my purpose"?  
> 
> I've investigated a little about sorting order, [..]

yes, I understand.
I just wanted to point out, that the description of the ListPages plugin does
not refer to any sort order at all. Thus it felt a bit unfair to me to call it
"broken".


> > This can be accomplished by changing both "sort" calls from ".sort()" to
> > ".sort(key=str.lower)".  
> 
> I've tried this, but it doesn't quite work. I get:
> 
> <<ListPages: Ausführung fehlgeschlagen [descriptor 'lower' requires a 'str' 
> object but received a 'unicode'] (siehe auch die Log-Datei)>> 
> 
> ("Ausführung fehlgeschlagen" means "execution failed")

Python2! :)
Yes, it should be "unicode.lower" instead of "str.lower".

Cheers,
Lars


More information about the moin-user mailing list