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
Carlos Ramos Carreño
slapos.core
Commits
3f45fff3
Commit
3f45fff3
authored
Sep 24, 2024
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_panel: Add User's RSS feed Link on site main menu
parent
e7897efc
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
691 additions
and
4 deletions
+691
-4
master/bt5/slapos_panel/ActionTemplateItem/portal_types/Support%20Request%20Module/slapos_panel_view_my_rss_feed_link.xml
...20Request%20Module/slapos_panel_view_my_rss_feed_link.xml
+81
-0
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_access_js.js
...lateItem/web_page_module/slapos_master_panel_access_js.js
+6
-1
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_access_js.xml
...ateItem/web_page_module/slapos_master_panel_access_js.xml
+3
-3
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_getRssFeedUrl.py
..._skins/slapos_panel/SupportRequestModule_getRssFeedUrl.py
+39
-0
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_getRssFeedUrl.xml
...skins/slapos_panel/SupportRequestModule_getRssFeedUrl.xml
+62
-0
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_viewMyRSSFeedLinkDialog.xml
...os_panel/SupportRequestModule_viewMyRSSFeedLinkDialog.xml
+160
-0
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_viewMyRSSFeedLinkDialog/my_rss_link.xml
...portRequestModule_viewMyRSSFeedLinkDialog/my_rss_link.xml
+339
-0
master/bt5/slapos_panel/bt/template_action_path_list
master/bt5/slapos_panel/bt/template_action_path_list
+1
-0
No files found.
master/bt5/slapos_panel/ActionTemplateItem/portal_types/Support%20Request%20Module/slapos_panel_view_my_rss_feed_link.xml
0 → 100644
View file @
3f45fff3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
slapos_panel_view_my_rss_feed_link
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
31.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
RSS Feed
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/SupportRequestModule_viewMyRSSFeedLinkDialog
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_access_js.js
View file @
3f45fff3
...
...
@@ -22,7 +22,8 @@
'
Servers
'
,
'
Tickets
'
,
'
Invoices
'
,
'
Pay
'
'
Pay
'
,
'
RSS
'
])
}))
.
push
(
function
(
result_dict
)
{
...
...
@@ -54,6 +55,10 @@
title
:
result_dict
.
translation_dict
.
Pay
,
jio_key
:
'
accounting_module
'
,
erp5_action
:
'
pay_my_slapos_sale_invoice_transaction
'
},
{
title
:
result_dict
.
translation_dict
.
RSS
,
jio_key
:
'
support_request_module
'
,
erp5_action
:
'
slapos_panel_view_my_rss_feed_link
'
}]);
});
});
...
...
master/bt5/slapos_panel/PathTemplateItem/web_page_module/slapos_master_panel_access_js.xml
View file @
3f45fff3
...
...
@@ -232,7 +232,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<
unicode>
zope
</unicode
>
</value>
<value>
<
string>
zope
</string
>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
101
4.26539.21375.20974
</string>
</value>
<value>
<string>
101
9.34619.15791.26897
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -266,7 +266,7 @@
</tuple>
<state>
<tuple>
<float>
17
07822073.41
</float>
<float>
17
27213304.44
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_getRssFeedUrl.py
0 → 100644
View file @
3f45fff3
portal
=
context
.
getPortalObject
()
person
=
portal
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
web_site
=
context
.
getWebSiteValue
()
if
person
is
None
:
raise
ValueError
(
"User Not Found"
)
if
web_site
is
None
:
raise
ValueError
(
"Web Site not Found"
)
# We expect to fail if it is not call on proper website.
request_url
=
web_site
.
feed
.
absolute_url
()
# XXX - Cannot search in catalog with parameter url_string
access_token
=
None
for
token_item
in
portal
.
portal_catalog
(
portal_type
=
"Restricted Access Token"
,
default_agent_uid
=
person
.
getUid
(),
validation_state
=
'validated'
):
if
token_item
.
getUrlString
()
==
request_url
:
access_token
=
token_item
reference
=
access_token
.
getReference
()
break
if
access_token
is
None
:
access_token
=
portal
.
access_token_module
.
newContent
(
portal_type
=
"Restricted Access Token"
,
url_string
=
request_url
,
url_method
=
"GET"
,
)
access_token
.
setAgentValue
(
person
)
reference
=
access_token
.
getReference
()
access_token
.
validate
()
return
"%s?access_token=%s&access_token_secret=%s"
%
(
request_url
,
access_token
.
getId
(),
reference
)
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_getRssFeedUrl.xml
0 → 100644
View file @
3f45fff3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SupportRequestModule_getRssFeedUrl
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_viewMyRSSFeedLinkDialog.xml
0 → 100644
View file @
3f45fff3
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ERP5 Form"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</tuple>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary/>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
edit_order
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
enctype
</string>
</key>
<value>
<string>
multipart/form-data
</string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<list>
<string>
left
</string>
<string>
right
</string>
<string>
bottom
</string>
<string>
center
</string>
<string>
hidden
</string>
</list>
</value>
</item>
<item>
<key>
<string>
groups
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
my_rss_link
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
left
</string>
</key>
<value>
<list/>
</value>
</item>
<item>
<key>
<string>
right
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SupportRequestModule_viewMyRSSFeedLinkDialog
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
<value>
<string>
POST
</string>
</value>
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
SupportRequestModule_viewMyRSSFeedLinkDialog
</string>
</value>
</item>
<item>
<key>
<string>
pt
</string>
</key>
<value>
<string>
form_dialog
</string>
</value>
</item>
<item>
<key>
<string>
row_length
</string>
</key>
<value>
<int>
4
</int>
</value>
</item>
<item>
<key>
<string>
stored_encoding
</string>
</key>
<value>
<string>
UTF-8
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Ticket RSS Feed
</string>
</value>
</item>
<item>
<key>
<string>
unicode_mode
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
update_action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
update_action_title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_panel/SkinTemplateItem/portal_skins/slapos_panel/SupportRequestModule_viewMyRSSFeedLinkDialog/my_rss_link.xml
0 → 100644
View file @
3f45fff3
This diff is collapsed.
Click to expand it.
master/bt5/slapos_panel/bt/template_action_path_list
View file @
3f45fff3
...
...
@@ -99,6 +99,7 @@ Subscription Request Module | slapos_panel_view
Subscription Request | jump_pay_my_slapos_sale_invoice_transaction
Subscription Request | slapos_panel_view
Support Request Module | slapos_panel_view
Support Request Module | slapos_panel_view_my_rss_feed_link
Support Request Module | slapos_panel_view_my_ticket_list
Support Request | add_slapos_event
Support Request | close_slapos_support_request
...
...
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