quick_frontend (quick_blog): remove tags2mbdata which is replaced by common.iter2dict

This commit is contained in:
souliane 2015-11-24 23:42:49 +01:00
commit fb6b1e5377

View file

@ -461,16 +461,3 @@ def registerClass(type_, cls):
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