So this was indeed a bug.

revision (1211)
Author: Siegfried-Angel Gevatter Pujals <>
Date: Mon 2009-12-07 12:07:27 +0100
Branch: zeitgeist-trunk
Bugs: fixed

    Fix bug in find_eventids where using more than one event
    template resulted in all but the first one ignoring the
    timestamp restriction.
    Also update the test case we created for bug #490110 to
    catch this problem now that we really know what it is.

** Changed in: zeitgeist
       Status: Invalid => Fix Released

** Changed in: zeitgeist
    Milestone: 0.3.0 => 0.3.1

bug in
You received this bug notification because you are a member of Zeitgeist
Framework, which is the registrant for Zeitgeist Framework.

Status in Zeitgeist Framework: Fix Released

Bug description:
Fiddling with the i found this error 

i will write down the code first so u might understand where the problem is
def insert_events(self):
        event = Event()
        event2 = Event()

        self.zg.find_event_ids_for_templates([event], self.handle_events1, 
[self.time*1000, (self.time+86399)*1000], num_events=50000)

#HERE I GET 9 items

        self.zg.find_event_ids_for_templates([event2], self.handle_events2, 
[self.time*1000, (self.time+86399)*1000], num_events=50000) 

#HERE I GET 13 items

        self.zg.find_event_ids_for_templates([event, event2], 
self.handle_events, [self.time*1000, (self.time+86399)*1000], num_events=50000)


    def handle_events1(self, x):
        print len(x)
    def handle_events2(self, x):
        print len(x)
    def handle_events(self, x=None):
        print "*************", len(x)

here the output again:
************* 126

AFAIK 9+13=22 and not 126!
somthing is wrong combining 2 event templates

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to