Skip to content

Commit

Permalink
comment out some new test on envs
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorenzo [hdd] Angeli committed Mar 13, 2011
1 parent 79ed8ab commit 7aab1ab
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
15 changes: 10 additions & 5 deletions src/lib/jobTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,18 @@ def _set_values(self):
self._tab_priority.setValue(int(self._drq_job_object.priority))
self._tab_pool.setText("%s"%self._drq_job_object.limits.pool)

print pformat(dir(self._drq_job_object.envvars))

# id = self._drq_job_object.id
# print self._drq_job_object.name
#
# for i in range(self._drq_job_object.envvars.nvariables):
# self._drq_job_object.envvars
# print self._drq_job_object.envvars.name
# env_id= drqueue.request_job_envvars(id,self._drq_job_object.envvars,i)
# print self._drq_job_object.envvars_dump_info
#
# if ptr:
# print ">>",id,self._drq_job_object.envvars.variables.ptr[i].name
# var= drqueue.request_job_envvars(id,self._drq_job_object.envvars,i)
# print var, type(var)

def _set_context(self):
"""
bind the context menu to all the columns
Expand Down
17 changes: 16 additions & 1 deletion tst.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
from pprint import pformat

import drqueue.base.libdrqueue as drqueue

print drqueue.VERSION_MAJOR,drqueue.VERSION_MINOR,drqueue.VERSION_PATCH

jobs= drqueue.request_job_list(drqueue.CLIENT)
for job in jobs:
id = job.id
name = job.name
nvars=job.envvars.nvariables

vars=job.envvars.variables
print pformat(dir(vars))

#
# drqueue.envvars.dump_info(job.envvars)
# for i in range(nvars):
# print vars

0 comments on commit 7aab1ab

Please sign in to comment.