SiteCore doesn't allow for periods in page names
authorW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 03:18:06 +0000 (23:18 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 1 Jul 2010 03:18:06 +0000 (23:18 -0400)
sitecore/prof/import.py

index 95e07abb0c7a62a2cce1032ca381f7673e161c59..023a45dee4b4015d1978bc5d19d2e08a876e8c53 100644 (file)
@@ -73,7 +73,8 @@ class ProfessorAdder (object):
         self.s.expand_nav_section('facultyDirectory')
 
     def __call__(self, prof):
-        name = '%s %s' % (prof.name.first_middle, prof.name.last)
+        name = ('%s %s' % (prof.name.first_middle, prof.name.last)).replace(
+            '.', '')
         self.create_prof_page(name)
         self.lock_section(name)
         settings = [