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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
c2db3b6d
Commit
c2db3b6d
authored
Sep 29, 2022
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Move RSS related to slapos_rss_style
parent
a41e32d8
Changes
13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
857 additions
and
3 deletions
+857
-3
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS.xml
...riptionRequestModule_viewSubscriptionRequestListAsRSS.xml
+1
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox.xml
...equestModule_viewSubscriptionRequestListAsRSS/listbox.xml
+13
-1
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_description.xml
..._viewSubscriptionRequestListAsRSS/listbox_description.xml
+0
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_guid.xml
...tModule_viewSubscriptionRequestListAsRSS/listbox_guid.xml
+283
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_pubDate.xml
...dule_viewSubscriptionRequestListAsRSS/listbox_pubDate.xml
+0
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_title.xml
...Module_viewSubscriptionRequestListAsRSS/listbox_title.xml
+0
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequest_getRSSDescription.py
...slapos_rss_style/SubscriptionRequest_getRSSDescription.py
+0
-0
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequest_getRSSDescription.xml
...lapos_rss_style/SubscriptionRequest_getRSSDescription.xml
+0
-0
master/bt5/slapos_subscription_request/ActionTemplateItem/portal_types/Subscription%20Request%20Module/rss_view.xml
...portal_types/Subscription%20Request%20Module/rss_view.xml
+2
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_getTicketFeedUrl.py
...ion_request/SubscriptionRequestModule_getTicketFeedUrl.py
+34
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_getTicketFeedUrl.xml
...on_request/SubscriptionRequestModule_getTicketFeedUrl.xml
+62
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_viewFeedURLDialog.xml
...n_request/SubscriptionRequestModule_viewFeedURLDialog.xml
+135
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_viewFeedURLDialog/your_feed_url.xml
...criptionRequestModule_viewFeedURLDialog/your_feed_url.xml
+327
-0
No files found.
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS.xml
View file @
c2db3b6d
...
...
@@ -73,6 +73,7 @@
<value>
<list>
<string>
listbox
</string>
<string>
listbox_guid
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox.xml
View file @
c2db3b6d
...
...
@@ -134,6 +134,14 @@
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
guid
</string>
<string>
guid
</string>
</tuple>
<tuple>
<string>
destination_section_title
</string>
<string>
author
</string>
</tuple>
<tuple>
<string>
pubDate
</string>
<string>
pubDate
</string>
...
...
@@ -143,7 +151,7 @@
<string>
Description
</string>
</tuple>
<tuple>
<string>
absolute_u
rl
</string>
<string>
Base_getTicketU
rl
</string>
<string>
link
</string>
</tuple>
</list>
...
...
@@ -175,6 +183,10 @@
<string>
description
</string>
<string>
description
</string>
</tuple>
<tuple>
<string>
guid
</string>
<string>
guid
</string>
</tuple>
</list>
</value>
</item>
...
...
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_description.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_description.xml
View file @
c2db3b6d
File moved
master/bt5/slapos_rss_style/SkinTemplateItem/portal_skins/slapos_rss_style/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_guid.xml
0 → 100644
View file @
c2db3b6d
This diff is collapsed.
Click to expand it.
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_pubDate.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_pubDate.xml
View file @
c2db3b6d
File moved
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_title.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS/listbox_title.xml
View file @
c2db3b6d
File moved
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequest_getRSSDescription.py
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequest_getRSSDescription.py
View file @
c2db3b6d
File moved
master/bt5/slapos_
subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request
/SubscriptionRequest_getRSSDescription.xml
→
master/bt5/slapos_
rss_style/SkinTemplateItem/portal_skins/slapos_rss_style
/SubscriptionRequest_getRSSDescription.xml
View file @
c2db3b6d
File moved
master/bt5/slapos_subscription_request/ActionTemplateItem/portal_types/Subscription%20Request%20Module/rss_view.xml
View file @
c2db3b6d
...
...
@@ -62,7 +62,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
RSS
Subscription Request List
</string>
</value>
<value>
<string>
RSS
Feed
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
...
...
@@ -79,7 +79,7 @@
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/SubscriptionRequestModule_view
SubscriptionRequestListAsRSS?portal_skin=RSS
</string>
</value>
<value>
<string>
string:${object_url}/SubscriptionRequestModule_view
FeedURLDialog
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_getTicketFeedUrl.py
0 → 100644
View file @
c2db3b6d
portal
=
context
.
getPortalObject
()
person
=
portal
.
portal_membership
.
getAuthenticatedMember
().
getUserValue
()
if
person
is
None
:
raise
ValueError
(
"User Not Found"
)
request_url
=
"%s/SubscriptionRequestModule_viewSubscriptionRequestListAsRSS"
%
context
.
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?portal_skin=RSS&access_token=%s&access_token_secret=%s"
%
(
request_url
,
access_token
.
getId
(),
reference
)
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_getTicketFeedUrl.xml
0 → 100644
View file @
c2db3b6d
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<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>
SubscriptionRequestModule_getTicketFeedUrl
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_viewFeedURLDialog.xml
0 → 100644
View file @
c2db3b6d
<?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=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<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></string>
</value>
</item>
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<list>
<string>
bottom
</string>
<string>
hidden
</string>
</list>
</value>
</item>
<item>
<key>
<string>
groups
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list>
<string>
your_feed_url
</string>
</list>
</value>
</item>
<item>
<key>
<string>
hidden
</string>
</key>
<value>
<list/>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
SubscriptionRequestModule_viewFeedURLDialog
</string>
</value>
</item>
<item>
<key>
<string>
method
</string>
</key>
<value>
<string>
POST
</string>
</value>
</item>
<item>
<key>
<string>
name
</string>
</key>
<value>
<string>
Folder_viewOpenTicketFeedURL
</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>
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_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_viewFeedURLDialog/your_feed_url.xml
0 → 100644
View file @
c2db3b6d
This diff is collapsed.
Click to expand it.
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