Skip to content

Commit

Permalink
Remove hardcoded package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Novacek committed Apr 22, 2011
1 parent 6b2e9a7 commit a5f9440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def __getattr__(self, name):
class QMF(object):
props = dict()
def __init__(self, agent, class_):
agent.loadSchemaInfo()
self.agent = agent
data = self.agent.query("{class: '%s', package:'org.matahariproject'}" % class_)
data = self.agent.query("{class: '%s', package:'%s'}" % (class_, agent.getPackages()[0]))
if len(data) == 0:
print "Query returned no data for class: %s" % class_
self = None
Expand Down

0 comments on commit a5f9440

Please sign in to comment.