(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: host.ml,v 1.6 2004/09/09 12:21:22 rich Exp $
+ * $Id: host.ml,v 1.7 2004/10/21 19:54:29 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
| _ -> assert false) in
template#table "hostnames" table;
- (* Pull out any email notifications. *)
- let sth = dbh#prepare_cached "select email, name from email_notify
- where hostid = ?" in
- sth#execute [`Int hostid];
-
- let table = sth#map (function
- [`String email; `Null] ->
- [ "email", Template.VarString email;
- "name", Template.VarString "" ]
- | [ `String email; `String name] ->
- [ "email", Template.VarString email;
- "name", Template.VarString name ]
- | _ -> assert false) in
- template#table "emails" table;
-
q#template template
let () =