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
Xiaowu Zhang
slapos.core
Commits
39594073
Commit
39594073
authored
May 27, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud&accounting: Fixup imports from the Documents migration to ZODB
parent
6ae9a037
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
15 deletions
+18
-15
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.RootAppliedRuleCausalityCausalityMovementGroup.py
...nt.erp5.RootAppliedRuleCausalityCausalityMovementGroup.py
+1
-1
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.SlapOSAccountingQuantityUpdatingOrderBuilder.py
...ment.erp5.SlapOSAccountingQuantityUpdatingOrderBuilder.py
+2
-2
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.SubscriptionItemRootSimulationRule.py
...nents/document.erp5.SubscriptionItemRootSimulationRule.py
+10
-7
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
.../portal_components/test.erp5.testSlapOSAccountingAlarm.py
+3
-3
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
...m/portal_components/test.erp5.testSlapOSAccountingRule.py
+1
-1
master/bt5/slapos_cloud/DocumentTemplateItem/portal_components/document.erp5.SoftwareInstance.py
...eItem/portal_components/document.erp5.SoftwareInstance.py
+1
-1
No files found.
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.RootAppliedRuleCausalityCausalityMovementGroup.py
View file @
39594073
...
...
@@ -25,7 +25,7 @@
#
##############################################################################
from
Products.ERP5.D
ocument.MovementGroup
import
MovementGroup
from
erp5.component.d
ocument.MovementGroup
import
MovementGroup
class
RootAppliedRuleCausalityCausalityMovementGroup
(
MovementGroup
):
"""
...
...
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.SlapOSAccountingQuantityUpdatingOrderBuilder.py
View file @
39594073
from
Products.ERP5.D
ocument.GeneratedDeliveryBuilder
import
GeneratedDeliveryBuilder
from
Products.ERP5.mixin.builder
import
BuilderMixin
from
erp5.component.d
ocument.GeneratedDeliveryBuilder
import
GeneratedDeliveryBuilder
from
erp5.component.mixin.BuilderMixin
import
BuilderMixin
class
SlapOSAccountingQuantityUpdatingOrderBuilder
(
GeneratedDeliveryBuilder
):
def
_setDeliveryMovementProperties
(
self
,
delivery_movement
,
...
...
master/bt5/slapos_accounting/DocumentTemplateItem/portal_components/document.erp5.SubscriptionItemRootSimulationRule.py
View file @
39594073
...
...
@@ -32,12 +32,15 @@ will replace DeliveryRule.
import
zope.interface
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
,
PropertySheet
,
interfaces
from
Products.ERP5Type
import
Permissions
,
PropertySheet
from
Products.ERP5Type.Core.Predicate
import
Predicate
from
Products.ERP5.mixin.rule
import
RuleMixin
from
Products.ERP5.mixin.movement_collection_updater
import
\
from
erp5.component.mixin.RuleMixin
import
RuleMixin
from
erp5.component.mixin.MovementCollectionUpdaterMixin
import
\
MovementCollectionUpdaterMixin
from
Products.ERP5.mixin.rule
import
MovementGeneratorMixin
from
erp5.component.mixin.MovementGeneratorMixin
import
MovementGeneratorMixin
from
erp5.component.interface.IRule
import
IRule
from
erp5.component.interface.IDivergenceController
import
IDivergenceController
from
erp5.component.interface.IMovementCollectionUpdater
import
IMovementCollectionUpdater
class
SubscriptionItemRootSimulationRule
(
RuleMixin
,
MovementCollectionUpdaterMixin
,
Predicate
):
"""
...
...
@@ -55,9 +58,9 @@ class SubscriptionItemRootSimulationRule(RuleMixin, MovementCollectionUpdaterMix
security
.
declareObjectProtected
(
Permissions
.
AccessContentsInformation
)
# Declarative interfaces
zope
.
interface
.
implements
(
interfaces
.
IRule
,
interfaces
.
IDivergenceController
,
interfaces
.
IMovementCollectionUpdater
,)
zope
.
interface
.
implements
(
IRule
,
IDivergenceController
,
IMovementCollectionUpdater
,)
# Default Properties
property_sheets
=
(
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
View file @
39594073
...
...
@@ -750,7 +750,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
ActiveObject
.
original_activate
=
ActiveObject
.
activate
ActiveObject
.
activate
=
Simulator
(
activate_simulator
,
'activate'
,
root_applied_rule
)
from
Products.ERP5.D
ocument.BusinessLink
import
BusinessLink
from
erp5.component.d
ocument.BusinessLink
import
BusinessLink
BusinessLink
.
original_build
=
BusinessLink
.
build
BusinessLink
.
build
=
Simulator
(
build_simulator
,
'build'
)
...
...
@@ -838,7 +838,7 @@ class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
ActiveObject
.
original_activate
=
ActiveObject
.
activate
ActiveObject
.
activate
=
Simulator
(
activate_simulator
,
'activate'
,
root_applied_rule
)
from
Products.ERP5.D
ocument.BusinessLink
import
BusinessLink
from
erp5.component.d
ocument.BusinessLink
import
BusinessLink
BusinessLink
.
original_build
=
BusinessLink
.
build
BusinessLink
.
build
=
Simulator
(
build_simulator
,
'build'
)
...
...
@@ -908,7 +908,7 @@ class TestSlapOSManageBuildingCalculatingDeliveryAlarm(SlapOSTestCaseMixin):
self
.
portal
.
portal_workflow
.
_jumpToStateFor
(
delivery
,
state
)
try
:
from
Products.ERP5.D
ocument.Delivery
import
Delivery
from
erp5.component.d
ocument.Delivery
import
Delivery
Delivery
.
original_updateCausalityState
=
Delivery
.
updateCausalityState
Delivery
.
original_updateSimulation
=
Delivery
.
updateSimulation
Delivery
.
updateCausalityState
=
Simulator
(
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
View file @
39594073
...
...
@@ -8,7 +8,7 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin, withAbo
from
DateTime
import
DateTime
from
Products.ERP5Type.DateUtils
import
addToDate
from
Products.ERP5.D
ocument.SimulationMovement
import
SimulationMovement
from
erp5.component.d
ocument.SimulationMovement
import
SimulationMovement
import
transaction
def
getSimulationStatePlanned
(
self
,
*
args
,
**
kwargs
):
...
...
master/bt5/slapos_cloud/DocumentTemplateItem/portal_components/document.erp5.SoftwareInstance.py
View file @
39594073
...
...
@@ -27,7 +27,7 @@
##############################################################################
from
AccessControl
import
ClassSecurityInfo
from
Products.ERP5Type
import
Permissions
from
Products.ERP5.D
ocument.Item
import
Item
from
erp5.component.d
ocument.Item
import
Item
from
lxml
import
etree
import
collections
...
...
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