Re: Create a balance from the API

2019-05-05 Thread Martin Blais
On Sun, May 5, 2019 at 12:04 AM Zhuoyun Wei wrote: > On Sat, May 4, 2019, at 15:00, Stefano Zacchiroli wrote: > > > Python data classes might come in handy here: > > https://docs.python.org/3/library/dataclasses.html > > I like dataclasses. It has the same usage interface and repr as > namedtuple

Re: @@ syntax in trades

2019-05-05 Thread Martin Blais
I keep a fork of qifparse with some bugfixes under https://github.com/blais/qifparse Works well enough. On Sat, May 4, 2019 at 10:33 AM Alen Šiljak wrote: > Wonderful! That's great news! Thanks a lot for this info. I've downloaded > the PDF versions of a few documents and will read them again d

Re: @@ syntax in trades

2019-05-05 Thread Alen Šiljak
Fantastic! Adding to https://gitlab.com/alensiljak/pta-converters/blob/master/conversion.md to have a look once I get to that stage. On Sunday, 5 May 2019 14:03:51 UTC+2, Martin Blais wrote: > > I keep a fork of qifparse with some bugfixes under > https://github.com/blais/qifparse > Works well

Fwd: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Martin Blais
One often recurring issue is that of new users getting confused about options in included files. I'm contemplating simply disabling them to avoid confusion. Does anyone care for options in included files, or use them for anything useful? (AFAIK they shouldn't be working.) Let me know, --

Re: @@ syntax in trades

2019-05-05 Thread Alen Šiljak
OK, got most of these sorted out. I ran into an issue where the "option booking method" directive was in my options.bean file, which is imported into the file with only import statements. That didn't work and it took a while to figure out that the directive is not being applied at all. I create

Re: Create a balance from the API

2019-05-05 Thread Stefano Zacchiroli
On Sun, May 05, 2019 at 08:02:25AM -0400, Martin Blais wrote: > As such, I'd make all dataclasses frozen... Sure, frozen dataclasses are great, and they would be great and an improvement on the front of default arguments wrt to the current named tuples approach. I'm myself a functional programmer

Re: Fwd: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Stefano Zacchiroli
On Sun, May 05, 2019 at 08:09:30AM -0400, Martin Blais wrote: > One often recurring issue is that of new users getting confused about > options in included files. I'm contemplating simply disabling them to > avoid confusion. Does anyone care for options in included files, or > use them for anythi

Re: Fwd: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Alen Šiljak
This is exactly what I was expecting with the include directive: https://bitbucket.org/blais/beancount/issues/392/booking-method-not-applied-when-used-in#comment-51970529 I find it keeps things simple and opens more doors than it closes. A "selective" include directive is too moody for me. The m

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Alen Šiljak
It is interesting that the option to set the operating currency works from included file, though. That makes it even more confusing. :) -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from i

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread francois PEGORY
According me , I think either : 1) it is possible anywhere and it work as it was put in the main file. Easy to explain , hard to implement. 2) if you put it in a file included, it raise a error. The only question is which directive are reserved for the main file. First thought , include and optio

Re: @@ syntax in trades

2019-05-05 Thread Alen Šiljak
I think I got most of the information with bean-report book.bean holdings --by commodity Some things look a bit weird (a few duplicate account/commodity rows, etc.) but this looks promising. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To un

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Alen Šiljak
While I have not looked at the related source code yet, I'm wondering what is it that makes it hard to implement. My assumption was that include directives would be parsed, the related files concatenated into the end-result: a complete input file. From there on, the actual processing of directi

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Zhuoyun Wei
On Sun, May 5, 2019, at 20:51, francois PEGORY wrote: > According me , I think either : > 1) it is possible anywhere and it work as it was put in the main file. > Easy to explain , hard to implement. > > 2) if you put it in a file included, it raise a error. > The only question is which directive

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Martin Blais
This is what I meant. By "disabling" I meant not silently ignoring, but raise an error. On Sun, May 5, 2019 at 12:26 PM Zhuoyun Wei wrote: > On Sun, May 5, 2019, at 20:51, francois PEGORY wrote: > > According me , I think either : > > 1) it is possible anywhere and it work as it was put in the

Re: Forking on BitBucket

2019-05-05 Thread Alen Šiljak
ah, ok https://confluence.atlassian.com/bitbucket/forking-a-repository-221449527.html -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googleg

Forking on BitBucket

2019-05-05 Thread Alen Šiljak
Hi, I've never forked a project on BitBucket. What is the workflow there? I don't seem to see the option to do something like that. I'd like to submit a patch for ISO 8601 date format in ledger export and learn how the process works, basically. Cheers -- You received this message because you

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Martin Blais
BTW, as a quick note, purely textual include should be doable with a simple wrapper script that invokes the c++ preprocessor frontend. (I can't remember why I didn't implement it as such at the time.) On Sun, May 5, 2019 at 12:30 PM Martin Blais wrote: > This is what I meant. By "disabling" I m

Re: Beancount on Android?

2019-05-05 Thread Alen Šiljak
One more dependency is clang package. The listed ones are all installed via pkg manager, not pip. -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubsc

Queries in Fava

2019-05-05 Thread redstreet0
Each Fava update is a treat! I just used queries in Fava after a long time, and the UI is great. In particular, the ease of being able to rerun a query from "history" after a data file update. One question: is it possible to have perhaps a dropdown menu that contains all the queries in the sou

Re: [Bitbucket] Issue #392: Booking method not applied when used in included file (blais/beancount)

2019-05-05 Thread Stefano Zacchiroli
On Sun, May 05, 2019 at 03:05:28PM -0400, Martin Blais wrote: > BTW, as a quick note, purely textual include should be doable with a simple > wrapper script that invokes the c++ preprocessor frontend. > (I can't remember why I didn't implement it as such at the time.) Yeah, that's what I was refer