~gtg-user/gtg/multiple_selection

« back to all changes in this revision

Viewing changes to GTG/backends/localfile.py

  • Committer: Bertrand Rousseau
  • Date: 2009-03-01 15:38:08 UTC
  • mfrom: (169.1.15 working)
  • Revision ID: bertrand.rousseau@gmail.com-20090301153808-rbj4zz2qgycnhoiv
Merge "dist" branch with main branch. Now GTG is dist-enabled ;-)

 * support ofr distutils
 * folder reorganization
 * installation scripts
 * correct license information
 * path abstraction
 * some modifications on about dialog

Enjoy! GTG 0.1 is near!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# -----------------------------------------------------------------------------
 
3
# Gettings Things Gnome! - a personnal organizer for the GNOME desktop
 
4
# Copyright (c) 2008-2009 - Lionel Dricot & Bertrand Rousseau
 
5
#
 
6
# This program is free software: you can redistribute it and/or modify it under
 
7
# the terms of the GNU General Public License as published by the Free Software
 
8
# Foundation, either version 3 of the License, or (at your option) any later
 
9
# version.
 
10
#
 
11
# This program is distributed in the hope that it will be useful, but WITHOUT
 
12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
13
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 
14
# details.
 
15
#
 
16
# You should have received a copy of the GNU General Public License along with
 
17
# this program.  If not, see <http://www.gnu.org/licenses/>.
 
18
# -----------------------------------------------------------------------------
 
19
 
 
20
 
 
21
#Localfile is a read/write backend that will store your tasks in an XML file
 
22
#This file will be in your $XDG_DATA_DIR/gtg folder.
 
23
 
1
24
import os,shutil
2
25
import uuid
3
26
 
4
 
from gtg_core   import CoreConfig
5
 
from tools import cleanxml, taskxml
 
27
from GTG.core  import CoreConfig
 
28
from GTG.tools import cleanxml, taskxml
6
29
 
7
30
#Return the name of the backend as it should be displayed in the UI
8
31
def get_name() :