~ubuntu-branches/ubuntu/wily/hamster-applet/wily

« back to all changes in this revision

Viewing changes to hamster/__init__.py

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-12-15 17:42:14 UTC
  • mto: (1.1.16 upstream) (20.1.1 lucid-proposed)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20081215174214-ri1ezw1c2pdnl3i6
Tags: upstream-2.25.3
ImportĀ upstreamĀ versionĀ 2.25.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    print "Database not found in %s - installing default from %s!" % (HAMSTER_DB, SHARED_DATA_DIR)
76
76
    copyfile(join(SHARED_DATA_DIR, DB_FILE), HAMSTER_DB)
77
77
 
 
78
        #change also permissions - sometimes they are 444
 
79
    try:
 
80
        os.chmod(HAMSTER_DB, 0664)
 
81
    except Exception, msg:      
 
82
        print 'Error:could not change mode on %s!' % (HAMSTER_DB)
 
83
 
78
84
# Init storage
79
85
 
80
86
dispatcher = Dispatcher()