kulpa / google-api-python-client

Automatically exported from code.google.com/p/google-api-python-client
Other
0 stars 0 forks source link

Need to handle defaults that are supplied as strings #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Exception:
TypeError: %d format: a number is required, not str

Traceback:
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/discovery.py", line 705, in methodResource
    methodDesc, futureDesc, schema)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/discovery.py", line 694, in createResource
    createMethod(Resource, methodName, methodDesc, future)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/discovery.py", line 595, in createMethod
    docs.append(schema.prettyPrintSchema(methodDesc['response']))
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 152, in prettyPrintSchema
    return self._prettyPrintSchema(schema, dent=1)[:-2]
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 139, in _prettyPrintSchema
    return _SchemaToStruct(schema, seen, dent).to_str(self._prettyPrintByName)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 303, in to_str
    return self._to_str_impl(self.schema)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 255, in _to_str_impl
    s = self.from_cache(schemaName, self.seen)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 105, in _prettyPrintByName
    seen, dent).to_str(self._prettyPrintByName)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 303, in to_str
    return self._to_str_impl(self.schema)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 249, in _to_str_impl
    self._to_str_impl(pschema)
  File "/usr/local/lib/python2.6/dist-packages/google_api_python_client-1.0beta7-py2.6.egg/apiclient/schema.py", line 268, in _to_str_impl
    self.emitEnd('%d,' % value, schema.get('description', ''))
TypeError: %d format: a number is required, not str

Original issue reported on code.google.com by dar...@google.com on 10 Jan 2012 at 9:01

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 7e8efcb89fcf.

Original comment by jcgregorio@google.com on 11 Jan 2012 at 4:25