Changeset 7750 for main


Ignore:
Timestamp:
2 Mar 2012, 12:01:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Check type of operating system before searching log files with grep.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/pages.py

    r7749 r7750  
    11471147
    11481148    def update(self, back=None, query=None):
     1149        if os.name != 'posix':
     1150            self.flash(
     1151                _('Log files can only be searched ' +
     1152                  'on Unix-based operating systems.'))
     1153            self.redirect(self.url(self.context, '@@logs'))
     1154            return
    11491155        session = ISession(self.request)['waeup.sirp']
    11501156        logname = session.get('logname', None)
     
    11601166        self.files = self.context.getLogFiles()
    11611167        fullpath = os.path.join(self.context.storage, 'logs', logname)
    1162 
    11631168        self.query = query
    11641169        #self.filecontents = open(fullpath, 'rb').read()
Note: See TracChangeset for help on using the changeset viewer.