code: def Title(self):
          
          titlefield = self.Schema().getField('title')
          if titlefield.widget.visible:
              return safe_unicode(self.title).encode('utf-8')
          else:
              return safe_unicode(self.id).encode('utf-8')
docs: Return the Batch ID if title is not defined