Commit 718a39f1 authored by Łukasz Nowak's avatar Łukasz Nowak

Suffix with type.

parent 952fe0c5
......@@ -71,14 +71,13 @@ kw.update(\n
)\n
\n
response = []\n
prefix_url = context.getWebSiteValue() and context.getWebSiteValue().absolute_url() or context.getPortalObject().absolute_url()\n
for q in portal_catalog(**kw):\n
o = q.getObject()\n
response.append({\n
\'uid\': q.UID,\n
\'title\': q.TITLE,\n
\'description\': q.DESCRIPTION,\n
\'image\': context.getPermanentURL(o.getAggregateValue(portal_type=\'Software Product\').getDefaultImageValue()) + \'/Base_download\',\n
\'image_url\': context.getPermanentURL(o.getAggregateValue(portal_type=\'Software Product\').getDefaultImageValue()) + \'/Base_download\',\n
\'document_url\': context.getPermanentURL(o),\n
\'url\': q.SOFTWARE_RELEASE_URL,\n
})\n
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts22124862.69</string> </value>
<value> <string>ts22130726.57</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -65,7 +65,7 @@ function setSoftwareReleaseEntry(item, append_to, insert_before) {\n
li.addClass(\'software_release_entry\');\n
li.click(function() {window.location.hash=\'#software_release=\' + item.uid});\n
img.attr({\n
\'src\': item.image,\n
\'src\': item.image_url,\n
\'alt\': item.title,\n
\'title\': item.title\n
});\n
......@@ -258,7 +258,7 @@ function hashController ()\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>7427</int> </value>
<value> <int>7431</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment