projects
/
sitecorepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12cfbd4
)
Allow degrees() == None in colleges()
master
author
W. Trevor King
<wking@drexel.edu>
Thu, 1 Jul 2010 05:14:41 +0000
(
01:14
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Thu, 1 Jul 2010 05:14:41 +0000
(
01:14
-0400)
sitecore/prof/__init__.py
patch
|
blob
|
history
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])