Mercurial > hg > MPIWGWeb
diff MPIWGTemplate.py @ 68:2ad8aa9d306c
bugs in MPIWGTemplate fixed
author | dwinter |
---|---|
date | Thu, 02 May 2013 15:40:27 +0200 |
parents | bca61e893fcc |
children | 1f0db83b61c5 |
line wrap: on
line diff
--- a/MPIWGTemplate.py Thu May 02 10:14:52 2013 +0200 +++ b/MPIWGTemplate.py Thu May 02 15:40:27 2013 +0200 @@ -99,7 +99,7 @@ def manage_addMPIWGTemplate(self, MPIWGType,id, text="",title=None,weight=0,REQUEST=None): "Add a Page Template with optional file content." - if type(MPIWGType)==StringType: + if isinstance(MPIWGType, str): MPIWGTypes=[MPIWGType] else: MPIWGTypes=MPIWGType