[Py-RRDTool-Devel] [ py-rrdtool-Bugs-1457153 ] Make py-rrdtool acept python tuples as an argument
Status: Beta
Brought to you by:
perky
From: SourceForge.net <no...@so...> - 2006-03-23 18:31:16
|
Bugs item #1457153, was opened at 2006-03-23 18:06 Message generated for change (Comment added) made by s0undt3ch You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=618943&aid=1457153&group_id=97739 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 9 Submitted By: Pedro Algarvio (s0undt3ch) Assigned to: Nobody/Anonymous (nobody) Summary: Make py-rrdtool acept python tuples as an argument Initial Comment: Make py-rrdtool acept python tuples as an argument, at least, this will make my life alot easier making an object oriented wrapper of py-rrdtool. ---------------------------------------------------------------------- >Comment By: Pedro Algarvio (s0undt3ch) Date: 2006-03-23 18:12 Message: Logged In: YES user_id=927681 This Works: rrdtool.create('/tmp/test.rrd', 'DS:speed:COUNTER:600:0:100000', 'RRA:AVERAGE:0.5:1:24', 'RRA:AVERAGE:0.5:1:48') With my wrapper I do: my_args_tupple = ('DS:speed:COUNTER:600:0:100000', 'RRA:AVERAGE:0.5:1:24', 'RRA:AVERAGE:0.5:1:48') rrdtool.create('/tmp/test.rrd' str(my_args_tupple)) And I get: _rrdtool.error: can't parse argument '('DS:speed:COUNTER:600:0:100000', 'RRA:AVERAGE:0.5:1:24', 'RRA:AVERAGE:0.5:1:48')' What's the prob here? Probably a stupid one... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=618943&aid=1457153&group_id=97739 |