(self, rdb)
return eventsbycid
Returns a list of events from the events table for this user
Returns a list of events from the events table for this user
Returns a list of events from the events table for this user
def getEvents(self, rdb):
        ''' Returns a list of events from the events table for this user '''
        # Get Events
        results = r.table('events').filter({'uid': self.uid}).order_by(
            r.desc('time')).run(rdb)
        eventsbycid = {}
        for event in results:
            if event['cid'] in eventsbycid:
                eventsbycid[event['cid']].append(event)
            else:
                eventsbycid[event['cid']] = [ event ]
        return eventsbycid
def getEvents ( self , rdb ) : # Get Events results = r . table ( 'events' ) . filter ( { 'uid' : self . uid } ) . order_by ( r . desc ( 'time' ) ) . run ( rdb ) eventsbycid = { } for event in results : if event [ 'cid' ] in eventsbycid : eventsbycid [ event [ 'cid' ] ] . append ( event ) else : eventsbycid [ event [ 'cid' ] ] = [ event ] return eventsbycid