def assignment(self, obj): try: a = obj.assignment l = h.link(obj.assignment.name, obj.assignment.url) if not a.is_active: l = literal('<i title="Assignment not active">') + l + literal('</i>') return l except AttributeError: log.warn('Submission %r has no assignment', obj) return u'<span class="label label-inverse">None</a>'
def link(self): '''Link for this Sheet''' return link(self.name, self.url)
def link(self): '''Link for this Assignment''' return link(self.name, self.url)
def link(self): return link('Submission %d' % self.id, self.url)
def link(self): '''Link for this lesson''' return link(self.name, self.url)
def link(self): '''Link for this event''' return link(self.name, self.url)