Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Paul Graydon
erp5
Commits
bd3da719
Commit
bd3da719
authored
Jan 26, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check objects only indexed since last alarm run.
parent
cb0da24f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.xml
...ns/erp5_administration/Alarm_activateCheckConsistency.xml
+13
-3
bt5/erp5_administration/bt/revision
bt5/erp5_administration/bt/revision
+1
-1
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.xml
View file @
bd3da719
...
...
@@ -50,12 +50,20 @@
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
active_process = context.newActiveProcess().getRelativeUrl()\n
<value>
<string
encoding=
"cdata"
>
<![CDATA[
kw = {}\n
\n
last_active_process = context.getLastActiveProcess()\n
\n
if last_active_process is not None:\n
kw[\'indexation_timestamp\'] = \'>
= %s\' % last_active_process.getStartDate().ISO()\n
\n
active_process = context.newActiveProcess().getRelativeUrl()\n
query_string = context.getProperty(\'catalog_query_string\', \'\')\n
# the query sould be something like "validation_state:!=deleted validation_state:!=draft portal_type:Organisation" etc\n
portal = context.getPortalObject()\n
\n
kw = {}\n
\n
if query_string is not None:\n
kw.update(SearchableText=query_string)\n
...
...
@@ -63,7 +71,9 @@ if query_string is not None:\n
kw.update(parent_uid=[portal.restrictedTraverse(module).getUid() for module in context.getProperty(\'module_list\') or []])\n
\n
portal.portal_catalog.searchAndActivate(method_id=\'Base_checkAlarmConsistency\', method_kw={\'fixit\': fixit, \'active_process\': active_process}, activate_kw={\'tag\':tag}, **kw)\n
</string>
</value>
]]>
</string>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
...
...
bt5/erp5_administration/bt/revision
View file @
bd3da719
141
\ No newline at end of file
142
\ 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