document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     def __storm_pre_flush__(self):
  2.         self.status = self._determineStatus()
  3.  
  4.     def _determineStatus(self):
  5.         # one find() here
  6.         if self._hasActiveClasses():
  7.             return u"active"
  8.  
  9.         # and another one
  10.     if self.classes.count():
  11.         return u"previous"
  12.  
  13.         for suffix in ("listening", "language", "vocabulary", "speaking", "level"):
  14.             if getattr(self, "placement_%s" % suffix):
  15.                 return u"potential"
  16.  
  17.         return u"prospect"
');