(obj)
Generate a UID if one does not exist.

        This is just a dummy implementation, for now.
Generate a UID if one does not exist.
Generate a UID if one does not exist .
def generateImplicitParameters(obj):
        """
        Generate a UID if one does not exist.

        This is just a dummy implementation, for now.
        """
        if not hasattr(obj, 'uid'):
            rand = int(random.random() * 100000)
            now = datetime.datetime.now(utc)
            now = dateTimeToString(now)
            host = socket.gethostname()
            obj.add(ContentLine('UID', [], "{0} - {1}@{2}".format(now, rand,
                                                                  host)))
def generateImplicitParameters ( obj ) : if not hasattr ( obj , 'uid' ) : rand = int ( random . random ( ) * 100000 ) now = datetime . datetime . now ( utc ) now = dateTimeToString ( now ) host = socket . gethostname ( ) obj . add ( ContentLine ( 'UID' , [ ] , "{0} - {1}@{2}" . format ( now , rand , host ) ) )