Skip to content

Add Prefix parameter to zoautil_py.jobs.listing #63

Discussion options

You must be logged in to vote

Here's a bit of sample code that should get you on your way. It's not as intuitive as you're describing it to be, and perhaps the takeaway is that ZOAU needs to keyword this for usability sake, but this is a bandage:

For example, if you were to run a listing looking for all jobs starting with an O you would typically run this:
jls '/*/O*'

giving me this result:
OAMSTC OAM STC03939 AC ?
In Python, that would look like this:

from zoautil_py import jobs
val = jobs.listing('/*/O*')
print(val)
for job in val:
  print(job)

This code snippet gives me:

[STC03939]
[Job]
        id: STC03939
        name: OAM
        owner: OAMSTC
        status: AC
        rc: ?

Hope this helps!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@elaborateballoons
Comment options

@EnsonoStevenPerva
Comment options

Answer selected by elaborateballoons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants