Author: justi9
Date: 2010-07-30 17:43:09 -0400 (Fri, 30 Jul 2010)
New Revision: 4175
Modified:
mgmt/newdata/mint/python/mint/update.py
Log:
Consolidate agent id translation; convert integer ids to strings
Modified: mgmt/newdata/mint/python/mint/update.py
===================================================================
--- mgmt/newdata/mint/python/mint/update.py 2010-07-30 18:57:53 UTC (rev 4174)
+++ mgmt/newdata/mint/python/mint/update.py 2010-07-30 21:43:09 UTC (rev 4175)
@@ -239,7 +239,7 @@
agent.objects_by_id[obj_id] = obj
def get_agent_id(self):
- return self.qmf_object.getObjectId().agentName
+ return str(self.qmf_object.getObjectId().agentName)
def get_class(self):
class_key = self.qmf_object.getClassKey()
@@ -492,8 +492,11 @@
self.qmf_agent = qmf_agent
+ def get_agent_id(self):
+ return str(self.qmf_agent.getAgentBank())
+
def do_process(self, cursor, stats):
- agent_id = self.qmf_agent.getAgentBank()
+ agent_id = self.get_agent_id()
try:
agent = self.model.agents_by_id[agent_id]
@@ -524,7 +527,7 @@
class AgentDelete(AgentUpdate):
def do_process(self, cursor, stats):
- agent_id = self.qmf_agent.getAgentBank()
+ agent_id = self.get_agent_id()
try:
agent = self.model.agents_by_id[agent_id]
Show replies by date