summaryrefslogtreecommitdiff
path: root/demos/activeblog/protected/application.xml
blob: ce3906d55a6902152e3fc98b0d8b53ca724e1846 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?xml version="1.0" encoding="utf-8"?>

<!--<application id="activeblog" Mode="Off">-->
<application id="activeblog" Mode="Debug">
<!--<application id="activeblog" Mode="Normal">-->
<!--<application id="activeblog" Mode="Performance">-->
 	<paths>
 		<!-- System Namespaces -->
 		<using namespace="System.Util.TVarDumper" />
 		<using namespace="System.Web.UI.ActiveControls.*" />
 		<using namespace="System.Data.ActiveRecord.*" />
 		
 		<!-- Application Namespaces -->
 		<using namespace="Application.App_Controls.BlogException"/>
 		<using namespace="Application.App_Controls.*"/>
 		<using namespace="Application.App_Modules.*"/>
 		<using namespace="Application.App_Portlets.*"/>
 		<using namespace="Application.App_Services.*"/>
 	</paths>

 	<module class="System.Util.TParameterModule" ParameterFile="Application.Data.Settings" />
 	
 	<!-- modules configured and loaded for all services -->
  	<modules>
  		<!-- use TUrlMapping to map URL patterns to particular requests -->
    	<module id="friendly-url" class="System.Web.TUrlMapping" ConfigFile="Application.urlmaps"/>
  		<module 
  			id="request" 
  			class="System.Web.THttpRequest" 
  			UrlFormat="Path" 
  			EnableCookieValidation="True"
  			UrlManager="friendly-url"/>

		<module id="ErrorHandler" class="Application.App_Modules.BlogErrorHandler" />
		
		<!-- Custom Session Module -->
    	<module 
    		id="session" 
    		class="System.Web.THttpSession" 
    		AutoStart="True"
    		UseCustomStorage="True" />
  			
  		<!-- user manager module -->
		
    	<!-- auth manager module -->
  			
  		<!-- Modules for caching -->
<!--    	<module id="SqliteCache" PrimaryCache="True" class="System.Caching.TSqliteCache"/>-->

  	</modules>
  	
  	<services>
  		<!-- Our main page service -->
    	<service id="page" class="System.Web.Services.TPageService" BasePath="Application.App_Pages">
    		<modules>
    			<!-- Log module -->
    			<module id="log" class="System.Util.TLogRouter">
<!--      				<route class="TBrowserLogRoute"/>-->
<!--      				<route class="TBrowserLogRoute" Categories="System.Web.UI.TPage"/>-->
      				<route 
      					class="TFileLogRoute" 
      					LogFile="System.log" 
      					Categories="System" 
      					Levels="Notice,Warning,Error,Alert,Fatal"/>
      				<route 
      					class="TFileLogRoute" 
      					LogFile="Application.log" 
      					Categories="Application" 
      					Levels="Info,Notice,Warning,Error,Alert,Fatal"/>
      				<route 
      					class="TFileLogRoute" 
      					LogFile="BlogApplication.log" 
      					Categories="BlogApplication" />
				</module>
				
				<!-- Theme manager module -->
    			<module id="themes" class="System.Web.UI.TThemeManager" />
    			
    			<!-- Data Module -->
    			<module id="data" class="Application.App_Modules.BlogDataModule" />
			</modules>
			
			<pages MasterClass="Application.App_Layouts.MainLayout" Theme="Default" />
		</service>
  	</services>
</application>