from zope.interface import implements from Products.MetadataPortal.widgets import Default from Products.MetadataPortal.waramulib.interfaces import IWidget class Textarea(Default): """ textarea widget """ implements(IWidget) def view(self, f, id, cls, w, tid, lang=None): """ viewer """ r = u"" r += self._fieldLabel(cls, id, f.get('printable')) fval = self.context.get(f.get('name'), lang) r += fval r += '' return r def edit(self, f, id, cls, w, tid, lang=None): """ edit widget """ r = u"" r += self._fieldLabel(cls, id, f.get('printable')) r += '' r += '' return r