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
def count_content_urls_between_dates(self, startDate, endDate, contentUrl, user): return action_model().count_content_urls_between_dates(startDate, endDate, contentUrl, user)
def count_content_urls(self, contentUrl, user): return action_model().count_content_urls(contentUrl, user)
def count_events_between_dates(self, startDate, endDate, event, url, user): return action_model().count_events_between_dates(startDate, endDate, event, url, user)
def count_events(self, event, url, user): return action_model().count_events(event, url, user)
def get_all_content_urls(self): return action_model().get_all_content_urls()
def get_all_sites(self): return action_model().get_all_sites()
def get_all_events(self): return action_model().get_all_events()