Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import math
from repgen.data.value import Value
from repgen.report import Report
version = "5.0.0"
version = "5.0.1"
# setup base time, ex
# default formats
def parseArgs():
Expand Down Expand Up @@ -63,8 +63,8 @@ def parseArgs():
report.fill_report(output)

if config.out_file != "-":
shutil.move(tmpname,config.out_file)
output.close()
shutil.move(tmpname,config.out_file)


# read the report file
Expand Down
5 changes: 3 additions & 2 deletions repgen/data/value.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytz,datetime,sys
import operator
from inspect import isfunction
# types
string_types = ("".__class__,u"".__class__)
Expand Down Expand Up @@ -87,14 +88,14 @@ def __init__( self, *args, **kwargs ):
except:
print >>sys.stderr, "To run this program you either need to update to a newer python, or install the simplejson module."

import httplib, urllib
import http.client as httplib, urllib.parse as urllib

fmt = "%d-%b-%Y %H%M"
tz = self.tz
units= self.dbunits
ts_name = ".".join( (self.dbloc, self.dbpar, self.dbptyp, self.dbint, self.dbdur, self.dbver) )

print >> sys.stderr, "Getting %s from %s to %s in tz %s, with units %s" % (ts_name,self.start.strftime(fmt),self.end.strftime(fmt),str(tz),units)
sys.stderr.write("Getting %s from %s to %s in tz %s, with units %s\n" % (ts_name,self.start.strftime(fmt),self.end.strftime(fmt),str(tz),units))
query = "/fcgi-bin/get_ts.py?"
params = urllib.urlencode( {
"site": ts_name,
Expand Down
Binary file removed repgen_5
Binary file not shown.