瀏覽代碼

new way for versioninformation ...
not cool yet, simply an svn Id on myCar.py
We definitly need a version handling and something for file wide configuration, so that every file can contain such things


git-svn-id: svn://svn.siningsoft.de/myCar@17 4258477e-9397-4ceb-bd8a-6305f6291781

devnull 6 年之前
父節點
當前提交
f4bc48690d
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 2 0
      bin/start-debug.sh
  2. 0 2
      templates/VERSION
  3. 1 1
      templates/base.html

+ 2 - 0
bin/start-debug.sh

@@ -14,6 +14,8 @@ myCar_config.read('data/etc/myCar.conf')
 # fill in config values with defaults
 myCar_config = lib.config.myCar_read_config_defaults(myCar_config)
 
+# please note, that this VERSION string is filled by subversion
+VERSION = "$Id$";
 
 import atexit
 atexit.register(lib.app_control.myCar_exit, myCar_config)

+ 0 - 2
templates/VERSION

@@ -1,2 +0,0 @@
-Version: 0.3
-SVN-Commit: 

+ 1 - 1
templates/base.html

@@ -76,7 +76,7 @@
                         The license is yet undefined ...<br>
                         <a href="https://wiki.siningsoft.de/id=mycar:intro">myCar project Page at wiki.siningsoft.de</a>
                      </td>
-                    <td>{% include 'VERSION' %}</td>
+                    <td>{% print(VERSION); %}</td>
                     
                 </tr>
             </table>