~ubuntu-branches/debian/sid/gui-ufw/sid

« back to all changes in this revision

Viewing changes to gufw/gufw.py

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2011-03-04 17:34:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110304173450-3mwsbz03foelks0y
Tags: 11.04.2-1
* New upstream release (Closes: #584692, #550670).
* Switch to format 3.0 (quilt).
* debian/rules: add override_dh_auto_clean target to remove generated
  mo dir.
* debian/control: add Python Applications Packaging Team to Uploaders field.
* debian/control: add Vcs-Svn and Vcs-Browser fields.
* debian/control: remove cdbs from Build-Depends field.
* debian/control: add notify-osd | notification-daemon, policykit-1 and
  python-dbus to Depends field.
* debian/control: remove gksu and python-glade2 from Depends field.
* Update debian/copyright file.
* Remove debian/watch, it does not work anymore.
* debian/docs: look for doc files in doc/ path, patch by Alessio Treglia.
* Fix unused-override lintian info.
* Fix executable-not-elf-or-script lintian warnings.
* Bump Standards-Version to 3.9.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# Gufw 11.04.2 - http://gufw.tuxfamily.org
 
3
# Copyright (C) 2008-2011 Marcos Alvarez Costales https://launchpad.net/~costales
 
4
#
 
5
# Gufw is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 3 of the License, or
 
8
# (at your option) any later version.
 
9
 
10
# Gufw is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with Gufw; if not, see http://www.gnu.org/licenses for more
 
17
# information.
 
18
 
 
19
from util         import Validation
 
20
from controller   import Controller 
 
21
from view.guiGufw import GuiGufw
 
22
 
 
23
 
 
24
if __name__ == "__main__":
 
25
    
 
26
    # Check config file & is running previusly
 
27
    appInstance = Validation()
 
28
    
 
29
    # Controller
 
30
    controler = Controller()
 
31
    
 
32
    # Firewall
 
33
    firewall = controler.get_firewall()
 
34
    
 
35
    # Show GUI
 
36
    app = GuiGufw(firewall)
 
37
    
 
38
    # Remove current instance
 
39
    appInstance.exit_application()
 
40