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
Thomas Leymonerie
slapos.core
Commits
56c530c3
Commit
56c530c3
authored
Jul 07, 2020
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bt5: Fixup import of DateUtils
parent
60eca4b9
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
17 additions
and
17 deletions
+17
-17
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Alarm_startConfirmedAggregatedSalePackingList.py
...counting/Alarm_startConfirmedAggregatedSalePackingList.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_calculateSubscriptionStartDate.py
...ing/HostingSubscription_calculateSubscriptionStartDate.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_calculateSubscriptionStopDate.py
...ting/HostingSubscription_calculateSubscriptionStopDate.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Person_storeOpenSaleOrderJournal.py
...ins/slapos_accounting/Person_storeOpenSaleOrderJournal.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_consumption/Alarm_generateInvoiceResourceConsuptionDocument.py
...mption/Alarm_generateInvoiceResourceConsuptionDocument.py
+1
-1
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_consumption/Base_getUserConsumptionDetailList.py
...s/slapos_consumption/Base_getUserConsumptionDetailList.py
+1
-1
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
.../portal_components/test.erp5.testSlapOSAccountingAlarm.py
+1
-1
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
...m/portal_components/test.erp5.testSlapOSAccountingRule.py
+1
-1
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/scripts/HostingSubscription_fixPeriodicity.py
...on_workflow/scripts/HostingSubscription_fixPeriodicity.py
+1
-1
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_tryToGarbageUnlinkedInstance.py
...os_cloud/SoftwareInstance_tryToGarbageUnlinkedInstance.py
+1
-1
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
...eItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
+1
-1
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkAndUpdatePersonalComputerAllocationScope.py
...ng/Alarm_checkAndUpdatePersonalComputerAllocationScope.py
+1
-1
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/HostingSubscription_checkSoftwareInstanceState.py
...itoring/HostingSubscription_checkSoftwareInstanceState.py
+1
-1
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_initiateActiveProcessCleanup.py
...apos_administration/Alarm_initiateActiveProcessCleanup.py
+1
-1
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenSkins.py
...Item/portal_components/test.erp5.testSlapOSPayzenSkins.py
+1
-1
master/bt5/slapos_wechat/TestTemplateItem/portal_components/test.erp5.testSlapOSWechatSkins.py
...Item/portal_components/test.erp5.testSlapOSWechatSkins.py
+1
-1
master/bt5/vifib_fiber/SkinTemplateItem/portal_skins/erp5_free_fiber_request/FreeFiberRequest_getFreeFiberequestDetailedEventList.xml
.../FreeFiberRequest_getFreeFiberequestDetailedEventList.xml
+1
-1
No files found.
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Alarm_startConfirmedAggregatedSalePackingList.py
View file @
56c530c3
...
@@ -2,7 +2,7 @@ if params is None:
...
@@ -2,7 +2,7 @@ if params is None:
params
=
{}
params
=
{}
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ZSQLCatalog.SQLCatalog
import
Query
def
getAccountingDate
(
accounting_date
):
def
getAccountingDate
(
accounting_date
):
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_calculateSubscriptionStartDate.py
View file @
56c530c3
...
@@ -2,7 +2,7 @@ from zExceptions import Unauthorized
...
@@ -2,7 +2,7 @@ from zExceptions import Unauthorized
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
raise
Unauthorized
raise
Unauthorized
from
Products.ERP5Typ
e.DateUtils
import
addToDate
,
getClosestDate
from
erp5.component.modul
e.DateUtils
import
addToDate
,
getClosestDate
hosting_subscription
=
context
hosting_subscription
=
context
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/HostingSubscription_calculateSubscriptionStopDate.py
View file @
56c530c3
...
@@ -2,7 +2,7 @@ from zExceptions import Unauthorized
...
@@ -2,7 +2,7 @@ from zExceptions import Unauthorized
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
raise
Unauthorized
raise
Unauthorized
from
Products.ERP5Typ
e.DateUtils
import
addToDate
,
getClosestDate
from
erp5.component.modul
e.DateUtils
import
addToDate
,
getClosestDate
hosting_subscription
=
context
hosting_subscription
=
context
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_accounting/Person_storeOpenSaleOrderJournal.py
View file @
56c530c3
from
Products.ERP5Typ
e.DateUtils
import
addToDate
,
getClosestDate
from
erp5.component.modul
e.DateUtils
import
addToDate
,
getClosestDate
from
DateTime
import
DateTime
from
DateTime
import
DateTime
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_consumption/Alarm_generateInvoiceResourceConsuptionDocument.py
View file @
56c530c3
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
...
master/bt5/slapos_accounting/SkinTemplateItem/portal_skins/slapos_consumption/Base_getUserConsumptionDetailList.py
View file @
56c530c3
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ZSQLCatalog.SQLCatalog
import
Query
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingAlarm.py
View file @
56c530c3
...
@@ -14,7 +14,7 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin, withAbo
...
@@ -14,7 +14,7 @@ from erp5.component.test.SlapOSTestCaseMixin import SlapOSTestCaseMixin, withAbo
import
os
import
os
import
tempfile
import
tempfile
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
,
getClosestDate
from
erp5.component.modul
e.DateUtils
import
addToDate
,
getClosestDate
from
zExceptions
import
Unauthorized
from
zExceptions
import
Unauthorized
class
Simulator
:
class
Simulator
:
...
...
master/bt5/slapos_accounting/TestTemplateItem/portal_components/test.erp5.testSlapOSAccountingRule.py
View file @
56c530c3
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
from
erp5.component.test.SlapOSTestCaseMixin
import
SlapOSTestCaseMixin
,
withAbort
from
erp5.component.test.SlapOSTestCaseMixin
import
SlapOSTestCaseMixin
,
withAbort
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
erp5.component.document.SimulationMovement
import
SimulationMovement
from
erp5.component.document.SimulationMovement
import
SimulationMovement
import
transaction
import
transaction
...
...
master/bt5/slapos_accounting/WorkflowTemplateItem/portal_workflow/slapos_accounting_interaction_workflow/scripts/HostingSubscription_fixPeriodicity.py
View file @
56c530c3
from
Products.ERP5Typ
e.DateUtils
import
addToDate
,
getClosestDate
from
erp5.component.modul
e.DateUtils
import
addToDate
,
getClosestDate
hosting_subscription
=
state_change
[
'object'
]
hosting_subscription
=
state_change
[
'object'
]
edit_kw
=
{}
edit_kw
=
{}
...
...
master/bt5/slapos_cloud/SkinTemplateItem/portal_skins/slapos_cloud/SoftwareInstance_tryToGarbageUnlinkedInstance.py
View file @
56c530c3
from
zExceptions
import
Unauthorized
from
zExceptions
import
Unauthorized
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
if
REQUEST
is
not
None
:
if
REQUEST
is
not
None
:
raise
Unauthorized
raise
Unauthorized
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.testSlapOSCloudAlarm.py
View file @
56c530c3
...
@@ -6,7 +6,7 @@ import json
...
@@ -6,7 +6,7 @@ import json
import
time
import
time
from
zExceptions
import
Unauthorized
from
zExceptions
import
Unauthorized
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
App.Common
import
rfc1123_date
from
App.Common
import
rfc1123_date
class
TestSlapOSCoreSlapOSAssertHostingSubscriptionPredecessorAlarm
(
class
TestSlapOSCoreSlapOSAssertHostingSubscriptionPredecessorAlarm
(
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Alarm_checkAndUpdatePersonalComputerAllocationScope.py
View file @
56c530c3
from
DateTime
import
DateTime
from
DateTime
import
DateTime
# from
Products.ERP5Typ
e.DateUtils import addToDate
# from
erp5.component.modul
e.DateUtils import addToDate
# from Products.ZSQLCatalog.SQLCatalog import Query
# from Products.ZSQLCatalog.SQLCatalog import Query
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/HostingSubscription_checkSoftwareInstanceState.py
View file @
56c530c3
from
DateTime
import
DateTime
from
DateTime
import
DateTime
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
hosting_subscription
=
context
hosting_subscription
=
context
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
...
...
master/bt5/slapos_erp5/SkinTemplateItem/portal_skins/slapos_administration/Alarm_initiateActiveProcessCleanup.py
View file @
56c530c3
from
Products.ERP5Typ
e.DateUtils
import
addToDate
from
erp5.component.modul
e.DateUtils
import
addToDate
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
Products.ZSQLCatalog.SQLCatalog
import
Query
from
DateTime
import
DateTime
from
DateTime
import
DateTime
...
...
master/bt5/slapos_payzen/TestTemplateItem/portal_components/test.erp5.testSlapOSPayzenSkins.py
View file @
56c530c3
...
@@ -452,7 +452,7 @@ class TestSlapOSPayzenEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
...
@@ -452,7 +452,7 @@ class TestSlapOSPayzenEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
script_name
,
script_name
,
'*args, **kwargs'
,
'*args, **kwargs'
,
'# Script body
\
n
'
'# Script body
\
n
'
"""from
Products.ERP5Typ
e.DateUtils import addToDate
"""from
erp5.component.modul
e.DateUtils import addToDate
return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'foo'"""
)
return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'foo'"""
)
def
_dropPaymentTransaction_getPayzenId
(
self
):
def
_dropPaymentTransaction_getPayzenId
(
self
):
...
...
master/bt5/slapos_wechat/TestTemplateItem/portal_components/test.erp5.testSlapOSWechatSkins.py
View file @
56c530c3
...
@@ -443,7 +443,7 @@ class TestSlapOSWechatEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
...
@@ -443,7 +443,7 @@ class TestSlapOSWechatEvent_processUpdate(SlapOSTestCaseMixinWithAbort):
script_name
,
script_name
,
'*args, **kwargs'
,
'*args, **kwargs'
,
'# Script body
\
n
'
'# Script body
\
n
'
"""from
Products.ERP5Typ
e.DateUtils import addToDate
"""from
erp5.component.modul
e.DateUtils import addToDate
return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'foo'"""
)
return addToDate(DateTime(), to_add={'day': -1, 'second': -1}).toZone('UTC'), 'foo'"""
)
def
_dropPaymentTransaction_getWechatId
(
self
):
def
_dropPaymentTransaction_getWechatId
(
self
):
...
...
master/bt5/vifib_fiber/SkinTemplateItem/portal_skins/erp5_free_fiber_request/FreeFiberRequest_getFreeFiberequestDetailedEventList.xml
View file @
56c530c3
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import Query\n
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import Query\n
from
Products.ERP5Typ
e.DateUtils import atTheEndOfPeriod\n
from
erp5.component.modul
e.DateUtils import atTheEndOfPeriod\n
request = container.REQUEST\n
request = container.REQUEST\n
portal = context.getPortalObject()\n
portal = context.getPortalObject()\n
from_date = request.get(\'from_date\', None)\n
from_date = request.get(\'from_date\', None)\n
...
...
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