source: epoptes/trunk/fuentes/epoptes/common/constants.py @ 295

Last change on this file since 295 was 295, checked in by mabarracus, 4 years ago

copy trusty epoptes code

File size: 1.9 KB
RevLine 
[295]1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3
4###########################################################################
5# Common constants.
6#
7# Copyright (C) 2010 Fotis Tsamis <ftsamis@gmail.com>
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FINESS FOR A PARTICULAR PURPOSE.  See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program.  If not, see <http://www.gnu.org/licenses/>.
21#
22# On Debian GNU/Linux systems, the complete text of the GNU General
23# Public License can be found in `/usr/share/common-licenses/GPL".
24###########################################################################
25
26# Warn users to update their chroots if they have a lower epoptes-client version
27# than this
28COMPATIBILITY_VERSION = [0, 5]
29
30# ['ltsp123', '00-1b-24-89-65-d6', '127.0.0.1:46827', '10.160.31.126:44920',
31#  'thin', 'user3', <gtk.gdk.Pixbuf>, '10.160.31.123', 'user (ltsp123)']
32C_LABEL = 0
33C_PIXBUF = 1
34C_INSTANCE = 2
35C_SESSION_HANDLE = 3
36# [label, <gtk.gdk.Pixbuf>, <Client instance>, username]
37G_LABEL = 0
38G_INSTANCE = 1
39
40# Execution Modes are used in execOnClients
41EM_SESSION_ONLY = 0
42EM_SYSTEM_ONLY = 1
43EM_EXIT_IF_SENT = 2
44EM_SESSION = [EM_SESSION_ONLY]
45EM_SESSION_AND_SYSTEM = [EM_SESSION_ONLY, EM_SYSTEM_ONLY]
46EM_SESSION_OR_SYSTEM = [EM_SESSION_ONLY, EM_EXIT_IF_SENT, EM_SYSTEM_ONLY]
47EM_SYSTEM_OR_SESSION = [EM_SYSTEM_ONLY, EM_EXIT_IF_SENT, EM_SESSION_ONLY]
48EM_SYSTEM_AND_SESSION = [EM_SYSTEM_ONLY, EM_SESSION_ONLY]
49EM_SYSTEM = [EM_SYSTEM_ONLY]
Note: See TracBrowser for help on using the repository browser.