Changeset 2886 for pykota/trunk

Show
Ignore:
Timestamp:
05/12/06 12:09:22 (19 years ago)
Author:
jerome
Message:

Transformed the per print queue lock into a per backend lock.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2885 r2886  
    285285        (jbtype, self.JobBillingCode) = jbing 
    286286         
    287         self.lockfilename = os.path.join(self.Directory, "%s-%s..LCK" % (self.myname, self.PrinterName)) 
     287        baselockfilename = self.DeviceURI.replace("/", ".") 
     288        baselockfilename = baselockfilename.replace(":", ".") 
     289        baselockfilename = baselockfilename.replace("?", ".") 
     290        baselockfilename = baselockfilename.replace("&", ".") 
     291        baselockfilename = baselockfilename.replace("@", ".") 
     292        self.lockfilename = os.path.join(self.Directory, "%s-%s..LCK" % (self.myname, baselockfilename)) 
    288293         
    289294        self.logdebug("Backend : %s" % self.RealBackend)