~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to samples/webserver/oldModsWebserver.py

  • Committer: Bazaar Package Importer
  • Author(s): Sandro Tosi
  • Date: 2010-03-04 23:55:10 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20100304235510-3v6lbhzwrgm0pcca
Tags: 0.8.2-1
* QA upload.
* New upstream release
* debian/control
  - set maintainer to QA group
  - set Homepage field, removing the URL from packages description
  - bump versioned b-d-i on python-support, to properly support Python module
  - replace b-d on python-all-dev with python-all, since building only
    arch:all packages
  - replace Source-Version substvar with source:Version
  - add ${misc:Depends} to binary packages Depends
* debian/watch
  - updated to use the SourceForge redirector; thanks to Raphael Geissert for
    the report and to Dario Minnucci for the patch; Closes: #449904
* debian/{pythoncard-doc, python-pythoncard}.install
  - use wildcards instead of site-packages to fix build with python 2.6;
    thanks to Ilya Barygin for the report and patch; Closes: #572332
* debian/pythoncard-doc.doc-base
  - set section to Programmin/Python
* debian/pythoncard-tools.menu
  - set menu main section to Applications
* debian/pythoncard-tools.postinst
  - removed, needed only to update the menu, but it's now created by debhelper

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python
2
2
 
3
3
"""
4
 
__version__ = "$Revision: 1.1 $"
5
 
__date__ = "$Date: 2004/07/28 17:05:54 $"
 
4
__version__ = "$Revision: 1.2 $"
 
5
__date__ = "$Date: 2005/09/18 03:59:22 $"
6
6
"""
7
7
 
8
8
import wx
203
203
                os.dup2(self.rfile.fileno(), 0)
204
204
                os.dup2(self.wfile.fileno(), 1)
205
205
                os.execve(scriptfile, args, env)
206
 
            except:
 
206
            except Exception, msg: # Should test for a particular Exception
207
207
                self.server.handle_error(self.request, self.client_address)
208
208
                os._exit(127)
209
209
 
227
227
            self.log_message("command: %s", cmdline)
228
228
            try:
229
229
                nbytes = int(length)
230
 
            except:
 
230
            except Exception, msg: # Should test for a particular Exception
231
231
                nbytes = 0
232
232
            files = popenx(cmdline, 'b')
233
233
            fi = files[0]
334
334
            mdt = time.gmtime(s[8])
335
335
            lastModified = date_time_string(s[8])
336
336
            size = str(s[6])
337
 
        except:
 
337
        except Exception, msg: # Should test for a particular exception
338
338
            mdt = None
339
339
            lastModified = None
340
340
            size = None