comparison MPIWGTemplate.py @ 68:2ad8aa9d306c

bugs in MPIWGTemplate fixed
author dwinter
date Thu, 02 May 2013 15:40:27 +0200
parents bca61e893fcc
children 1f0db83b61c5
comparison
equal deleted inserted replaced
59:d452fff7c52e 68:2ad8aa9d306c
97 97
98 98
99 99
100 def manage_addMPIWGTemplate(self, MPIWGType,id, text="",title=None,weight=0,REQUEST=None): 100 def manage_addMPIWGTemplate(self, MPIWGType,id, text="",title=None,weight=0,REQUEST=None):
101 "Add a Page Template with optional file content." 101 "Add a Page Template with optional file content."
102 if type(MPIWGType)==StringType: 102 if isinstance(MPIWGType, str):
103 MPIWGTypes=[MPIWGType] 103 MPIWGTypes=[MPIWGType]
104 else: 104 else:
105 MPIWGTypes=MPIWGType 105 MPIWGTypes=MPIWGType
106 106
107 for singleType in MPIWGTypes: 107 for singleType in MPIWGTypes: