Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / control / getOrSetSessionVar.py
1 ##parameters=key, value=None, default=None
2 sd = context.session_data_manager.getSessionData(create = 1)
3 if value is None :
4 sVar = sd.get(key, None)
5 if sVar is None and default is not None :
6 sVar = default
7 else :
8 sVar = value
9
10 sd[key] = sVar
11 return sVar