VERSION 0.1.6
authorJuke <juke@free.fr>
Wed, 10 Feb 2010 00:50:33 +0000 (01:50 +0100)
committerJuke <juke@free.fr>
Wed, 10 Feb 2010 00:50:33 +0000 (01:50 +0100)
DONE 0.1.5 : transformer example.cfg en masstransit.cfg
DONE 0.1.6 : mettre les chemin par rapport à /opt/masstransit/

TODO
build_myapp.py
src/opt/masstransit/example.cfg [deleted file]
src/opt/masstransit/masstransit.cfg [new file with mode: 0644]
src/opt/masstransit/masstransit.py

diff --git a/TODO b/TODO
index 673c456..788c7ed 100644 (file)
--- a/TODO
+++ b/TODO
@@ -37,4 +37,5 @@
     DONE 0.1.2 : Corriger l'indentation
     DONE 0.1.3 : Faire un objet ListeHoraire
     DONE 0.1.4 : Faire un .deb
-    
+    DONE 0.1.5 : transformer example.cfg en masstransit.cfg
+    TODO 0.1.6 : mettre les chemin par rapport à /opt/masstransit/
index 97d10e2..984c058 100644 (file)
@@ -29,7 +29,8 @@ if __name__ == "__main__":
        p.distribution="fremantle"
        p.repository="extras-devel"
        p.xsbc_bugtracker="http://bugs.maemo.org"
-       p.postinstall="""#!/bin/sh chmod +x /opt/masstransit/masstransit.py """ #Set here your post install script
+       p.postinstall="""#!/bin/sh 
+       chmod +x /opt/masstransit/masstransit.py """ #Set here your post install script
        #  p.postremove="""#!/bin/sh
        #  chmod +x /usr/bin/mclock.py""" #Set here your post remove script
        #  p.preinstall="""#!/bin/sh
@@ -37,7 +38,7 @@ if __name__ == "__main__":
        #  p.preremove="""#!/bin/sh
        #  chmod +x /usr/bin/mclock.py""" #Set here your pre remove script
        version = "0.1.3"           #Version of your software, e.g. "1.2.0" or "0.8.2"
-       build = "3"                 #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.
+       build = "4"                 #Build number, e.g. "1" for the first build of this version of your software. Increment for later re-builds of the same version of your software.
        #Text with changelog information to be displayed in the package "Details" tab of the Maemo Application Manager
        changeloginformation = "Fixed (large) icon." 
        dir_name = "src"            #Name of the subfolder containing your package source files (e.g. usr\share\icons\hicolor\scalable\myappicon.svg, usr\lib\myapp\somelib.py). We suggest to leave it named src in all projects and will refer to that in the wiki article on maemo.org
diff --git a/src/opt/masstransit/example.cfg b/src/opt/masstransit/example.cfg
deleted file mode 100644 (file)
index b7d87ce..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-[ListeDesGares]
-bibliotheque francois mitterand = BFM
-savigny sur orge  = SAO
-melun = MEL
-juvisy = JY
-gare de lyon = PAA
-chatelet = CLX
-villeneuve st georges = VSG
-le mee = WEE
-
diff --git a/src/opt/masstransit/masstransit.cfg b/src/opt/masstransit/masstransit.cfg
new file mode 100644 (file)
index 0000000..b7d87ce
--- /dev/null
@@ -0,0 +1,10 @@
+[ListeDesGares]
+bibliotheque francois mitterand = BFM
+savigny sur orge  = SAO
+melun = MEL
+juvisy = JY
+gare de lyon = PAA
+chatelet = CLX
+villeneuve st georges = VSG
+le mee = WEE
+
index 85d9406..9a53b26 100755 (executable)
@@ -178,8 +178,9 @@ class TransilienUI:
         gtk.main_quit()
 
     def on_refreshButton_clicked(self, widget):
-        gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(ConfFile('example.cfg'))
-        gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(ConfFile('example.cfg'))
+        conf = ConfFile('/opt/masstransit/example.cfg')
+        gare_source = LongNameGare(self.combo_source.get_current_text()).get_gare(conf)
+        gare_dest = LongNameGare(self.combo_dest.get_current_text()).get_gare(conf)
         trajet = Trajet(gare_source , gare_dest)
         print trajet
         print self.treestore