CVS update: openprivacy/htdocs/notes

From: cvs@openprivacy.org
Date: Tue Dec 19 2000 - 16:19:36 PST


Date: Tuesday December 19, 19100 @ 16:19
Author: fen
CVSWEB Options: -------------------

Main CVSWeb: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi

View this module: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes

-----------------------------------

Update of /usr/local/cvsroot/openprivacy/htdocs/notes
In directory openprivacy.org:/home/fen/projects/openprivacy/htdocs/notes

Modified Files:
        flow.txt
Log Message:
added queryReultMapper

*****************************************************************
File: openprivacy/htdocs/notes/flow.txt

CVSWEB Options: -------------------

CVSWeb: Annotate this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?annotate=1.56

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.56&content-type=text/x-cvsweb-markup

CVSWeb: Diff to previous version: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt.diff?r1=1.56&r2=1.55

-----------------------------------

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.55 openprivacy/htdocs/notes/flow.txt:1.56
--- openprivacy/htdocs/notes/flow.txt:1.55 Tue Dec 19 16:00:55 2000
+++ openprivacy/htdocs/notes/flow.txt Tue Dec 19 16:19:36 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.55 2000/12/20 00:00:55 burton Exp $
+$Id: flow.txt,v 1.56 2000/12/20 00:19:36 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -272,6 +272,25 @@
 // Maybe a reputation server returns general opinions when asked
 // a general question, but returns a specific prob when the
 // question includes a specific prob hash (as opposed to a pubkey)
+
+// Query resolving
+// Query -> Criteria(name, value, operation) -> (e.g., 'PUBKEY, AJ1p, EQUALS')
+
+QueryResultMapper {
+ for each Criteria {
+ if member(Criteria.name, PROB_PROPERTIES) {
+ if WHERE_CLAUSE {
+ append(WHERE_CLAUSE, "and")
+ }
+ append(WHERE_CLAUSE, concat(
+ Criteria.name Criteria.operation Criteria.value)
+ }
+ }
+ result = exec "select * from PROB_PROPERTIES where WHERE_CLAUSE"
+ prob = ProbFactory.create(result, JP1p)
+ sendMessage(address=callbackAddress,
+ facility=callback,
+ result=prob)
 
 // ========== in Agent1 ========== publish stream pseudonymously
 



This archive was generated by hypermail 2b30 : Mon Jan 22 2001 - 15:52:14 PST