Commit 92a5ad36 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: partially revert previous changes

getTitle relies on acessors, it would not return "" but the id (revert as it introduce a regression)
use a diferent append on generateNewId on the test for this bt5
parent 81d5365b
......@@ -35,7 +35,7 @@ for sql_obj in context.getPortalObject().portal_catalog(
obj = sql_obj.getObject()
result_dict['_links']['content'].append({
'href': '%s/ERP5Document_getHateoas' % obj.absolute_url(),
'title': sql_obj.title,
'title': obj.getTitle(),
})
response.setHeader('Content-Type', mime_type)
......
......@@ -388,6 +388,10 @@ class TestSlapOSHypermediaPersonScenario(SlapOSTestCaseMixin):
class TestSlapOSHypermediaInstanceScenario(SlapOSTestCaseMixin):
def generateNewId(self):
return "%shype" % self.portal.portal_ids.generateNewId(
id_group=('slapos_core_test'))
def generateNewSoftwareReleaseUrl(self):
return 'http://example.org/test%s.cfg' % self.generateNewId()
......
......@@ -52,9 +52,9 @@
<string>W: 51, 8: Unused variable \'api_fragment\' (unused-variable)</string>
<string>W: 50, 38: Unused variable \'api_query\' (unused-variable)</string>
<string>W:386, 4: Unused variable \'software_hal\' (unused-variable)</string>
<string>W:412, 28: Unused variable \'api_path\' (unused-variable)</string>
<string>W:412, 38: Unused variable \'api_query\' (unused-variable)</string>
<string>W:413, 8: Unused variable \'api_fragment\' (unused-variable)</string>
<string>W:416, 28: Unused variable \'api_path\' (unused-variable)</string>
<string>W:416, 38: Unused variable \'api_query\' (unused-variable)</string>
<string>W:417, 8: Unused variable \'api_fragment\' (unused-variable)</string>
</tuple>
</value>
</item>
......
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