constants.py :  » Business-Application » hylaPEx » hylapex » library » Python Open Source

Home
Python Open Source
1.3.1.2 Python
2.Ajax
3.Aspect Oriented
4.Blog
5.Build
6.Business Application
7.Chart Report
8.Content Management Systems
9.Cryptographic
10.Database
11.Development
12.Editor
13.Email
14.ERP
15.Game 2D 3D
16.GIS
17.GUI
18.IDE
19.Installer
20.IRC
21.Issue Tracker
22.Language Interface
23.Log
24.Math
25.Media Sound Audio
26.Mobile
27.Network
28.Parser
29.PDF
30.Project Management
31.RSS
32.Search
33.Security
34.Template Engines
35.Test
36.UML
37.USB Serial
38.Web Frameworks
39.Web Server
40.Web Services
41.Web Unit
42.Wiki
43.Windows
44.XML
Python Open Source » Business Application » hylaPEx 
hylaPEx » hylapex » library » constants.py
#!/usr/bin/python
# -*- coding: utf-8 -*-

OBS_ADD_ALL_FILES = 2000
OBS_FR_HY_UPDATE = 3000
OBS_FR_DATA_COVER_CLOSE = 4000
OBS_FR_SEND_CLOSE = 5000

CHAR_TRANSLATE_TABLE = ([u"",u"",u"",u"",u"",u""],
                        ("e'","e'","i'","o'","a'","u'") )


#MUST be in the same order than the GUI
DB_TYPE_NULL = 0
DB_TYPE_NET = 1
DB_TYPE_NET = 2
DB_TYPE_FILE = 3

DB_TYPE_PGSQL = 1
DB_TYPE_MYSQL = 2

DB_TYPE_L_NET = (1,2)


from db_lib import Mysql,PgSql,Sqlite
DB_CLASSES = {0: None, 1: PgSql, 2: Mysql, 3: Sqlite}



#Control types
C_ALWAYS    = 0
C_WHEN_DONE = 1
C_WHEN_FAIL = 2
C_DONE_FAIL = 3

VIEW_DONE    = 0
VIEW_RECEIVE = 1
VIEW_SEND    = 2

VIEW_DICT = { VIEW_DONE:    'done',
              VIEW_RECEIVE: 'receive',
              VIEW_SEND:    'send',
            }

F_TYPE_NONE  = 0
F_TYPE_DATA  = 1
F_TYPE_PCL   = 2
F_TYPE_PS    = 3
F_TYPE_TIFF  = 4
F_TYPE_PDF   = 5
F_TYPE_NDATA = 6
F_TYPE_NPCL  = 7
F_TYPE_NPS   = 8
F_TYPE_NTIFF = 9
F_TYPE_NPDF  = 10

F_TYPES_TIFF = (F_TYPE_TIFF, F_TYPE_NTIFF)
F_TYPES_PS = (F_TYPE_PS, F_TYPE_PDF, F_TYPE_NPS, F_TYPE_NPDF,)

#Docs type for
DOCS_TYPE = ['','data','pcl','postscript','tiff','pdf',
    '!data','!pcl','!postscript','!tiff','!pdf']
DOCS_TYPE_HANDLE = ('postscript','pdf','tiff','data')
DOCS_TYPE_HANDLE_TIFF = ('tiff', )

COLOR_NEW_FAX = "color_new"
COLOR_FAILED_FAX = "color_failed"
COLOR_ALARM_FAX = "color_alarm"
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.