I would like to know if there is a way to preserve BlueTooth connection details in a mod_python session variable (under MWS).
I have tried
address, services = socket.bt_discover()
session['target'] = (address, services.values())
but at second reload of page the session['target'] does not exist. Session is working with other variables - I have tested it with simple strings. For example str(target) is also preserved , but becomes unusable for socket connection.
Any hint would be greatly appreciated - python was not my first choice for programming, but I see many advantages in using it.
all the best,