def _resp_status_property():
 def getter(self):
  return ('%s %s' % (self.status_int, self.title))
 def setter(self, value):
  if isinstance(value, (int, long)):
   self.status_int = value
   self.explanation = self.title = RESPONSE_REASONS[value][0]
  else:
   if isinstance(value, unicode):
    value = value.encode('utf-8')
   self.status_int = int(value.split(' ', 1)[0])
   self.explanation = self.title = value.split(' ', 1)[1]
 return property(getter, setter, doc="Retrieve and set the Response status, e.g. '200 OK'")

def _resp_status_property ( ) : def getter ( self ) : return ( '%s %s' % ( self . status_int , self . title ) ) def setter ( self , value ) : if isinstance ( value , ( int , long ) ) : self . status_int = value self . explanation = self . title = RESPONSE_REASONS [ value ] [ 0 ] else : if isinstance ( value , unicode ) : value = value . encode ( 'utf-8' ) self . status_int = int ( value . split ( ' ' , 1 ) [ 0 ] ) self . explanation = self . title = value . split ( ' ' , 1 ) [ 1 ] return property ( getter , setter , doc = "Retrieve and set the Response status, e.g. '200 OK'" )
set and retrieve the value of response .