Fossil SCM

added a FIXME, removed another. Now it's really bed time.

stephan 2011-09-21 21:23 json
Commit 8b814778c920b9191ac38c3ed2fd1b63619d3e7b
1 file changed +5 -9
+5 -9
--- src/json.c
+++ src/json.c
@@ -291,16 +291,16 @@
291291
** is owned by the g.json object (one of its sub-objects). Returns
292292
** NULL if no match is found.
293293
**
294294
** ENV means the system environment (getenv()).
295295
**
296
-** Precedence: POST.payload, GET, COOKIE, POST, ENV.
296
+** Precedence: POST.payload, GET/COOKIE/non-JSON POST, JSON POST, ENV.
297297
**
298
-** The precedence SHOULD be: GET, POST.payload, POST, COOKIE, ENV, but
299
-** the amalgamation of the GET/POST vars makes it difficult for me to
300
-** do that. Since fossil only uses one cookie, cookie precedence isn't
301
-** a real/high-priority problem.
298
+** FIXME: the precedence SHOULD be: GET, POST.payload, POST, COOKIE,
299
+** ENV, but the amalgamation of the GET/POST vars makes it difficult
300
+** for me to do that. Since fossil only uses one cookie, cookie
301
+** precedence isn't a real/high-priority problem.
302302
*/
303303
cson_value * json_getenv( char const * zKey ){
304304
cson_value * rc;
305305
rc = g.json.reqPayload.o
306306
? cson_object_get( g.json.reqPayload.o, zKey )
@@ -1578,14 +1578,10 @@
15781578
}
15791579
15801580
/*
15811581
** Impl for /json/branch/list
15821582
**
1583
-** TODO: change how the "range" of branches is specified.
1584
-** Take a string arg in the form ("open","all","closed")
1585
-** and decide based off of that.
1586
-**
15871583
**
15881584
** CLI mode options:
15891585
**
15901586
** --range X | -r X, where X is one of (open,closed,all)
15911587
** (only the first letter is significant, default=open).
15921588
--- src/json.c
+++ src/json.c
@@ -291,16 +291,16 @@
291 ** is owned by the g.json object (one of its sub-objects). Returns
292 ** NULL if no match is found.
293 **
294 ** ENV means the system environment (getenv()).
295 **
296 ** Precedence: POST.payload, GET, COOKIE, POST, ENV.
297 **
298 ** The precedence SHOULD be: GET, POST.payload, POST, COOKIE, ENV, but
299 ** the amalgamation of the GET/POST vars makes it difficult for me to
300 ** do that. Since fossil only uses one cookie, cookie precedence isn't
301 ** a real/high-priority problem.
302 */
303 cson_value * json_getenv( char const * zKey ){
304 cson_value * rc;
305 rc = g.json.reqPayload.o
306 ? cson_object_get( g.json.reqPayload.o, zKey )
@@ -1578,14 +1578,10 @@
1578 }
1579
1580 /*
1581 ** Impl for /json/branch/list
1582 **
1583 ** TODO: change how the "range" of branches is specified.
1584 ** Take a string arg in the form ("open","all","closed")
1585 ** and decide based off of that.
1586 **
1587 **
1588 ** CLI mode options:
1589 **
1590 ** --range X | -r X, where X is one of (open,closed,all)
1591 ** (only the first letter is significant, default=open).
1592
--- src/json.c
+++ src/json.c
@@ -291,16 +291,16 @@
291 ** is owned by the g.json object (one of its sub-objects). Returns
292 ** NULL if no match is found.
293 **
294 ** ENV means the system environment (getenv()).
295 **
296 ** Precedence: POST.payload, GET/COOKIE/non-JSON POST, JSON POST, ENV.
297 **
298 ** FIXME: the precedence SHOULD be: GET, POST.payload, POST, COOKIE,
299 ** ENV, but the amalgamation of the GET/POST vars makes it difficult
300 ** for me to do that. Since fossil only uses one cookie, cookie
301 ** precedence isn't a real/high-priority problem.
302 */
303 cson_value * json_getenv( char const * zKey ){
304 cson_value * rc;
305 rc = g.json.reqPayload.o
306 ? cson_object_get( g.json.reqPayload.o, zKey )
@@ -1578,14 +1578,10 @@
1578 }
1579
1580 /*
1581 ** Impl for /json/branch/list
1582 **
 
 
 
 
1583 **
1584 ** CLI mode options:
1585 **
1586 ** --range X | -r X, where X is one of (open,closed,all)
1587 ** (only the first letter is significant, default=open).
1588

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button