CVS update: openprivacy/htdocs/notes

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


Date: Tuesday December 19, 19100 @ 16:23
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:
fixed a bit

*****************************************************************
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.57

CVSWeb: View this file: http://openprivacy.org/cgi-bin/cvsweb/cvsweb.cgi/openprivacy/htdocs/notes/flow.txt?rev=1.57&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.57&r2=1.56

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

Index: openprivacy/htdocs/notes/flow.txt
diff -u openprivacy/htdocs/notes/flow.txt:1.56 openprivacy/htdocs/notes/flow.txt:1.57
--- openprivacy/htdocs/notes/flow.txt:1.56 Tue Dec 19 16:19:36 2000
+++ openprivacy/htdocs/notes/flow.txt Tue Dec 19 16:23:02 2000
@@ -1,4 +1,4 @@
-$Id: flow.txt,v 1.56 2000/12/20 00:19:36 fen Exp $
+$Id: flow.txt,v 1.57 2000/12/20 00:23:02 fen Exp $
 
 http://pix.comedia.com/OpenPrivacy/20001214/DSCN5532.JPG
 
@@ -277,20 +277,24 @@
 // Query -> Criteria(name, value, operation) -> (e.g., 'PUBKEY, AJ1p, EQUALS')
 
 QueryResultMapper {
+ WHERE_CLAUSE = ""
     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)
+ Criteria.name Criteria.operation Criteria.value))
         }
     }
- result = exec "select * from PROB_PROPERTIES where WHERE_CLAUSE"
+ // WHERE_CLAUSE = "PUBKEY = AJ1p"
+ //
+ result = exec "select data from PROBS 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