Changeset 277 for trunk/screenshot.py


Ignore:
Timestamp:
07/28/09 05:01:31 (3 years ago)
Author:
marc
Message:

Enhanced console logging functions to support multiple arguments and better concatenation of them. Changed names for quicker testing. Don't import the reactor twice, better handling of a single reactor, a bug fix. Build shot file path for screenshots on request, this fixes a bug where the screenshot file name locally wasn't changed while the app was running. Better clean up of stale screenshot files. Added handling of SIGINT (ctrl-c) which shuts down the server and cleans up stale screenshot files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/screenshot.py

    r274 r277  
    5656        self.current_window_failed = False 
    5757 
    58         #: Final absolute path to the screenshot file 
    59         self.shot_file = os.path.join(self.configuration['screenshot']['path'], 'itakashot.%s' % (self.configuration['screenshot']['format'])) 
    60          
    6158        self.root_screen = gtk.gdk.screen_get_default() 
    6259        self.root_window = gtk.gdk.get_default_root_window() 
     
    104101        """ 
    105102 
    106         # Get up to date configuration values everytime there is a request 
    107          
     103        # Get up to date configuration values and build shot file path everytime there is a request 
    108104        self.configuration = self.gui.configuration 
    109105 
     106        #: Final absolute path to the screenshot file 
     107        self.shot_file = os.path.join(self.configuration['screenshot']['path'], 'itakashot.%s' % (self.configuration['screenshot']['format'])) 
     108         
    110109        if self.configuration['screenshot']['currentwindow'] and not self.itaka_globals.system == 'nt': 
    111110            try: 
Note: See TracChangeset for help on using the changeset viewer.