Commit 6dd41dc4 authored by Ivan Tyagov's avatar Ivan Tyagov

Make sure order is always same.

parent bc6a703d
...@@ -20,6 +20,8 @@ data_stream_dict = {} ...@@ -20,6 +20,8 @@ data_stream_dict = {}
# XXX: state != draft # XXX: state != draft
catalog_kw = dict(portal_type = "Data Stream", catalog_kw = dict(portal_type = "Data Stream",
set_uid = data_set.getUid(), set_uid = data_set.getUid(),
#limit=[1000, 20], # XXX: add new script arguments start and offset to script and make ebulk use them!
sort_on=(("creation_date", "ascending",),),
validation_state = ['published', 'validated']) validation_state = ['published', 'validated'])
data_stream_brain_list = portal.portal_catalog(**catalog_kw) data_stream_brain_list = portal.portal_catalog(**catalog_kw)
context.log("Data Streams found=%s" %len(data_stream_brain_list)) context.log("Data Streams found=%s" %len(data_stream_brain_list))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment