fixup hypermedia adapt Base_getHateoasMaster

parent d10324f2
...@@ -89,10 +89,10 @@ portal = context.getPortalObject()\n ...@@ -89,10 +89,10 @@ portal = context.getPortalObject()\n
\n \n
person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
if person is not None:\n if person is not None:\n
result_dict[\'_links\'][\'action_object_jump\'] = {\n result_dict[\'_links\'][\'me\'] = {\n
\'href\': \'%s/ERP5Document_getHateoas\' % person.absolute_url(),\n "href": "urn:jio:get:%s" % person.getRelativeUrl(),\n
\'title\': \'Person\'\n
}\n }\n
\n
else:\n else:\n
user = str(portal.portal_membership.getAuthenticatedMember())\n user = str(portal.portal_membership.getAuthenticatedMember())\n
if user != "Anonymous User":\n if user != "Anonymous User":\n
......
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