code: def renderItem(self, item):
          
          self.current_item = item
          templates_dir = "templates/stickers"
          embedt = self.getSelectedTemplate()
          if embedt.find(":") >= 0:
              prefix, embedt = embedt.split(":")
              templates_dir = self._getStickersTemplatesDirectory(prefix)
          elif self.filter_by_type:
              templates_dir = "/".join([templates_dir, self.filter_by_type])
          fullpath = os.path.join(templates_dir, embedt)
  
          try:
              embed = ViewPageTemplateFile(fullpath)
              return embed(self, item=item)
          except Exception:
              exc = traceback.format_exc()
              msg = "<div class='error'>{} - {} '{}':<pre>{}</pre></div>".format(
                  item.id, _("Failed to load sticker"), embedt, exc)
              return msg
docs: Renders the next available sticker.
  
          Uses the template specified in the request ('template' parameter) by
          default. If no template defined in the request, uses the default
          template set by default in Setup > Stickers.
  
          If the template specified doesn't exist, uses the default bika.lims'
          Code_128_1x48mm.pt template (was sticker_small.pt).