예제 #1
0
 def countries(self):
     result = []
     for obj in self.context.values():
         if ICountry.providedBy(obj):
             result.append(obj)
     return result
예제 #2
0
 def countries(self):
     result = []
     for obj in self.context.values():
         if ICountry.providedBy(obj):
             result.append(obj)
     return result
예제 #3
0
 def get_countries(self, region):
     result = [i for i in region.values() if ICountry.providedBy(i)]
     return sorted(result, key=lambda x: x.Title())