Пример #1
0
 def get_data(self, obj):
     return {
         "title": obj.Title().decode("utf-8"),
         "items": list(self.get_items(obj)),
         "details_url": "%s/@@watcher-recently-modified" % (get_object_url(obj)),
     }
Пример #2
0
 def get_data(self, obj):
     return {
         'title': obj.Title().decode('utf-8'),
         'items': list(self.get_items(obj)),
         'details_url': '%s/@@watcher-recently-modified' % (
             get_object_url(obj))}
Пример #3
0
 def test_get_object_url(self):
     folder = self.layer['folder']
     self.assertEqual(get_object_url(folder),
                      '%sfeed-folder' % PORTAL_URL_PLACEHOLDER)
Пример #4
0
 def test_get_object_url(self):
     folder = self.layer['folder']
     self.assertEqual(
         get_object_url(folder),
         '%sfeed-folder' % PORTAL_URL_PLACEHOLDER)
Пример #5
0
 def get_data(self, obj):
     return {
         'title': obj.Title().decode('utf-8'),
         'items': list(self.get_items(obj)),
         'details_url': '%s/@@watcher-recently-modified' % (
             get_object_url(obj))}