Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Extract InsertRow().

  • Loading branch information...
commit c6ed90d06e674ef699fc590164d5a6f00ed37045 1 parent f276448
@happygiraffe authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 logss.py
View
7 logss.py
@@ -65,16 +65,19 @@ def ColumnNamesHaveData(self, cols):
"""Are these just names, or do they have data (:)?"""
return len([c for c in cols if ':' in c]) > 0
+ def InsertRow(self, data):
+ self.client.InsertRow(data, self.key, wksht_id=self.wkey)
+
def InsertFromColumns(self, cols):
# Data is mixed into column names.
data = dict(c.split(':', 1) for c in cols)
- self.client.InsertRow(data, self.key, wksht_id=self.wkey)
+ self.InsertRow(data)
def InsertFromFileHandle(self, cols, fh):
for line in fh:
vals = line.rstrip().split()
data = dict(zip(cols, vals))
- self.client.InsertRow(data, self.key, wksht_id=self.wkey)
+ self.InsertRow(data)
def ListColumns(self):
list_feed = self.client.GetListFeed(self.key, wksht_id=self.wkey)
Please sign in to comment.
Something went wrong with that request. Please try again.