diff frontends/src/quick_frontend/quick_blog.py @ 1667:bf67dc424784

quick_frontend (quick_blog): remove tags2mbdata which is replaced by common.iter2dict
author souliane <souliane@mailoo.org>
date Tue, 24 Nov 2015 23:42:49 +0100
parents dbac3cb19159
children ad20cedbf25e
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_blog.py	Tue Nov 24 23:28:11 2015 +0100
+++ b/frontends/src/quick_frontend/quick_blog.py	Tue Nov 24 23:42:49 2015 +0100
@@ -461,16 +461,3 @@
         raise ValueError("type_ should be ENTRY or COMMENT")
     if COMMENTS_CLS is None:
         COMMENTS_CLS = ENTRY_CLS
-
-def tags2mbdata(tags):
-    """Build from the tags a dict using the microblog data format.
-
-    @param tags (list[unicode]): list of tags
-    @return dict
-    """
-    data = {}
-    count = 0
-    for tag in tags:
-        data[('tag#%i' % count) if count else 'tag'] = tag
-        count += 1
-    return data