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
29f4194b
Commit
29f4194b
authored
Mar 12, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add exactly one month.
parent
fc9dfc05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Alarm_updatePersonOpenOrder.xml
...m/portal_skins/vifib_slap/Alarm_updatePersonOpenOrder.xml
+3
-3
master/bt5/vifib_slap/bt/revision
master/bt5/vifib_slap/bt/revision
+1
-1
No files found.
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Alarm_updatePersonOpenOrder.xml
View file @
29f4194b
...
@@ -57,7 +57,7 @@ if params is None:\n
...
@@ -57,7 +57,7 @@ if params is None:\n
kw = {}\n
kw = {}\n
\n
\n
from DateTime import DateTime\n
from DateTime import DateTime\n
from Products.ERP5Type.DateUtils import get
ClosestDate, addToDate
\n
from Products.ERP5Type.DateUtils import get
NumberOfDayInMonth
\n
\n
\n
last_active_process = context.getLastActiveProcess()\n
last_active_process = context.getLastActiveProcess()\n
if last_active_process is not None and params.get(\'full\', False):\n
if last_active_process is not None and params.get(\'full\', False):\n
...
@@ -67,8 +67,8 @@ if last_active_process is not None and params.get(\'full\', False):\n
...
@@ -67,8 +67,8 @@ if last_active_process is not None and params.get(\'full\', False):\n
# register active process in order to have "windows" of last indexed objects\n
# register active process in order to have "windows" of last indexed objects\n
context.newActiveProcess()\n
context.newActiveProcess()\n
\n
\n
\n
now = DateTime()
\n
params.setdefault(\'stop_date\',
addToDate(getClosestDate(target_date=DateTime(), precision=\'month\', before=1), month=1
))\n
params.setdefault(\'stop_date\',
now + getNumberOfDayInMonth(now
))\n
\n
\n
context.getPortalObject().portal_catalog.searchAndActivate(\n
context.getPortalObject().portal_catalog.searchAndActivate(\n
method_id=\'Person_storeOpenOrderJournal\',\n
method_id=\'Person_storeOpenOrderJournal\',\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
29f4194b
632
633
\ No newline at end of file
\ No newline at end of file
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