Changeset 3545 for pykota/trunk/pykota

Show
Ignore:
Timestamp:
04/27/10 23:38:18 (14 years ago)
Author:
jerome
Message:

Ensures that all command lines are properly encoded before calling
os.system() on them from the cupspykota backend wrapper.
TODO : check command line tools for the same potential problem.

Location:
pykota/trunk/pykota
Files:
2 modified

Legend:

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

    r3489 r3545  
    486486    def externalMailTo(self, cmd, action, user, printer, message) : 
    487487        """Warns the user with an external command.""" 
     488        cmd = cmd.encode(self.charset, "replace") 
    488489        message = message.encode(self.charset, "replace") 
    489490        username = user.Name 
  • pykota/trunk/pykota/version.py

    r3533 r3545  
    2424import time 
    2525 
    26 __version__ = "1.27alpha10_unofficial" 
     26__version__ = "1.27alpha11_unofficial" 
    2727 
    2828__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."