summaryrefslogtreecommitdiff
path: root/portato/constants.py
diff options
context:
space:
mode:
authornecoro <>2007-07-20 07:19:27 +0000
committernecoro <>2007-07-20 07:19:27 +0000
commitd1a5c99708fa5e2fc0387e31ccb57f004d74f2fc (patch)
tree0441e1cec9d2881f939a017ba3e9ba2da9a2797e /portato/constants.py
parent0a8d3b8add548efbc44a67c3eb1223ff94aaffc5 (diff)
downloadportato-d1a5c99708fa5e2fc0387e31ccb57f004d74f2fc.tar.gz
portato-d1a5c99708fa5e2fc0387e31ccb57f004d74f2fc.tar.bz2
portato-d1a5c99708fa5e2fc0387e31ccb57f004d74f2fc.zip
new Plugin Scheme
Diffstat (limited to 'portato/constants.py')
-rw-r--r--portato/constants.py19
1 files changed, 14 insertions, 5 deletions
diff --git a/portato/constants.py b/portato/constants.py
index f8da545..c17ee24 100644
--- a/portato/constants.py
+++ b/portato/constants.py
@@ -14,6 +14,8 @@
Constants used through out the program. Mainly different pathes.
These should be set during the installation.
+@var VERSION: the current version
+@type VERSION: string
@var CONFIG_DIR: The configuration directory.
@type CONFIG_DIR: string
@var CONFIG_LOCATION: L{CONFIG_DIR} plus name of the config file.
@@ -22,8 +24,10 @@ These should be set during the installation.
@type DATA_DIR: string
@var PLUGIN_DIR: Directory containing the plugin xmls.
@type PLUGIN_DIR: string
-@var VERSION: the current version
-@type VERSION: string
+@var XSD_DIR: Directory containing the plugin-xml schema.
+@type XSD_DIR: string
+@var XSD_LOCATION: Path of the plugin schema.
+@type XSD_LOCATION: string
@var ICON_DIR: directory containing the icons
@type ICON_DIR: string
@var APP_ICON: the path of the application icon
@@ -33,16 +37,21 @@ These should be set during the installation.
@var STD_FRONTEND: the frontend uses as the default, i.e. if no other one is given on the cmdline
@type STD_FRONTEND: string
"""
+from os.path import join as pjoin
+
+VERSION = "9999"
CONFIG_DIR = "/etc/portato/"
-CONFIG_LOCATION = CONFIG_DIR+"portato.cfg"
+CONFIG_LOCATION = pjoin(CONFIG_DIR, "portato.cfg")
DATA_DIR = "portato/gui/templates/"
PLUGIN_DIR = "plugins/"
-VERSION = "9999"
+
+XSD_DIR = "./"
+XSD_LOCATION = pjoin(XSD_DIR, "plugin.xsd")
ICON_DIR = "icons/"
-APP_ICON = ICON_DIR+"/portato-icon.png"
+APP_ICON = pjoin(ICON_DIR, "portato-icon.png")
FRONTENDS = ["gtk" ,"qt"]
STD_FRONTEND = "gtk"