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
Lu Xu
slapos.core
Commits
485571b0
Commit
485571b0
authored
Mar 01, 2017
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_trial: Make free trial configurable via Web Section
parent
819e3e4d
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
728 additions
and
84 deletions
+728
-84
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/TrialRequest_getTrialConfiguration.py
..._skins/slapos_trial/TrialRequest_getTrialConfiguration.py
+0
-1
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/TrialRequest_getTrialConfiguration.xml
...skins/slapos_trial/TrialRequest_getTrialConfiguration.xml
+0
-62
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration.xml
...slapos_trial/WebSection_viewHostingTrialConfiguration.xml
+9
-6
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_base_software_title.xml
...stingTrialConfiguration/my_layout_base_software_title.xml
+2
-2
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_instance_xml.xml
..._viewHostingTrialConfiguration/my_layout_instance_xml.xml
+96
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_is_slave.xml
...tion_viewHostingTrialConfiguration/my_layout_is_slave.xml
+96
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_sla_xml.xml
...ction_viewHostingTrialConfiguration/my_layout_sla_xml.xml
+96
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_software_release_url.xml
...tingTrialConfiguration/my_layout_software_release_url.xml
+2
-2
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_software_type.xml
...viewHostingTrialConfiguration/my_layout_software_type.xml
+2
-2
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_subject_list.xml
..._viewHostingTrialConfiguration/my_layout_subject_list.xml
+96
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_user_input_list.xml
...ewHostingTrialConfiguration/my_layout_user_input_list.xml
+3
-3
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrial.py
...tem/portal_skins/slapos_trial/WebSite_requestFreeTrial.py
+8
-1
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrial.xml
...em/portal_skins/slapos_trial/WebSite_requestFreeTrial.xml
+1
-1
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrialProxy.py
...ortal_skins/slapos_trial/WebSite_requestFreeTrialProxy.py
+14
-3
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrialProxy.xml
...rtal_skins/slapos_trial/WebSite_requestFreeTrialProxy.xml
+1
-1
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm.xml
...m/portal_skins/slapos_trial/WebSite_viewFreeTrialForm.xml
+2
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm/your_default_input0.xml
...s_trial/WebSite_viewFreeTrialForm/your_default_input0.xml
+148
-0
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm/your_default_input1.xml
...s_trial/WebSite_viewFreeTrialForm/your_default_input1.xml
+152
-0
No files found.
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/TrialRequest_getTrialConfiguration.py
deleted
100644 → 0
View file @
819e3e4d
raise
ValueError
(
"Free Trial is disabled!"
)
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/TrialRequest_getTrialConfiguration.xml
deleted
100644 → 0
View file @
819e3e4d
<?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>
software_release
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
TrialRequest_getTrialConfiguration
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration.xml
View file @
485571b0
...
...
@@ -80,9 +80,7 @@
<item>
<key>
<string>
center
</string>
</key>
<value>
<list>
<string>
my_layout_hosting_request_notification_reference
</string>
</list>
<list/>
</value>
</item>
<item>
...
...
@@ -95,11 +93,16 @@
<key>
<string>
left
</string>
</key>
<value>
<list>
<string>
my_layout_logo_reference
</string>
<string>
my_layout_footer_reference
</string>
<string>
my_layout_subscription_contract_reference
</string>
<string>
my_layout_terms_of_service_reference
</string>
<string>
my_layout_software_product_reference
</string>
<string>
my_layout_subject_list
</string>
<string>
my_layout_software_release_url
</string>
<string>
my_layout_is_slave
</string>
<string>
my_layout_software_type
</string>
<string>
my_layout_instance_xml
</string>
<string>
my_layout_sla_xml
</string>
<string>
my_layout_user_input_list
</string>
<string>
my_layout_base_software_title
</string>
</list>
</value>
</item>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
footer_referenc
e.xml
→
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
base_software_titl
e.xml
View file @
485571b0
...
...
@@ -16,7 +16,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_
footer_referenc
e
</string>
</value>
<value>
<string>
my_layout_
base_software_titl
e
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -85,7 +85,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Footer Referenc
e
</string>
</value>
<value>
<string>
Base Software Titl
e
</string>
</value>
</item>
</dictionary>
</value>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_instance_xml.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_instance_xml
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_text_area_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWebFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Instance XML
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_is_slave.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_is_slave
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Shared
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_sla_xml.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_sla_xml
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_text_area_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWebFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Sla XML
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_s
ubscription_contract_reference
.xml
→
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_s
oftware_release_url
.xml
View file @
485571b0
...
...
@@ -16,7 +16,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_s
ubscription_contract_reference
</string>
</value>
<value>
<string>
my_layout_s
oftware_release_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -85,7 +85,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
S
ubscription Contract Reference
</string>
</value>
<value>
<string>
S
oftware Release URL
</string>
</value>
</item>
</dictionary>
</value>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
logo_referenc
e.xml
→
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
software_typ
e.xml
View file @
485571b0
...
...
@@ -16,7 +16,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_
logo_referenc
e
</string>
</value>
<value>
<string>
my_layout_
software_typ
e
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -85,7 +85,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Logo Referenc
e
</string>
</value>
<value>
<string>
Software Typ
e
</string>
</value>
</item>
</dictionary>
</value>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_subject_list.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_subject_list
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_lines_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewWebFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Expected Connection Parameter List
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
hosting_request_notification_reference
.xml
→
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSection_viewHostingTrialConfiguration/my_layout_
user_input_list
.xml
View file @
485571b0
...
...
@@ -16,7 +16,7 @@
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_layout_
hosting_request_notification_reference
</string>
</value>
<value>
<string>
my_layout_
user_input_list
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
...
...
@@ -73,7 +73,7 @@
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_
string
_field
</string>
</value>
<value>
<string>
my_
lines
_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
...
...
@@ -85,7 +85,7 @@
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Hosting Subscription Start Notification Reference
</string>
</value>
<value>
<string>
User Input List
</string>
</value>
</item>
</dictionary>
</value>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrial.py
View file @
485571b0
...
...
@@ -14,4 +14,11 @@ else:
if
default_email_text
is
None
:
return
context
.
Base_redirect
(
"WebSite_viewFreeTrialForm"
,
keep_items
=
{
"portal_status_message"
,
"Please Provide some email!"
})
return
context
.
WebSite_requestFreeTrialProxy
(
software_release
,
default_email_text
,
batch_mode
=
0
)
user_input_dict
=
{
"input0"
:
default_input0
,
"input1"
:
default_input1
}
return
context
.
WebSite_requestFreeTrialProxy
(
software_release
,
default_email_text
,
user_input_dict
=
user_input_dict
,
batch_mode
=
0
)
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrial.xml
View file @
485571b0
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
software_release=None, default_email_text=None, REQUEST=None
</string>
</value>
<value>
<string>
software_release=None, default_email_text=None,
default_input0=None, default_input1=None,
REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrialProxy.py
View file @
485571b0
...
...
@@ -7,11 +7,22 @@ if REQUEST is not None:
request
=
context
.
REQUEST
portal
=
context
.
getPortalObject
()
web_section
=
context
.
getWebSectionValue
()
trial_configuration
=
context
.
TrialRequest_getTrialConfiguration
(
software_release
)
def
_get
(
layout_property
):
return
web_section
.
getLayoutProperty
(
"layout_"
+
layout_property
)
software_title
=
trial_configuration
[
"base_software_title"
]
%
(
email
)
trial_configuration
=
{
"instance_xml"
:
_get
(
"instance_xml"
),
"base_software_title"
:
_get
(
"base_software_title"
),
"software_type"
:
_get
(
"software_type"
),
"url"
:
_get
(
"software_release_url"
),
"shared"
:
_get
(
"is_slave"
),
"subject_list"
:
_get
(
"subject_list"
),
"sla_xml"
:
_get
(
"sla_xml"
)
}
software_title
=
trial_configuration
[
"base_software_title"
]
%
(
email
)
trial_request
=
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Trial Request'
,
...
...
@@ -39,7 +50,7 @@ trial = context.trial_request_module.newContent(
source_reference
=
trial_configuration
[
"software_type"
],
title
=
software_title
,
url_string
=
trial_configuration
[
"url"
],
text_content
=
trial_configuration
[
"instance_xml"
],
text_content
=
trial_configuration
[
"instance_xml"
]
%
user_input_dict
,
start_date
=
now
,
stop_date
=
now
+
30
,
root_slave
=
trial_configuration
[
"shared"
],
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_requestFreeTrialProxy.xml
View file @
485571b0
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
software_release, email, batch_mode=True, REQUEST=None
</string>
</value>
<value>
<string>
software_release, email,
user_input_dict={},
batch_mode=True, REQUEST=None
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm.xml
View file @
485571b0
...
...
@@ -80,6 +80,8 @@
<list>
<string>
my_description
</string>
<string>
your_default_email_text
</string>
<string>
your_default_input0
</string>
<string>
your_default_input1
</string>
<string>
contract
</string>
<string>
your_term_confirmation
</string>
<string>
your_captcha
</string>
...
...
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm/your_default_input0.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
enabled
</string>
<string>
required
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_default_input0
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
your_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Input
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getWebSectionValue().getLayoutProperty("layout_user_input_list")
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getWebSectionValue().getLayoutProperty("layout_user_input_list")[0]
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
master/bt5/slapos_trial_request/SkinTemplateItem/portal_skins/slapos_trial/WebSite_viewFreeTrialForm/your_default_input1.xml
0 → 100644
View file @
485571b0
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
enabled
</string>
<string>
required
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_default_input1
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAM=
</string>
</persistent>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
your_string_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Input
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
python: len(here.getWebSectionValue().getLayoutProperty("layout_user_input_list", [])) >
1
]]>
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getWebSectionValue().getLayoutProperty("layout_user_input_list")[1]
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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