ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/RegSvc/src/python/DefaultConfig.py
Revision: 1.1
Committed: Mon May 18 20:17:43 2009 UTC (15 years, 11 months ago) by sekhri
Content type: text/x-python
Branch: MAIN
CVS Tags: HEAD
Log Message:
implementing reg service in WMCORE

File Contents

# Content
1 #
2 # This is an example configuration which loads the documentation classes for
3 # the webtools package. In general your application should have it's own
4 # configuration and not use this, other than as a guideline.
5 #
6 from WMCore.Configuration import Configuration
7 from os import environ
8 import logging
9
10 config = Configuration()
11
12 # This component has all the configuration of CherryPy
13 config.component_('Webtools')
14
15 # This is the application
16 config.Webtools.application = 'RegSvc'
17 #config.Webtools.access_log_level = logging.WARNING
18 #config.Webtools.error_log_level = logging.WARNING
19 # This is the config for the application
20 config.component_('RegSvc')
21 # Define the default location for templates for the app
22 #config.RegSvc.templates = '/home/sekhri/tmp/COMP/RegSvc/src/templates/'
23 # Define the class that is the applications index
24 #config.RegSvc.index = 'gendb'
25
26 # Views are all pages
27 config.RegSvc.section_('views')
28 active = config.RegSvc.views.section_('active')
29 #active.section_('documentation')
30 # The class to load for this view/page
31 #active.documentation.object = 'WMCore.WebTools.Documentation'
32 # I could add a variable to the documenation object if I wanted to as follows:
33 # active.documentation.foo = 'bar'
34
35 #active.section_('welcome')
36 #active.welcome.object = 'WMCore.WebTools.Welcome'
37
38 # Controllers are standard way to return minified gzipped css and js
39 #active.section_('controllers')
40 #active.controllers.object = 'WMCore.WebTools.Controllers'
41 #active.controllers.css = {'reset': environ['YUIHOME'] + '/reset/reset.css',
42 # 'cms_reset': environ['WTBASE'] + '/css/WMCore/WebTools/cms_reset.css',
43 # 'style': environ['WTBASE'] + '/css/WMCore/WebTools/style.css'}
44 #active.controllers.js = {}
45
46 #active.section_('masthead')
47 #active.masthead.object = 'WMCore.WebTools.Masthead'
48 #active.masthead.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/Masthead'
49
50 #active.section_('gendb')
51 #active.gendb.object = 'RegSvc.RegSvc'
52
53 #active.section_('search')
54 #active.search.object = 'RegSvc.Search'
55 #active.search.database = 'sqlite:////Users/metson/Documents/Workspace/RegSvc/gendb.lite'
56 #active.search.database = 'mysql://javauser:javadude@cmssrv48.fnal.gov:3306/RSDB'
57 #active.search.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/'
58
59 #active.section_('edit')
60 #active.edit.object = 'RegSvc.Edit'
61 #active.edit.database = 'sqlite:////Users/metson/Documents/Workspace/RegSvc/gendb.lite'
62 #active.edit.database = 'mysql://javauser:javadude@cmssrv48.fnal.gov:3306/RSDB'
63 #active.edit.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/'
64
65 active.section_('rest')
66 active.rest.object = 'WMCore.WebTools.RESTApi'
67 active.rest.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/'
68 active.rest.section_('model')
69 active.rest.model.object = 'RegSvcRESTModel'
70 #active.rest.model.database = 'sqlite:////Users/metson/Documents/Workspace/RegSvc/gendb.lite'
71 active.rest.model.database = 'mysql://javauser:javadude@localhost:3306/RSDB'
72 active.rest.database = 'mysql://javauser:javadude@localhost:3306/RSDB'
73 active.rest.model.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/'
74
75 active.rest.section_('formatter')
76 active.rest.formatter.object = 'RESTFormatter'
77 active.rest.formatter.templates = environ['WTBASE'] + '/templates/WMCore/WebTools/'