- INSTRUCTION = [u"Przeciągnij odpowiedzi i upuść w wybranym polu.",
- u"Kliknij numer odpowiedzi, przeciągnij i upuść w wybranym polu."]
-
- def get_instruction(self):
- print self.options['handles']
- if not self.instruction_printed:
- self.instruction_printed = True
- return u'<span class="instruction">%s</span>' % self.INSTRUCTION[self.options['handles'] and 1 or 0]
- else:
- return ""
-
- def handle_cwiczenie(self, element):
- pre, post = super(Przyporzadkuj, self).handle_cwiczenie(element)
- lista_with_handles = element.xpath(".//*[@uchwyty]")
- if lista_with_handles:
- self.options = {'handles': True}
- return pre, post
-