pyca/db.py
def serialize(self):
        '''Serialize this object as dictionary usable for conversion to JSON.

        :return: Dictionary representing this object.
        '''
        return {
            'type': 'event',
            'id': self.uid,
            'attributes': {
                'start': self.start,
                'end': self.end,
                'uid': self.uid,
                'title': self.title,
                'data': self.get_data(),
                'status': Status.str(self.status)
                }
            }
def serialize(self):
        '''Serialize this object as dictionary usable for conversion to JSON.

        :return: Dictionary representing this object.
        '''
        return {
            'type': 'event',
            'id': self.uid,
            'attributes': {
                'start': self.start,
                'end': self.end,
                'uid': self.uid,
                'title': self.title,
                'data': self.get_data(),
                'status': Status.str(self.status)
                }
            }
def serialize ( self ) : return { 'type' : 'event' , 'id' : self . uid , 'attributes' : { 'start' : self . start , 'end' : self . end , 'uid' : self . uid , 'title' : self . title , 'data' : self . get_data ( ) , 'status' : Status . str ( self . status ) } }
Serialize this object as dictionary usable for conversion to JSON.

        :return: Dictionary representing this object.
Serialize this object as dictionary usable for conversion to JSON .