def slide_importer_cnxml(self, now_string, username):
     config = load_config(self.request)
     filepath = config['slide_importer_cnxml_file'] 
     with open(filepath, 'rb') as cnxmlfile:
         content = cnxmlfile.read()
     return content % (now_string,
                       username,
                       username,
                       username,
                       username)
 def empty_cnxml(self):
     config = load_config(self.request)
     filepath = config['blank_cnxml_file'] 
     with open(filepath, 'rb') as cnxmlfile:
         content = cnxmlfile.read()
     return content