summaryrefslogtreecommitdiff
path: root/demos/controls
diff options
context:
space:
mode:
authorxue <>2005-11-11 22:45:22 +0000
committerxue <>2005-11-11 22:45:22 +0000
commit51083f666005194dbed2e6963c823c08393a3a80 (patch)
treeea9c175659a0e0ad3036e2930ed048cf188dee0b /demos/controls
parentcb9ad614fe9e811a1565878ffbfb37803fa30486 (diff)
Enhanced page service configuration parsing. Content included between opening and closing page service tag in app config is now parsed.
Diffstat (limited to 'demos/controls')
-rw-r--r--demos/controls/protected/application.xml24
1 files changed, 16 insertions, 8 deletions
diff --git a/demos/controls/protected/application.xml b/demos/controls/protected/application.xml
index 6211399b..ef8280d6 100644
--- a/demos/controls/protected/application.xml
+++ b/demos/controls/protected/application.xml
@@ -4,18 +4,26 @@
<paths>
<alias id="Demo" path="." />
</paths>
+ <!-- modules configured and loaded for all services -->
<modules>
- <!--
+ <!-- make sure the path "protected" is writable by web server process if you enable this cache
<module id="cache" type="System.Data.TSqliteCache" DbFile="Demo.cache"/>
- -->
+ -->
<module id="session" type="THttpSession" />
- <module id="users" type="System.Security.TUserManager" PasswordMode="Clear">
- <user name="xue" password="qiang" />
- <user name="xue2" password="qiang2" />
- </module>
- <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />
</modules>
<services>
- <service id="page" RootPath="Demo.pages" DefaultPage="home" />
+ <!-- page service, PageRootPath is required -->
+ <service id="page" PageRootPath="Demo.pages" DefaultPage="home">
+ <!-- modules configured and loaded when page service is requested -->
+ <modules>
+ <!-- user manager module -->
+ <module id="users" type="System.Security.TUserManager" PasswordMode="Clear">
+ <user name="demo" password="work" />
+ <user name="demo2" password="work2" />
+ </module>
+ <!-- auth manager module -->
+ <module id="auth" type="System.Security.TAuthManager" UserManager="users" LoginPage="login" />
+ </modules>
+ </service>
</services>
</configuration> \ No newline at end of file