예제 #1
0
파일: activity.py 프로젝트: atefzed/Feedly
 def entity_ids(self):
     return make_list_unique([a.extra_context.get('entity_id') for a in self.activities])
예제 #2
0
파일: activity.py 프로젝트: atefzed/Feedly
 def actor_ids(self):
     return make_list_unique([a.actor_id for a in self.activities])
예제 #3
0
파일: activity.py 프로젝트: atefzed/Feedly
 def object_ids(self):
     return make_list_unique([a.object_id for a in self.activities])
예제 #4
0
파일: activity.py 프로젝트: loyning/Feedly
 def object_ids(self):
     return make_list_unique([a.object_id for a in self.activities])
예제 #5
0
파일: activity.py 프로젝트: atefzed/Feedly
 def verbs(self):
     return make_list_unique([a.verb for a in self.activities])
예제 #6
0
파일: activity.py 프로젝트: loyning/Feedly
 def verbs(self):
     return make_list_unique([a.verb for a in self.activities])
예제 #7
0
파일: activity.py 프로젝트: loyning/Feedly
 def actor_ids(self):
     return make_list_unique([a.actor_id for a in self.activities])
예제 #8
0
 def test_make_list_unique_marker(self):
     with_doubles = range(10) + range(5, 15)
     marker = lambda x: x / 5
     result = make_list_unique(with_doubles, marker)
     assert result == [0, 5, 10]
예제 #9
0
 def test_make_list_unique(self):
     with_doubles = range(10) + range(5, 15)
     result = make_list_unique(with_doubles)
     assert result == range(15)
예제 #10
0
 def test_make_list_unique_marker(self):
     with_doubles = range(10) + range(5, 15)
     marker = lambda x: x / 5
     result = make_list_unique(with_doubles, marker)
     assert result == [0, 5, 10]
예제 #11
0
 def test_make_list_unique(self):
     with_doubles = range(10) + range(5, 15)
     result = make_list_unique(with_doubles)
     assert result == range(15)
예제 #12
0
 def entity_ids(self):
     return make_list_unique(
         [a.extra_context.get('entity_id') for a in self.activities])