Last change
on this file since 1331 was
1328,
checked in by joachim, 18 years ago
|
should update all entry_modes from the application_object.
|
-
Property svn:keywords set to
Id
|
File size:
466 bytes
|
Line | |
---|
1 | ## Script (Python) "reindex_entry_mode" |
---|
2 | ##bind container=container |
---|
3 | ##bind context=context |
---|
4 | ##bind namespace= |
---|
5 | ##bind script=script |
---|
6 | ##bind subpath=traverse_subpath |
---|
7 | ##parameters= |
---|
8 | ##title= |
---|
9 | ## |
---|
10 | # $Id: reindex_entry_mode.py 1328 2007-01-19 18:16:32Z joachim $ |
---|
11 | """ |
---|
12 | reindex students_catalog entry_mode index |
---|
13 | """ |
---|
14 | cat = context.students_catalog |
---|
15 | |
---|
16 | sbrains = cat() |
---|
17 | from Products.zdb import set_trace;set_trace() |
---|
18 | for sb in sbrains: |
---|
19 | cat.modifyRecord(id = sb.id, |
---|
20 | entry_mode = context.getFromData_entry_mode(sb.id)) |
---|
21 | |
---|
22 | |
---|
Note: See
TracBrowser for help on using the repository browser.