Changeset 1434
- Timestamp:
- 03/08/07 14:47:05 (6 years ago)
- Location:
- ccsd/trunk/crcnetd/modules
- Files:
-
- 2 edited
-
ccs_graph.py (modified) (2 diffs)
-
ccs_rrdbot.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ccsd/trunk/crcnetd/modules/ccs_graph.py
r1397 r1434 359 359 360 360 # Build SQL 361 props = ["title", "class_id", "virtical_label"] 361 props = ["title", "class_id", "virtical_label", "auto_comment", "rigid", "upper"] 362 363 nulls= [] 364 365 if "upper" in newDetails and newDetails["upper"] == '': 366 nulls.append("upper") 362 367 363 368 (sql, values) = buildUpdateFromDict("graph_type", props, newDetails, \ 364 "graph_id", graph_id )369 "graph_id", graph_id, False, nulls) 365 370 366 371 if values == None: … … 393 398 394 399 # Build query 395 props = ["title", "class_id", "group_id"] 396 (sql, values) = buildInsertFromDict("graph_type", props, clas) 400 props = ["title", "class_id", "group_id", "virtical_label", "auto_comment", "rigid", "upper"] 401 402 nulls= [] 403 404 if "upper" in clas and clas["upper"] == '': 405 nulls.append("upper") 406 (sql, values) = buildInsertFromDict("graph_type", props, clas, False, nulls) 397 407 398 408 # Run query -
ccsd/trunk/crcnetd/modules/ccs_rrdbot.py
r1397 r1434 203 203 # Build query 204 204 props = ["class_name", "poll", "interval", \ 205 "cf", "archive", "depends"] 206 (sql, values) = buildInsertFromDict("rrdbot_class", props, clas) 205 "cf", "archive", "depends", "upper_bound", "lower_bound"] 206 207 nulls= [] 208 209 if "lower_bound" in clas and clas["lower_bound"] == '': 210 nulls.append("lower_bound") 211 if "upper_bound" in clas and clas["upper_bound"] == '': 212 nulls.append("upper_bound") 213 (sql, values) = buildInsertFromDict("rrdbot_class", props, clas, False, nulls) 207 214 208 215 # Run query … … 265 272 # Build SQL 266 273 props = ["class_id", "class_name", "poll", "interval", \ 267 "cf", "archive", "depends"] 274 "cf", "archive", "depends", "upper_bound", "lower_bound"] 275 276 277 nulls= [] 278 279 if "lower_bound" in newDetails and newDetails["lower_bound"] == '': 280 nulls.append("lower_bound") 281 if "upper_bound" in newDetails and newDetails["upper_bound"] == '': 282 nulls.append("upper_bound") 268 283 (sql, values) = buildUpdateFromDict("rrdbot_class", props, newDetails, \ 269 "class_id", class_id )284 "class_id", class_id, False, nulls) 270 285 271 286 if values == None: … … 459 474 460 475 variables['classes'] = classes 461 476 print classes 462 477 variables["graphport"] = config_get("graphs", "port", "80") 463 478 return variables
Note: See TracChangeset
for help on using the changeset viewer.
