Fix broken element ids for modules with .s in their names

This commit is contained in:
Calen Pennington
2012-06-29 22:42:33 -04:00
parent 79987666df
commit 9c715b60a6

View File

@@ -119,7 +119,7 @@ class Location(_LocationBase):
"""
Return a string with a version of the location that is safe for use in html id attributes
"""
return "-".join(str(v) for v in self if v is not None)
return "-".join(str(v) for v in self.list() if v is not None).replace('.', '_')
def dict(self):
return self.__dict__