~jdstrand/ufw/ufw-xenial

« back to all changes in this revision

Viewing changes to doc/skel-ui.example

  • Committer: Jamie Strandboge
  • Date: 2012-07-06 19:29:50 UTC
  • Revision ID: jamie@canonical.com-20120706192950-1whf5yyzv2v2xc6c
Release 0.32-0ubuntu1

* New upstream release featuring Python 3 port (LP: #1001657)
* debian/control:
  - clean up Depends and Build-Depends
  - Build-Depends on python3
  - add python-ufw for installing python2 modules
  - add X-Python3-Version: >= 3.2
  - update Vcs-Bzr
* add debian/python-ufw.install
* debian/rules:
  - use --install-layout=deb
  - adjust PYTHON to use python3
  - adjust PYVERS to use py3versions
  - add PYTHON2
  - run tests for both PYTHON and PYTHON2
  - run setup.py with both PYTHON and PYTHON2
  - use dh_python3 for ufw
  - use dh_python2 for python-ufw
* debian/ufw.lintian-overrides
  - remove old unneeded override
  - add postrm-does-not-call-updaterc.d-for-init.d-script since Ubuntu's
    debhelper adds code to postinst that does nothing on Ubuntu, but doesn't
    add the corresponding code to postrm
* New upstream release (Closes: 663677, Closes: 625681)
* debian/control: update to standards 3.9.3
* convert to source format 3.0 (quilt)
* 0001-optimize-boot.patch: only read in /etc/ufw/ufw.conf when disabled
* debian/rules: adjust to only install the application profiles when not
  Ubuntu
* debian/po/da.po: add Danish translation of debconf templates. Thanks to
  Joe Dalton (Closes: 666557)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
ufw.common.programName = "skel-ui"
25
25
 
26
26
import gettext
27
 
gettext.install(ufw.common.programName)
 
27
kwargs = {}
 
28
if sys.version_info[0] < 3:
 
29
    # In Python 2, ensure that the _() that gets installed into built-ins
 
30
    # always returns unicodes.  This matches the default behavior under Python
 
31
    # 3, although that keyword argument is not present in the Python 3 API.
 
32
    kwargs['unicode'] = True
 
33
gettext.install(ufw.common.programName, **kwargs)
28
34
 
29
35
if __name__ == "__main__":
30
 
    print ufw.frontend.get_command_help()
 
36
    print(ufw.frontend.get_command_help())
31
37