# HG changeset patch # User Paul Boddie # Date 1389707433 -3600 # Node ID a911715f664cec2e175556d4a035542a437ede6b # Parent 7089667ea41e5b93dfd3aa37b771057468b9c6ac Handle categories properties already converted to lists. diff -r 7089667ea41e -r a911715f664c EventAggregatorSupport/Types.py --- a/EventAggregatorSupport/Types.py Tue Jan 14 14:49:35 2014 +0100 +++ b/EventAggregatorSupport/Types.py Tue Jan 14 14:50:33 2014 +0100 @@ -2,7 +2,7 @@ """ MoinMoin - EventAggregator object types - @copyright: 2008, 2009, 2010, 2011, 2012, 2013 by Paul Boddie + @copyright: 2008, 2009, 2010, 2011, 2012, 2013, 2014 by Paul Boddie @copyright: 2000-2004 Juergen Hermann , 2005-2008 MoinMoin:ThomasWaldmann. @license: GNU GPL (v2 or later), see COPYING.txt for details. @@ -252,7 +252,8 @@ # Convert lists. elif property == "CATEGORIES": - value = to_list(value, ",") + if not isinstance(value, list): + value = to_list(value, ",") # Convert positions (using decimal values).