code: def _setState(self, name, value):
          "private wrapper around C{self.db.state.setState}"
          d = self.getObjectId()
  
          @d.addCallback
          def set(objectid):
              return self.db.state.setState(objectid, name, value)
          return f _setState(self, name, value):
          "private wrapper around C{self.db.state.setState}"
          d = self.getObjectId()
  
          @d.addCallback
          def set(objectid):
              return self.db.state.setState(objectid, name, value)
          return d
docs: private wrapper around C{self.db.state.setState}