|
From: <ni...@us...> - 2010-11-14 09:54:08
|
Revision: 118
http://openautomation.svn.sourceforge.net/openautomation/?rev=118&view=rev
Author: nilss1
Date: 2010-11-14 09:53:57 +0000 (Sun, 14 Nov 2010)
Log Message:
-----------
change from repr to str for getting dsobject name
Modified Paths:
--------------
PyWireGate/trunk/scheduler.py
Modified: PyWireGate/trunk/scheduler.py
===================================================================
--- PyWireGate/trunk/scheduler.py 2010-11-14 09:52:13 UTC (rev 117)
+++ PyWireGate/trunk/scheduler.py 2010-11-14 09:53:57 UTC (rev 118)
@@ -44,10 +44,12 @@
obj = self.WG.DATASTORE.dataobjects[shed]
if 'cron' in obj.config:
kwargs = {}
+
+ ## change config from unicode to str
for uoption in obj.config['cron'].keys():
kwargs[str(uoption)] = str(obj.config['cron'][uoption])
- self.debug("Adding %s - %r" % (shed,obj))
+ self.debug("Adding %s - %s" % (shed,obj))
setattr(obj.sendConnected.im_func,'__name__',"%s" % shed.encode('UTF-8'))
self.SCHEDULER.add_cron_job(self.WG.DATASTORE.dataobjects[shed].sendConnected,**kwargs)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|