Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
18347abe
Commit
18347abe
authored
Jun 23, 2021
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs_appstore_base: fix dynamic appstore home json generation
parent
f3c88876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
...rp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
+3
-3
No files found.
bt5/erp5_officejs_appstore_base/SkinTemplateItem/portal_skins/erp5_officejs_appstore_base/Alarm_updateAppstoreWebSite.py
View file @
18347abe
...
@@ -3,7 +3,7 @@ from DateTime import DateTime
...
@@ -3,7 +3,7 @@ from DateTime import DateTime
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
preference_tool
=
portal
.
portal_preferences
preference_tool
=
portal
.
portal_preferences
software_product_list
=
portal
.
portal_catalog
(
portal_type
=
'Software Product'
,
validation_state
=
'validated'
)
software_product_list
=
portal
.
portal_catalog
(
portal_type
=
'Software Product'
,
validation_state
=
'validated'
,
sort_on
=
'creation_date'
)
appstore_data
=
[]
appstore_data
=
[]
logo_url_list
=
[]
logo_url_list
=
[]
i
=
0
i
=
0
...
@@ -31,8 +31,8 @@ for software_product in software_product_list:
...
@@ -31,8 +31,8 @@ for software_product in software_product_list:
"application_image_type"
:
'image'
,
"application_image_type"
:
'image'
,
"application_image_url"
:
logo
.
getReference
(),
"application_image_url"
:
logo
.
getReference
(),
"application_toc_accept"
:
'true'
,
"application_toc_accept"
:
'true'
,
"application_published"
:
'some_date'
,
"application_published"
:
web_section
.
getModificationDate
().
strftime
(
"%m/%d/%Y"
)
,
"application_submitted"
:
'other_date'
,
"application_submitted"
:
web_section
.
getModificationDate
().
strftime
(
"%m/%d/%Y"
)
,
"application_description"
:
data
[
"description"
]
if
"description"
in
data
else
data
[
"name"
],
"application_description"
:
data
[
"description"
]
if
"description"
in
data
else
data
[
"name"
],
"application_url"
:
"%s://%s.%s/"
%
(
preference_tool
.
getPreferredSystemAppstoreWildcardProtocol
(),
"application_url"
:
"%s://%s.%s/"
%
(
preference_tool
.
getPreferredSystemAppstoreWildcardProtocol
(),
app_domain
,
app_domain
,
...
...
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