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
8c7f556e
Commit
8c7f556e
authored
Aug 05, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: Make Pylint Happy
parent
2cf5ea7c
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
13 additions
and
24 deletions
+13
-24
master/bt5/slapos_subscription_request/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSSubscriptionRequest.py
...al_components/extension.erp5.SlapOSSubscriptionRequest.py
+2
-2
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.py
...est/SubscriptionRequestModule_requestSubscriptionProxy.py
+0
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.xml
...st/SubscriptionRequestModule_requestSubscriptionProxy.xml
+1
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_generateReservationRefoundSalePackingList.py
...ptionRequest_generateReservationRefoundSalePackingList.py
+1
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/TrialCondition_requestFreeTrialProxy.py
...scription_request/TrialCondition_requestFreeTrialProxy.py
+3
-0
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/TrialCondition_requestFreeTrialProxy.xml
...cription_request/TrialCondition_requestFreeTrialProxy.xml
+1
-1
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSTrialScenario.py
...em/portal_components/test.erp5.testSlapOSTrialScenario.py
+0
-6
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSTrialScenario.xml
...m/portal_components/test.erp5.testSlapOSTrialScenario.xml
+1
-8
master/bt5/slapos_subscription_request/WorkflowTemplateItem/portal_workflow/subscription_request_workflow/scripts/checkConsistency.py
...subscription_request_workflow/scripts/checkConsistency.py
+2
-2
master/bt5/slapos_subscription_request/WorkflowTemplateItem/portal_workflow/trial_request_workflow/scripts/checkConsistency.py
...rkflow/trial_request_workflow/scripts/checkConsistency.py
+2
-2
No files found.
master/bt5/slapos_subscription_request/ExtensionTemplateItem/portal_components/extension.erp5.SlapOSSubscriptionRequest.py
View file @
8c7f556e
...
@@ -22,8 +22,8 @@ def Base_instanceXmlToDict(self, xml):
...
@@ -22,8 +22,8 @@ def Base_instanceXmlToDict(self, xml):
else
:
else
:
value
=
element
.
text
value
=
element
.
text
result_dict
[
key
]
=
value
result_dict
[
key
]
=
value
except
(
etree
.
XMLSchemaError
,
etree
.
XMLSchemaParseError
,
except
(
etree
.
XMLSchemaError
,
etree
.
XMLSchemaParseError
,
#pylint: disable=catching-non-exception
etree
.
XMLSchemaValidateError
,
etree
.
XMLSyntaxError
):
etree
.
XMLSchemaValidateError
,
etree
.
XMLSyntaxError
):
#pylint: disable=catching-non-exception
LOG
(
'SubscriptionRequest'
,
INFO
,
'Issue during parsing xml:'
,
error
=
True
)
LOG
(
'SubscriptionRequest'
,
INFO
,
'Issue during parsing xml:'
,
error
=
True
)
return
result_dict
return
result_dict
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.py
View file @
8c7f556e
...
@@ -31,7 +31,6 @@ subscription_request = context.subscription_request_module.newContent(
...
@@ -31,7 +31,6 @@ subscription_request = context.subscription_request_module.newContent(
subscription_request
.
setDefaultEmailText
(
email
)
subscription_request
.
setDefaultEmailText
(
email
)
def
wrapWithShadow
(
subscription_request
,
amount
,
subscription_reference
,
subscription_request_id
):
def
wrapWithShadow
(
subscription_request
,
amount
,
subscription_reference
,
subscription_request_id
):
subscription_request
.
activate
(
tag
=
"subscription_condition_%s"
%
subscription_request_id
subscription_request
.
activate
(
tag
=
"subscription_condition_%s"
%
subscription_request_id
).
SubscriptionRequest_applyCondition
(
subscription_reference
,
target_language
)
).
SubscriptionRequest_applyCondition
(
subscription_reference
,
target_language
)
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequestModule_requestSubscriptionProxy.xml
View file @
8c7f556e
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
email, subscription_reference, confirmation_required=False, user_input_dict=
{}
, target_language=None, batch_mode=True, REQUEST=None
</string>
</value>
<value>
<string>
email, subscription_reference, confirmation_required=False, user_input_dict=
None
, target_language=None, batch_mode=True, REQUEST=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/SubscriptionRequest_generateReservationRefoundSalePackingList.py
View file @
8c7f556e
from
zExceptions
import
Unauthorized
from
zExceptions
import
Unauthorized
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
pass
#
raise Unauthorized
raise
Unauthorized
portal
=
context
.
getObject
()
portal
=
context
.
getObject
()
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/TrialCondition_requestFreeTrialProxy.py
View file @
8c7f556e
...
@@ -6,6 +6,9 @@ if REQUEST is not None:
...
@@ -6,6 +6,9 @@ if REQUEST is not None:
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
if
user_input_dict
is
None
:
user_input_dict
=
{}
if
context
.
getValidationState
()
not
in
[
"validated"
,
"published"
]:
if
context
.
getValidationState
()
not
in
[
"validated"
,
"published"
]:
raise
ValueError
(
"This Trial Condition isn't validated."
)
raise
ValueError
(
"This Trial Condition isn't validated."
)
...
...
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/TrialCondition_requestFreeTrialProxy.xml
View file @
8c7f556e
...
@@ -50,7 +50,7 @@
...
@@ -50,7 +50,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
email, user_input_dict=
{}
, batch_mode=True, REQUEST=None
</string>
</value>
<value>
<string>
email, user_input_dict=
None
, batch_mode=True, REQUEST=None
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSTrialScenario.py
View file @
8c7f556e
...
@@ -6,12 +6,6 @@
...
@@ -6,12 +6,6 @@
##############################################################################
##############################################################################
from
erp5.component.test.SlapOSTestCaseDefaultScenarioMixin
import
DefaultScenarioMixin
from
erp5.component.test.SlapOSTestCaseDefaultScenarioMixin
import
DefaultScenarioMixin
from
erp5.component.test.SlapOSTestCaseMixin
import
changeSkin
import
re
import
json
import
xml_marshaller
from
AccessControl.SecurityManagement
import
getSecurityManager
,
\
setSecurityManager
from
DateTime
import
DateTime
from
DateTime
import
DateTime
class
TestSlapOSTrialScenario
(
DefaultScenarioMixin
):
class
TestSlapOSTrialScenario
(
DefaultScenarioMixin
):
...
...
master/bt5/slapos_subscription_request/TestTemplateItem/portal_components/test.erp5.testSlapOSTrialScenario.xml
View file @
8c7f556e
...
@@ -45,14 +45,7 @@
...
@@ -45,14 +45,7 @@
<item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<value>
<tuple>
<tuple/>
<string>
W: 9, 0: Unused changeSkin imported from erp5.component.test.SlapOSTestCaseMixin (unused-import)
</string>
<string>
W: 10, 0: Unused import re (unused-import)
</string>
<string>
W: 11, 0: Unused import json (unused-import)
</string>
<string>
W: 12, 0: Unused import xml_marshaller (unused-import)
</string>
<string>
W: 13, 0: Unused getSecurityManager imported from AccessControl.SecurityManagement (unused-import)
</string>
<string>
W: 13, 0: Unused setSecurityManager imported from AccessControl.SecurityManagement (unused-import)
</string>
</tuple>
</value>
</value>
</item>
</item>
<item>
<item>
...
...
master/bt5/slapos_subscription_request/WorkflowTemplateItem/portal_workflow/subscription_request_workflow/scripts/checkConsistency.py
View file @
8c7f556e
objec
t
=
state_change
[
'object'
]
subscription_reques
t
=
state_change
[
'object'
]
objec
t
.
Base_checkConsistency
()
subscription_reques
t
.
Base_checkConsistency
()
master/bt5/slapos_subscription_request/WorkflowTemplateItem/portal_workflow/trial_request_workflow/scripts/checkConsistency.py
View file @
8c7f556e
objec
t
=
state_change
[
'object'
]
trial_reques
t
=
state_change
[
'object'
]
objec
t
.
Base_checkConsistency
()
trial_reques
t
.
Base_checkConsistency
()
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