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