Hi, all!

i've recently been doing a lot of work with AJAX and JSON, and now i've got
the idea that it would be really cool to be able to get the fossil timeline
as JSON so i could post the latest stats on an arbitrary page.

Before i take a crack at this, i'd like to ask:

a) Any objections, Richard?

Then the more general: what should it look like? My first thoughts are
(minus extraneous quoting required by the JSON format):

{ timeline:
[
  {date:'2009-08-12', entries:[{time:'17:00:00',
                                          version:'e73a473...',
                                          user:'...',
                                          tags:'...',
                                          message:'...'
                                         },
                                         (repeat for each entry for this
particular day)
                                        ]
  },
  (repeat until we have the request number of entries, i.e. the "timeline -n
12" option)
]
}

that basically mimics what we see on the /timeline output.

i'm not yet certain if this would need to be a new command or (more likely)
an option like:

fossil timeline -j ...
or:
/timeline?n=12&json=1 (this is slightly problematic, though, because we need
to special-case this and not output the normal page)

The second option (or something similar) would be necessary in order to
fetch the data via external requests (via JavaScript or whatever).

:-?

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to