projects
/
sitecorepy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow degrees() == None in colleges()
[sitecorepy.git]
/
sitecore
/
prof
/
__init__.py
diff --git
a/sitecore/prof/__init__.py
b/sitecore/prof/__init__.py
index 5226181c8f0e5fa6e9a1a561cc55eab6fc614c33..68e649920ad49146ad82ecd3e4066976cf1d96b7 100644
(file)
--- a/
sitecore/prof/__init__.py
+++ b/
sitecore/prof/__init__.py
@@
-150,7
+150,10
@@
class Professor (AttributeHolder):
return '|'.join(degrees)
def colleges(self):
- titles = self.degrees().split('|')
+ d = self.degrees()
+ if d == None:
+ return None
+ titles = d.split('|')
return '|'.join([g.college for g in self.graduations
if g.title in titles])