projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c7d93
)
Slightly shorten the media_tags_as_string function
author
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Wed, 14 Nov 2012 07:54:48 +0000
(08:54 +0100)
committer
Sebastian Spaeth
<Sebastian@SSpaeth.de>
Wed, 14 Nov 2012 08:04:17 +0000
(09:04 +0100)
Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/tools/text.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/text.py
b/mediagoblin/tools/text.py
index 09d172a659ce4a66378993482946d134e3e2ed01..24a4d28217d08e51923524b98fe138bf4889f1f1 100644
(file)
--- a/
mediagoblin/tools/text.py
+++ b/
mediagoblin/tools/text.py
@@
-83,12
+83,10
@@
def media_tags_as_string(media_entry_tags):
This is the opposite of convert_to_tag_list_of_dicts
"""
-
media_tag
_string = ''
+
tags
_string = ''
if media_entry_tags:
- media_tag_string = u', '.join(
- [tag['name']
- for tag in media_entry_tags])
- return media_tag_string
+ tags_string = u', '.join([tag['name'] for tag in media_entry_tags])
+ return tags_string
TOO_LONG_TAG_WARNING = \