summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/edit/user.py
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-02-26 20:59:26 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2011-02-26 20:59:26 +0000
commit0ee21c5d9657a1259a731722f53666ad135279bb (patch)
tree2ed904c78a8c0bf289bf5d98577e8c9a01f42b69 /sca-cpp/trunk/modules/edit/user.py
parent78b8dee58146d06b12b6aa7ecfa63dc024ebf099 (diff)
Some improvements to the edit module. Add a few sample apps and test cases, show current user and links to app data.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1074923 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/edit/user.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/edit/user.py b/sca-cpp/trunk/modules/edit/user.py
index 2eb65a8ea4..227722ac48 100644
--- a/sca-cpp/trunk/modules/edit/user.py
+++ b/sca-cpp/trunk/modules/edit/user.py
@@ -23,5 +23,6 @@ def id(user, email, nick, full, first, last, realm):
return email.eval()
if nick.eval() != '?':
return nick.eval() + '@' + realm.eval()
- return user.eval() + '@' + realm.eval()
-
+ if user.eval() != '?':
+ return user.eval() + '@' + realm.eval()
+ return 'joe@localhost'