Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/l/a/Lair-Drones-HEAD/lairdrone/api.py   Lair-Drones(Download)
    """
 
    valid_statuses = [lair_models.STATUS_GREY, lair_models.STATUS_BLUE,
                      lair_models.STATUS_GREEN, lair_models.STATUS_ORANGE,
                      lair_models.STATUS_RED]
                id = str(ObjectId())
                host['_id'] = id
                s = file_host.get('status', lair_models.STATUS_GREY)
                host['status'] = s if s in valid_statuses else lair_models.STATUS_GREY
 
                id = str(ObjectId())
                port['_id'] = id
                s = file_port.get('status', lair_models.STATUS_GREY)
                port['status'] = s if s in valid_statuses else lair_models.STATUS_GREY
                now = datetime.utcnow().isoformat()