def __init__(self, name, docstring):
     """Create a term from the single value
     This class prevents the use of the silly bugged SimpleTerm.
     """
     self.value = name
     self.token = name
     self.title = _(name, default=docstring)
     directlyProvides(self, ITitledTokenizedTerm)
 def redirect(self, utils, oid):
     url = self.request['HTTP_REFERER']
     utils.addPortalMessage(_(u"Item's position has changed."))
     return self.request.RESPONSE.redirect("%s#%s-%s" % (url,
                                                         self.context.UID(),
                                                         oid))