This relates to https://github.com/camlistore/camlistore/issues/542.

One thing I realized as I started using camlistore is that it can 
significantly improve my workflow to track and process expense receipts. 
I'm considering writing a simple Android app that asks for expense 
metadata, allows taking a picture, and uploads that to camlistore with 
appropriate tags. I can then implement an importer on my laptop that 
searches for the right tag/attributes and writes entries in my beancount 
ledger.

The way I was hoping to implement this was something like: 

PN=$(camput file -filenodes receipt.png)
camput attr $PN tag receipt
camput attr $PN payee "XYZ"
camput attr $PN category "Restaurants"
camput attr $PN currency "INR"
camput attr $PN amount "150.00"

However, it seems this won't work with vivify, because
(a) With vivify, camput gets the ref of the file node, not the permanode. 
(b) The attr command doesn't yet have the vivify option. 

So, in order to implement something like this:

1. Is there a better way of satisfying the use case (than using  tags)?

2. What could be a better implementation -- (a) modify vivify to return 
permref; still not sure how attr would work with vivify, or (b) when 
sending the vivify request, add additional request headers with the 
key-value pairs for attributes to set, or (c) something else :-)

Alok

-- 
You received this message because you are subscribed to the Google Groups 
"Camlistore" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to