constants.py :  » Network » rwhois.py » releaseforge-0.5 » modules » 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 » Network » rwhois.py 
rwhois.py » releaseforge 0.5 » modules » constants.py

DEFAULT_DATA_PATH = ".releaseforge"

RELEASEFORGE_CONFIG_FILENAME = "releaseforge.cfg"
PROJECTS_FILENAME = "projects"
LOGIN_FILENAME = "login"
COOKIE_FILENAME = 'cookies.sf'
LOGGER_CONFIG_FILENAME = "logger.ini"

SF_FTP_SERVER = "upload.sourceforge.net"
SF_FTP_DIRECTORY = "incoming"

# custom event ids
EVENT_LOGIN            = 10000
EVENT_STATUS           = 10001
EVENT_UPDATE_PROJECT   = 10002
EVENT_ADD_PACKAGE      = 10003
EVENT_UPDATE_PACKAGE   = 10004
EVENT_REFRESH_PACKAGES = 10005
EVENT_CREATE_RELEASE   = 10006
EVENT_UPLOAD_FILES     = 10007
EVENT_EDIT_RELEASE_1   = 10008
EVENT_EDIT_RELEASE_2   = 10009
EVENT_EDIT_RELEASE_3   = 10010
EVENT_EDIT_RELEASE_4   = 10011

# page numbers of the releaseWizard
WIZARD_PAGE_RELEASE_NAME = 0
WIZARD_PAGE_FILE_SELECTION = 1
WIZARD_PAGE_PROGRESS = 2

WIZARD_HELP_PAGES = {
    WIZARD_PAGE_RELEASE_NAME: 'new_release.html',
    WIZARD_PAGE_FILE_SELECTION: 'file_selection.html',
    WIZARD_PAGE_PROGRESS: 'progress.html'
    }

# mappings of processor to their SF id's
CPU = {'i386': '1000',
       'IA64': '6000',
       'Alpha': '7000',
       'Any': '8000',
       'PPC': '2000',
       'MIPS': '3000',
       'Sparc': '4000',
       'UltraSparc': '5000',
       'Other': '9999',
       'Platform-Independent': '8500',
       'ARM': '3001',
       'SH3': '3002',
       'AMD64': '6001',
       'PPC64': '2001'}

# mappings of file type names to their SF id's
FILE_TYPE = {
    '.deb': '1000',
    '.rpm': '2000',
    '.zip': '3000',
    '.bz2': '3001',
    '.gz': '3002',
    'Source .zip': '5000',
    'Source .bz2': '5001',
    'Source .gz': '5002',
    'Source .rpm': '5100',
    'Other Source File': '5900',
    '.jpg': '8000',
    'text': '8001',
    'html': '8002',
    'pdf': '8003',
    'Other': '9999',
    '.sit': '3003',
    '.nbz': '3004',
    '.exe (DOS)': '2500',
    '.exe (16-bit Windows)': '2501',
    '.exe (32-bit Windows)': '2502',
    '.exe (OS/2)': '2600',
    '.dmg': '3005',    
    '.jar': '2601',    
    'Source Patch/Diff': '5901',    
    '.prc (PalmOS)': '2700',    
    '.iso': '3006',
    'Source .Z': '5003',
    '.bin (MacBinary)': '2650',
    '.ps (PostScript)': '8004',
    '.msi (Windows Installer)': '2503',
    'Other Binary Package': '4000'
    }

# mappings of guessing file extentions to their names (in the previous hash)
FILE_TYPE_GUESS = {
    '.deb': '.deb',
    '.rpm': '.rpm',
    '.zip': '.zip',
    '.bz2': '.bz2',
    '.bz': '.bz2',
    '.gz': '.gz',
    '.tgz': '.gz',
    '.tar.gz': '.gz',
    '.src.zip': 'Source .zip',
    '.src.bz2': 'Source .bz2',
    '.src.bz': 'Source .bz2',
    '.src.tar.gz': 'Source .gz',
    '.src.tgz': 'Source .gz',
    '.src.rpm': 'Source .rpm',
    '.jpeg': '.jpg',
    '.jpg': '.jpg',
    '.text': 'text',
    '.txt': 'text',
    '.html': 'html',
    '.htm': 'html',
    '.pdf': 'pdf',
    '.sit': '.sit',
    '.nbz': '.nbz',
    '.exe': '.exe (32-bit Windows)',
    '.win32.exe': '.exe (32-bit Windows)',
    '.win16.exe': '.exe (16-bit Windows)',
    '.dos.exe': '.exe (DOS)',
    '.os2.exe': '.exe (OS/2)',
    '.dmg': '.dmg',    
    '.jar': '.jar',
    '.diff': 'Source Patch/Diff',
    '.prc': '.prc (PalmOS)',
    '.iso': '.iso',
    '.Z': 'Source .Z',
    '.bin': '.bin (MacBinary)',
    '.ps': '.ps (PostScript)',
    '.msi': '.msi (Windows Installer)'
    }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.