From: W. Trevor King Date: Sat, 26 Jun 2010 21:42:24 +0000 (-0400) Subject: position1 == Null if it's not set X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=472d7acad2fba007d01e13fb8faca76e522f8818;p=sitecorepy.git position1 == Null if it's not set --- diff --git a/sitecore/prof/export_mysql.py b/sitecore/prof/export_mysql.py index 3c11877..07721dd 100644 --- a/sitecore/prof/export_mysql.py +++ b/sitecore/prof/export_mysql.py @@ -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']