def fields_types(self, tname, qstring, itemtype):
<EOL>template_name = tname + itemtype<EOL>query_string = qstring.format(i=itemtype)<EOL>if self.templates.get(template_name) and not self._updated(<EOL>query_string, self.templates[template_name], template_name<EOL>):<EOL><INDENT>return self.templates[template_name]["<STR_LIT>"]<EOL><DEDENT>retrieved = self._retrieve_data(query_string)<EOL>return self._cache(retrieved, template_name)<EOL>
Retrieve item fields or creator types