Fix problem with runsamples erroring on logging. Add in missing api-python-client-doc file.

This commit is contained in:
Joe Gregorio
2011-04-05 10:53:49 -04:00
parent c968a57d73
commit 1ef83e1cd9
2 changed files with 13 additions and 2 deletions

View File

@@ -41,10 +41,10 @@ def main(argv):
logging.getLogger().setLevel(getattr(logging, FLAGS.logging_level))
for dirname in os.listdir(FLAGS.sample_root):
fulldirname = os.path.join(FLAGS.sample_root, dirname)
if dirname in FLAGS.samples_to_skip:
logging.debug('Skipping ' + fulldirname + ' (blacklist)')
continue
fulldirname = os.path.join(FLAGS.sample_root, dirname)
filelist = os.listdir(fulldirname)
if 'settings.py' in filelist and 'manage.py' in filelist:
logging.info(fulldirname + ' [Django]')
@@ -99,4 +99,3 @@ def main(argv):
if __name__ == '__main__':
main(sys.argv)

View File

@@ -0,0 +1,12 @@
<!DOCTYPE HTML>
<html>
<head>
<title> Google API Client for Python Documentation </title>
</head>
<body>
<h1> Google API Client for Python Documentation </h1>
{% for item in directory %}
<p><a href="/{{ item.name }}/{{ item.version }}"><img src="{{ item.icons.x32 }}"/> {{ item.description }} </a></p>
{% endfor %}
</body>
</html>