def properties(self, tags, id=None):
"""Return list of property tuples (id, name, value) for the specified tag(s) """
if type(tags) not in (types.ListType, types.TupleType) and type(id) not in (types.NoneType, types.ListType, types.TupleType):
single = True
else:
single = False
props = self.iproperties(tags, id)
if single:
return list(props)[0]
else:
return list(props)
评论列表
文章目录