projects
/
Plinn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Du xml valide, c'est mieux :-D
[Plinn.git]
/
skins
/
control
/
setAndGetSessionVar.py
1
##parameters=key, value, allowFalse = 1
2
sd
=
context
.
session_data_manager
.
getSessionData
(
create
=
1
)
3
if
allowFalse
:
4
sd
[
key
] =
value
5
return
value
6
else
:
7
if
value
:
8
sd
[
key
] =
value
9
return
sd
.
get
(
key
,
None
)