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)), }
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))}
def test_get_object_url(self): folder = self.layer['folder'] self.assertEqual(get_object_url(folder), '%sfeed-folder' % PORTAL_URL_PLACEHOLDER)
def test_get_object_url(self): folder = self.layer['folder'] self.assertEqual( get_object_url(folder), '%sfeed-folder' % PORTAL_URL_PLACEHOLDER)