code: def _getState(self, name, default=None):
          "private wrapper around C{self.db.state.getState}"
          d = self.getObjectId()
  
          @d.addCallback
          def get(objectid):
              return self.db.state.getState(objectid, name, default)
          return f _getState(self, name, default=None):
          "private wrapper around C{self.db.state.getState}"
          d = self.getObjectId()
  
          @d.addCallback
          def get(objectid):
              return self.db.state.getState(objectid, name, default)
          return d
docs: private wrapper around C{self.db.state.getState}