~nmu-sscheel/gtg/rework-task-editor

« back to all changes in this revision

Viewing changes to GTG/plugins/geolocalized_tasks/geolocalized_tasks.py

  • Committer: Bertrand Rousseau
  • Date: 2012-05-09 22:33:25 UTC
  • mfrom: (1178 trunk)
  • mto: This revision was merged to the branch mainline in revision 1179.
  • Revision ID: bertrand.rousseau@gmail.com-20120509223325-a53d8nwo0x9g93bc
Merge nimit branch and trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# this program.  If not, see <http://www.gnu.org/licenses/>.
16
16
 
17
17
import gtk
18
 
import os, sys
19
 
#from time import sleep
20
 
 
21
 
#from configobj import ConfigObj
 
18
import os
22
19
 
23
20
import Geoclue
24
21
 
152
149
                self.geoclue.init(resource=(1 << 2))
153
150
            else:
154
151
                self.geoclue.init(resource=((1 << 10) - 1))
155
 
        except Exception, e:
 
152
        except Exception:
156
153
            self.geoclue.init(resource=0)
157
154
            
158
155