def get(self, _year, _month): logging.info('Running report for: ' + _year + '/' + _month) year = int(_year) month = int(_month) next_month = month + 1 this_month = datetime.date(year, month, 1) if (next_month == 13): next_month = 1 year = year + 1 next_month = datetime.date(year, next_month, 1) logging.info('this_month: ' + str(this_month)) logging.info('next_month: ' + str(next_month)) stories = db.GqlQuery("""SELECT * FROM Story WHERE date_accepted >= :this_month AND date_accepted < :next_month ORDER BY date_accepted ASC""", this_month=this_month, next_month=next_month).fetch(1000, 0) appengineutils.render_template(self.response, 'report.html', {'stories' : stories, 'period' : this_month.strftime("%B %Y")})
def get(self, story_id): story = Story.get_by_story_id(story_id) if story is None: logging.info('creating story ' + story_id) story = Story(story_id=story_id, user = users.get_current_user(), name=story_id) story.put() story_lines = story.story_lines() java_days = story.actual_java_days() cs_days = story.actual_cs_days() appengineutils.render_template(self.response, 'story_history.html', {'story_lines': story_lines, 'dates': last_five_days(), 'java_days': java_days, 'cs_days': cs_days, 'story': story})
def get(self): project = Project.get() appengineutils.render_template(self.response, 'project.html', {'project' : project})
def get(self): stories = db.GqlQuery("SELECT * FROM Story ORDER BY last_updated DESC").fetch(50, 0) appengineutils.render_template(self.response, 'report.html', {'stories' : stories, 'period' : 'Latest updates'})
def get(self, story_id): story = Story.get_by_story_id(story_id) appengineutils.render_template(self.response, 'story.html', {"story" : story, "estimate_options": range(0, 11)})