Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
slapos.core
Commits
20704018
Commit
20704018
authored
Mar 26, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Include relative URL when generate RSS.
parent
9d065897
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_generateRssRestrictedAccessTokenFromJS.xml
...b_hosting/Base_generateRssRestrictedAccessTokenFromJS.xml
+9
-4
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_generateRssRestrictedAccessTokenFromJS.xml
View file @
20704018
...
@@ -60,8 +60,13 @@ person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
...
@@ -60,8 +60,13 @@ person = portal.ERP5Site_getAuthenticatedMemberPersonValue()\n
if person is None:\n
if person is None:\n
raise ValueError("User Not Found")\n
raise ValueError("User Not Found")\n
\n
\n
document_path = ""\n
\n
if context.getPortalType() in ["Hosting Subscription", "Computer"]:\n
document_path = "/%s" % context.getRelativeUrl()\n
\n
web_site = context.getWebSiteValue()\n
web_site = context.getWebSiteValue()\n
request_url = "%s/
%s" % (web_site.absolute_url(), "feed"
)\n
request_url = "%s/
feed%s" % (web_site.absolute_url(), document_path
)\n
\n
\n
# XXX - Cannot search in catalog with parameter url_string\n
# XXX - Cannot search in catalog with parameter url_string\n
access_token = None\n
access_token = None\n
...
@@ -73,7 +78,7 @@ for token_item in portal.portal_catalog(\n
...
@@ -73,7 +78,7 @@ for token_item in portal.portal_catalog(\n
if token_item.getUrlString() == request_url:\n
if token_item.getUrlString() == request_url:\n
access_token = token_item\n
access_token = token_item\n
reference = access_token.getReference()\n
reference = access_token.getReference()\n
break
;
\n
break\n
\n
\n
if access_token is None:\n
if access_token is None:\n
access_token = portal.access_token_module.newContent(\n
access_token = portal.access_token_module.newContent(\n
...
@@ -85,9 +90,9 @@ if access_token is None:\n
...
@@ -85,9 +90,9 @@ if access_token is None:\n
reference = access_token.getReference() \n
reference = access_token.getReference() \n
access_token.validate()\n
access_token.validate()\n
\n
\n
url = "%s/%s?portal_skin=RSS&access_token=%s&access_token_secret=%s" % (\n
url = "%s/
feed
%s?portal_skin=RSS&access_token=%s&access_token_secret=%s" % (\n
web_site.absolute_url(),\n
web_site.absolute_url(),\n
"feed"
,\n
document_path
,\n
access_token.getId(),\n
access_token.getId(),\n
reference)\n
reference)\n
\n
\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment