projects
/
Plinn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Suppression de la création automatique de la page d'accueil pour les membres. (inuti...
[Plinn.git]
/
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