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
Léo-Paul Géneau
slapos.core
Commits
e3f547f2
Commit
e3f547f2
authored
May 31, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup date passing.
parent
fa695e83
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Alarm_updatePersonOpenOrder.xml
...m/portal_skins/vifib_slap/Alarm_updatePersonOpenOrder.xml
+2
-2
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
.../portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
+2
-2
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 @
e3f547f2
...
...
@@ -56,12 +56,12 @@ kw = {}\n
search_kw = {}\n
from DateTime import DateTime\n
from Products.ZSQLCatalog.SQLCatalog import Query\n
from Products.ERP5Type.DateUtils import
getClosestDate,
addToDate\n
from Products.ERP5Type.DateUtils import addToDate\n
\n
last_active_process = context.getLastActiveProcess()\n
if last_active_process is not None and not(params.get(\'full\', False)):\n
# fetch only objects modified since last alarm run\n
kw[\'modification_date\'] =
Query(modification_date=last_active_process.getStartDate(), range="min"
)\n
kw[\'modification_date\'] =
last_active_process.getStartDate(
)\n
search_kw[\'modification_date\'] = Query(modification_date=addToDate(last_active_process.getStartDate(), to_add={\'hour\': -1}), range="min")\n
# register active process in order to have "windows" of last indexed objects\n
context.newActiveProcess()\n
...
...
master/bt5/vifib_slap/SkinTemplateItem/portal_skins/vifib_slap/Person_storeOpenOrderJournal.xml
View file @
e3f547f2
...
...
@@ -51,12 +51,12 @@
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
from Products.ZSQLCatalog.SQLCatalog import Query\n
from Products.ERP5Type.DateUtils import addToDate\n
portal = context.getPortalObject()\n
\n
kw = {}\n
if modification_date is not None:\n
kw[\'modification_date\'] = Query(modification_date=modification_date, range="min")\n
\n
kw[\'modification_date\'] = Query(modification_date=addToDate(modification_date, to_add={\'hour\': -1}), range="min")\n
remove_hosting_list = []\n
add_kw_list = []\n
start_date_tuple_list = []\n
...
...
master/bt5/vifib_slap/bt/revision
View file @
e3f547f2
756
\ No newline at end of file
757
\ 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