position1 == Null if it's not set
authorW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 21:42:24 +0000 (17:42 -0400)
committerW. Trevor King <wking@drexel.edu>
Sat, 26 Jun 2010 21:42:24 +0000 (17:42 -0400)
sitecore/prof/export_mysql.py

index 3c1187745decc54364a803470023fb7ae487f4de..07721dd8c769a86a64ef811ff2e37798a19602e5 100644 (file)
@@ -162,7 +162,7 @@ Where the relevant categories are
                 last=prof['lastname'],
                 )
             p.title = prof['position']
-            if len(prof['position1']) > 0:
+            if prof['position1'] != None:
                 p.title += ', %s' % prof['position1']
             p.graduations = []
             print prof['degrees']