quick_frontend (quick_blog): remove tags2mbdata which is replaced by common.iter2dict
This commit is contained in:
parent
44ad744c63
commit
fb6b1e5377
1 changed files with 0 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue