git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fibre portal modifications by José
[myslice.git]
/
portal
/
homeview.py
diff --git
a/portal/homeview.py
b/portal/homeview.py
index
ec6012c
..
3fc0cd8
100644
(file)
--- a/
portal/homeview.py
+++ b/
portal/homeview.py
@@
-125,13
+125,17
@@
class HomeView (FreeAccessView, ThemeView):
print "DEBUG: user NOT exists on MySlice DBs"
cn = result_set[0][0][1]['cn'][0]
print "DEBUG: user NOT exists on MySlice DBs"
cn = result_set[0][0][1]['cn'][0]
- print cn
sn = result_set[0][0][1]['sn'][0]
sn = result_set[0][0][1]['sn'][0]
- print sn
- fname = sn.split(' ')[0]
- lname = sn.split(' ')[1]
- print fname
- print lname
+
+ fname=None
+ lname=None
+
+ try:
+ fname = sn.split(' ')[0]
+ lname = sn.split(' ')[1]
+ except:
+ fname = sn
+ lname = ""
#authority_hrn = 'fibre' + '.' + username.split('@')[1]
authority_hrn = 'fibre'
#authority_hrn = 'fibre' + '.' + username.split('@')[1]
authority_hrn = 'fibre'