~ubuntu-branches/ubuntu/vivid/mago/vivid

« back to all changes in this revision

Viewing changes to mago/cmd/utils.py

  • Committer: Bazaar Package Importer
  • Author(s): Ara Pulido
  • Date: 2010-04-14 14:05:34 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414140534-grv0bwv9wv97khir
Tags: 0.2-0ubuntu1
* Mago tests updated for Lucid
  + Fixes arguments handling (LP: #562965)
  + Fixes seahorse tests (LP: #552618)
  + Fixes ubuntu-menu tests (LP: #551492)

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
import os, logging
6
6
from stat import ST_MODE, S_IMODE
7
7
from subprocess import Popen, PIPE
 
8
from ..gconfwrapper import GConf
 
9
 
 
10
def accessibility_enabled():
 
11
    """
 
12
    Check gconf key to determine if accessibility is enabled.
 
13
    
 
14
    @return: Value of accessibility key in gconf
 
15
    @rtype: bool
 
16
    """
 
17
    return GConf.get_item('/desktop/gnome/interface/accessibility')
8
18
 
9
19
def safe_change_mode(path, mode):
10
20
    """