View Single Post
Old 11-20-2011, 07:18 AM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,475
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Sorry, I am confused. Are you trying to put a period in front of all collection category names (e.g. Reihe) or in front of all collection values (e.g. Albion)? And you want this to happen for all collections, regardless of the column from which the collection is built?

Regarding the specific error: you can't put constant text (the period) at that position in a template item. That is where the 'format specification' goes, which tells the formatter how numbers are to be rendered, how many characters to print, etc. Given what you did, my guess is that you want
Code:
sony_collection_name_template = '{value} {category:| (.|)}'
sony_collection_renaming_rules = {'series': 'Reihe'}
However, the above will produce "Albion (.Reihe)", so you might want instead
Code:
sony_collection_name_template = '{value:|.|} {category:| (|)}'
sony_collection_renaming_rules = {'series': 'Reihe'}
which will produce ".Albion (Reihe)".
chaley is offline   Reply With Quote