Пример #1
0
 def __create_or_update_session( self ):
   session_id = Session.build_session_id( self.user.record_id,
     self.topic.record_id )
   self.session = Session.create_or_update( session_id, user = self.user, topic = self.topic, condition = self.condition )
 def __create_or_update_session(self, user, topic, condition):
     session_id = Session.build_session_id(user.record_id, topic.record_id)
     return Session.create_or_update(session_id,
                                     user=user,
                                     topic=topic,
                                     condition=condition)