diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-11-07 11:06:38 -0500 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-11-07 11:06:38 -0500 |
commit | 218146e27b7cd6ad51ba9ac23f0f825ff2a0bf11 (patch) | |
tree | 885b8f1689795cdad800ee601cf741f9b4145088 /demo/more/conference1.ur | |
parent | 82b47eee82d51eca0c0fd881be28b974bcc54984 (diff) |
Saving paper decisions
Diffstat (limited to 'demo/more/conference1.ur')
-rw-r--r-- | demo/more/conference1.ur | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/demo/more/conference1.ur b/demo/more/conference1.ur index a365efa8..646ba489 100644 --- a/demo/more/conference1.ur +++ b/demo/more/conference1.ur @@ -10,16 +10,23 @@ open Conference.Make(struct val submissionDeadline = readError "2009-11-22 23:59:59" fun summarizePaper [ctx] [[Body] ~ ctx] r = txt r.Title + functor Make (M : Conference.INPUT where con paper = _ + where con review = _) = struct + open M + + fun status [ctx] [[Body] ~ ctx] r = + queryX (SELECT review.Rating + FROM review + WHERE review.Paper = {[r.Id]}) + (fn r => <xml>{[r.Review.Rating]}; </xml>) - functor Make (M : Conference.INPUT where con paper = _) = struct open Conference.Join(struct structure O1 = Bid.Make(M) structure O2 = Decision.Make(struct con paperOther = _ open M - fun status [ctx] [[Body] ~ ctx] - r = <xml>!</xml> + val status = @@status end) end) end |