示例#1
0
 def __init__(self, members=[]):
     self._collection_id = uuid.uuid4()
     self.members = becomes_list(members)
示例#2
0
 def __init__(self, members=[], keywords=[]):
     self._cluster_id = uuid.uuid4() ##need to change uuid to pymongo objectid
     self.members = becomes_list(members)
     self.keywords = becomes_list(keywords)