Changeset 84 for pykoticon/trunk/bin
- Timestamp:
- 01/24/05 18:55:25 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r83 r84 140 140 """Retrieve datas from the CGI script.""" 141 141 args = { "report" : 1, 142 "format" : " csv",142 "format" : "ssv", 143 143 } 144 144 args.update(arguments) … … 153 153 u.close() 154 154 try : 155 lines = [ line.strip().split(" ,") for line in lines ]155 lines = [ line.strip().split(";") for line in lines ] 156 156 fields = [field[1:-1] for field in lines[0]] 157 157 indices = [fields.index(fname) for fname in fieldnames] … … 166 166 def getPrinters(self) : 167 167 """Retrieve the printer's names.""" 168 arguments = { "report" : 1, 169 "format" : "csv", 170 "datatype" : "printers", 168 arguments = { "datatype" : "printers", 171 169 } 172 170 return self.retrieveDatas(arguments, ["printername", "priceperpage", \