Show
Ignore:
Timestamp:
06/10/05 22:01:50 (19 years ago)
Author:
jerome
Message:

Added the striptitle directive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/tool.py

    r2302 r2307  
    665665            self.username = self.username.lower() 
    666666             
     667        # do we want to strip some prefix off of titles ?     
     668        stripprefix = self.config.getStripTitle(self.printername) 
     669        if stripprefix : 
     670            if fnmatch.fnmatch(self.title[:len(stripprefix)], stripprefix) : 
     671                self.logdebug("Prefix [%s] removed from job's title [%s]." % (stripprefix, self.title)) 
     672                self.title = self.title[len(stripprefix):] 
     673             
    667674        self.preserveinputfile = self.inputfile  
    668675        try :