Changeset 8

Show
Ignore:
Timestamp:
05/19/06 16:16:48 (19 years ago)
Author:
jerome
Message:

Now uses the server's URL to retrieve the job's attributes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkipplib/trunk/ipplib/ipplib.py

    r7 r8  
    609609        """Retrieves a print job's attributes.""" 
    610610        req = self.newRequest(IPP_GET_JOB_ATTRIBUTES) 
    611         req.operation["job-uri"] = ("uri", "ipp://localhost:631/jobs/%s" % jobid) 
     611        req.operation["job-uri"] = ("uri", "%s/jobs/%s" % (self.url.replace("http://", "ipp://"), jobid)) 
    612612        return req.doRequest() 
    613613