diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2013-01-09 09:53:55 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2013-01-15 14:49:50 +0100 |
commit | 4fc0a289947c5e0ba68f612bc933f25b497f9fca (patch) | |
tree | 4b506e611056c535ffa7aa1a04f9d9d35793498a /mediagoblin/submit/lib.py | |
parent | 947c08ae43914184116995b2d51f11778497a2be (diff) | |
download | mediagoblin-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