예제 #1
0
    def add(self, student, site, event, content, information):

        student = student_model().get_user(student)
        student_record = student_records_model()
        student_record.user = student.key()
        student_record.recorded = time.time()
        action = action_model()
        action.user = student.key()
        action.site_url = site
        action.event = event
        action.content_url = content
        action.information = information
        action.type = 'Video'
        action.recorded = time.time()
        action.recorded = time.time()
        action_key = action.put()
        
        student_record.action = action_key
        student_record.put()
        return True
예제 #2
0
 def count_content_urls_between_dates(self, startDate, endDate, contentUrl, user):
     return action_model().count_content_urls_between_dates(startDate, endDate, contentUrl, user)
예제 #3
0
 def count_content_urls(self, contentUrl, user):
     return action_model().count_content_urls(contentUrl, user)
예제 #4
0
 def count_events_between_dates(self, startDate, endDate, event, url, user):
     return action_model().count_events_between_dates(startDate, endDate, event, url, user)
예제 #5
0
 def count_events(self, event, url, user):
     return action_model().count_events(event, url, user)
예제 #6
0
 def get_all_content_urls(self):
     return action_model().get_all_content_urls()
예제 #7
0
 def get_all_sites(self):
     return action_model().get_all_sites()
예제 #8
0
 def get_all_events(self):
     return action_model().get_all_events()