aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/lib.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-09 09:53:55 +0100
committerSebastian Spaeth <Sebastian@SSpaeth.de>2013-01-15 14:49:50 +0100
commit4fc0a289947c5e0ba68f612bc933f25b497f9fca (patch)
tree4b506e611056c535ffa7aa1a04f9d9d35793498a /mediagoblin/submit/lib.py
parent947c08ae43914184116995b2d51f11778497a2be (diff)
downloadmediagoblin-4fc0a289947c5e0ba68f612bc933f25b497f9fca.tar.lz
mediagoblin-4fc0a289947c5e0ba68f612bc933f25b497f9fca.tar.xz
mediagoblin-4fc0a289947c5e0ba68f612bc933f25b497f9fca.zip
More explicit get_or_create pattern
Don't do "user = getUser() or newUser()" in one line. It is bound to confuse poor souls. Be more explicit here and even add a code comment. Thanks to Elrond for not liking the previous pattern. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Diffstat (limited to 'mediagoblin/submit/lib.py')
0 files changed, 0 insertions, 0 deletions