webthing/server.py
def get_thing(self, idx):
        """
        Get the thing at the given index.

        idx -- the index
        """
        try:
            idx = int(idx)
        except ValueError:
            return None

        if idx < 0 or idx >= len(self.things):
            return None

        return self.things[idx]
def get_thing(self, idx):
        try:
            idx = int(idx)
        except ValueError:
            return None

        if idx < 0 or idx >= len(self.things):
            return None

        return self.things[idx]
def get_thing ( self , idx ) : try : idx = int ( idx ) except ValueError : return None if idx < 0 or idx >= len ( self . things ) : return None return self . things [ idx ]
Get the thing at the given index.

        idx -- the index
Get the thing at the given index .