Beispiel #1
0
 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>'
Beispiel #2
0
 def link(self):
     '''Link for this Sheet'''
     return link(self.name, self.url)
Beispiel #3
0
 def link(self):
     '''Link for this Assignment'''
     return link(self.name, self.url)
Beispiel #4
0
 def link(self):
     return link('Submission %d' % self.id, self.url)
Beispiel #5
0
 def link(self):
     '''Link for this lesson'''
     return link(self.name, self.url)
Beispiel #6
0
 def link(self):
     '''Link for this event'''
     return link(self.name, self.url)
Beispiel #7
0
 def link(self):
     '''Link for this Sheet'''
     return link(self.name, self.url)
Beispiel #8
0
 def link(self):
     '''Link for this Assignment'''
     return link(self.name, self.url)
Beispiel #9
0
 def link(self):
     '''Link for this lesson'''
     return link(self.name, self.url)
Beispiel #10
0
 def link(self):
     '''Link for this event'''
     return link(self.name, self.url)