Permalink
Browse files

disply list of column names.

  • Loading branch information...
1 parent ca161b7 commit 66eea2d5188a22dc495110e5c2ba94d8389e2715 @happygiraffe committed Apr 17, 2011
Showing with 7 additions and 2 deletions.
  1. +7 −2 logss.py
View
@@ -47,8 +47,13 @@ def main(argv):
# TODO: print column names if no args given.
# TODO: auto-detect column names, and apply to args in order.
- args = dict(x.split('=', 1) for x in argv[2:])
- client.InsertRow(args, key)
+ if len(argv) > 3:
+ args = dict(x.split('=', 1) for x in argv[2:])
+ client.InsertRow(args, key)
+ else:
+ list_feed = client.GetListFeed(key)
+ for col in sorted(list_feed.entry[0].custom.keys()):
+ print col
return 0

0 comments on commit 66eea2d

Please sign in to comment.