code: def orientation(self, value):
          '''setter of orientation property.'''
          for values in self.__orientation:
              if value in values:
                  # can not set upside-down until api level 18.
                  self.server.jsonrpc.setOrientation(values[1])
                  break
          else:
              raise ValueError("Invalid orientation."f orientation(self, value):
          '''setter of orientation property.'''
          for values in self.__orientation:
              if value in values:
                  # can not set upside-down until api level 18.
                  self.server.jsonrpc.setOrientation(values[1])
                  break
          else:
              raise ValueError("Invalid orientation.")
docs: setter of orientation property.