~ubuntu-branches/ubuntu/natty/quickly/natty

« back to all changes in this revision

Viewing changes to data/templates/ubuntu-project/glade.py

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche, Niall Jackson
  • Date: 2009-09-04 20:33:20 UTC
  • Revision ID: james.westby@ubuntu.com-20090904203320-e3dl7zzlfdjvv5j3
Tags: 0.2.1
* New release:
 This is mostely a fix release, but we still have few must-have
 minor features so that people can easily begin to develop templates
 + Quickly Core:
  - Reshape variables in commandsconfig template file (LP: #421858)
  - Reshape command attributes for builtin commands
  - quickly without parameter now prints help
  - move some functions from ubuntu-project template to templatetools
    Quickly module to make them available to all templates
    (handle_additional_parameters, quickly_name, apply_file_rights,
    in_verbose_mode)
  - add missing quotes around new version number format [Ken VanDine]
 + ubuntu-project template:
  - quickly release and share should not start if there are no pgp keys
    available (LP: #419407)
  - Typo in preferences code for ubuntu-project template (LP: #421642)
  - preferences code stores record type rather than _id (LP: #421644)
  - Adapt new commandsconfig format
  - quickly edit fails if EDITOR=vim (support now interactive command)
    (LP: #418351)
  - quickly edit supports now sensible-editor choice
  - created application does not suport standard command line options
    (LP: #418355)
  - Quickly licence should create an AUTHORS file (LP: #424489)
  - ubuntu-project main python file code has stray, strange line of code
    (LP: #421653)
  - Typo in error message of $ quickly tutorial (LP: #422212), patch from
    [Niall Jackson] (LP: #422212)
  - Typo in the index page of the tutorial of ubuntu-project template
    [Niall Jackson] (LP: #422209)
  - Destroy the dialogs outright instead of merely hideing them since we
    always create new ones when the event is fired [John C Barstow]
  - ubuntu-project main python module commented code uses wrong naming
    convention for preferences dialog (LP: #421648)
  - Some output messages correction
 + common:
  - updated translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
# set domain text
27
27
gettext.textdomain('quickly')
28
28
 
29
 
from internal import quicklyutils
 
29
from quickly import templatetools
30
30
 
31
31
def help():
32
32
    print _("""Usage:
38
38
directly, and the open the UI files, Glade will throw errors
39
39
and won't open the files.
40
40
""")
41
 
quicklyutils.handle_additional_parameters(sys.argv, help)
 
41
templatetools.handle_additional_parameters(sys.argv, help)
42
42
 
43
43
cmd = "GLADE_CATALOG_PATH=./data/ui glade-3 data/ui/*.ui"
44
44
 
45
45
#run glade with env variables pointing to catalogue xml files
46
 
if os.getenv('QUICKLY') is not None and "verbose" in os.getenv('QUICKLY').lower():
 
46
if templatetools.in_verbose_mode():
47
47
    subprocess.Popen(cmd, shell=True)
48
48
else:
49
49
    nullfile=file("/dev/null")