Fix definition of DefaultAliasSource
[hcoop/domtool2.git] / src / plugins / easy_domain.sml
index dd8d71b..7a15dea 100644 (file)
@@ -1,5 +1,6 @@
 (* HCoop Domtool (http://hcoop.sourceforge.net/)
  * Copyright (c) 2007, Adam Chlipala
+ * Copyright (c) 2014  Clinton Ebadi <clinton@unknownlamer.org>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -26,10 +27,36 @@ val dl = ErrorMsg.dummyLoc
 
 val _ = Defaults.registerDefault ("WWW",
                                  (TAction ((CConst "Vhost", dl),
-                                           foldl (fn ((v, t, _), r) =>
-                                                     StringMap.insert (r, v, t))
-                                                 StringMap.empty Apache.defaults,
+                                           StringMap.empty,
                                            StringMap.empty), dl),
                                  (fn () => (ESkip, dl)))
 
+val _ = Defaults.registerDefault ("CreateWWW",
+                                 (TBase "bool", dl),
+                                 (fn () => (EVar "true", dl)))
+
+val _ = Defaults.registerDefault ("DefaultA",
+                                 (TBase "bool", dl),
+                                 (fn () => (EVar "true", dl)))
+
+val _ = Defaults.registerDefault ("DefaultAlias",
+                                 (TBase "bool", dl),
+                                 (fn () => (EVar "true", dl)))
+
+val _ = Defaults.registerDefault ("DefaultAliasSource",
+                                 (TBase "aliasSource", dl),
+                                 (fn () => (EVar "defaultSource", dl)))
+
+val _ = Defaults.registerDefault ("HandleMail",
+                                 (TBase "bool", dl),
+                                 (fn () => (EVar "true", dl)))
+
+val _ = Defaults.registerDefault ("AddMX",
+                                 (TBase "bool", dl),
+                                 (fn () => (EVar "true", dl)))
+
+val _ = Defaults.registerDefault ("DefaultWebNode",
+                                 (TBase "web_node", dl),
+                                 (fn () => (EString "navajos", dl)))
+
 end