summaryrefslogtreecommitdiff
path: root/portato/constants.py
diff options
context:
space:
mode:
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"
012-11-26 17:33:44 +0100'>2012-11-26No need for special cairo versionRené Neumann6-290/+0 2012-10-07Rename cgit's 'sendfile' branch to 'necoro'René 'Necoro' Neumann2-2/+2 2012-10-01Switch to hgRené 'Necoro' Neumann4-7/+6 2012-10-01Keyword cgit-9999René Neumann2-2/+2 2012-10-01CGit updateRené Neumann4-32/+60 2012-09-25subtle-contrib ebuildRené 'Necoro' Neumann2-0/+32 2012-09-20Subtle live ebuildRené 'Necoro' Neumann2-0/+82 2012-09-11Fix copyright -- be in line with sunriseRené 'Necoro' Neumann2-2/+2 2012-09-09Bump radicale to version 0.7.1René 'Necoro' Neumann2-3/+9 2012-07-13FixRené Neumann2-3/+3 2012-07-13Better log handling of radicaleRené Neumann3-4/+4 2012-07-13Remove live ebuild of radicaleRené Neumann3-43/+0 2012-07-13Bump radicale to 0.7René Neumann2-5/+11 2012-05-07add epatch_user to cairoRené Neumann2-1/+2 2012-05-07Cairo from portage treeRené Neumann6-309/+63 2012-02-18Removed outdated packagesRené 'Necoro' Neumann19-883/+0 2012-02-17MltonRené Neumann2-0/+62 2012-02-17Removed virtualboxRené Neumann21-993/+0 2012-01-30BumpRené 'Necoro' Neumann1-3/+3 2012-01-30BumpRené 'Necoro' Neumann1-0/+0 2012-01-30Apply changes from bugs.gentoo.orgRené 'Necoro' Neumann2-1/+19 2012-01-11diffarrayRené Neumann3-0/+37 2012-01-10Remove patched dovecot. Changes are upstreamRené 'Necoro' Neumann8-907/+0 2012-01-10Remove emacs variant -- this is now tracked in patchesRené 'Necoro' Neumann3-363/+0 2011-11-06amd64 for fcgi-cgiRené 'Necoro' Neumann2-2/+2 2011-11-06Forgot dovecot init-fileRené 'Necoro' Neumann1-0/+1