Show all changed fields in the diff report.
[cocanwiki.git] / scripts / lib / cocanwiki_pages.mli
index fb7c8c5..6503141 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: cocanwiki_pages.mli,v 1.4 2006/07/27 16:46:55 rich Exp $
+ * $Id: cocanwiki_pages.mli,v 1.5 2006/08/04 12:20:07 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
@@ -24,17 +24,21 @@ open Cocanwiki
 (* Page (URL) or title. *)
 type pt = Page of string | Title of string
 
+type section =
+    string option * string option * string option * string
+    (* (sectionname, divname, jsgo, content) *)
+
 type model = {
   id : int32;                          (* Original page ID (0 = none). *)
   pt : pt;                             (* Page of title (only used if id=0) *)
   description : string;                        (* Description. *)
   redirect : string option;            (* Redirect to. *)
-  contents_ : (string option * string option * string option * string) list;
-          (* (sectionname, divname, jsgo, content) for each section. *)
+  contents_ : section list;            (* List of sections. *)
 }
 
 exception SaveURLError
-exception SaveConflict of int32 * int32 * string * string
+exception SaveConflict of int32 * int32 * string * string option
+  (** New version, old version, URL, CSS. *)
 
 val new_page : pt -> model
   (** Create a new, blank page. *)