Activity for ssph

  • ssph ssph posted a comment on ticket #393

    Now that the anchors survive a round trip with standard loading and dumping, how would I preserve them with custom from_yaml() and to_yaml() methods: import sys import ruamel.yaml class B: def __init__(self, a=None, b=None): self.a = a self.b = b self.c = a*b @classmethod def from_yaml(cls, constructor, node): data = dict(constructor.construct_pairs(node)) return cls(**data) @classmethod def to_yaml(cls, representer, node): data = {'a': node.a, 'b': node.b} return representer.represent_mapping( getattr(cls,...

  • ssph ssph posted a comment on ticket #393

    Thank you for that really fast fix!! Because you mentioned, that attribute used, so I looked up its name. It is _yaml_anchor, isn't it (can this be mentioned in the documentation?). I guess, the changes are slim to use this attribute in your code, nevertheless I wonder, if it would not be better to start it with a double underscore?

  • ssph ssph posted a comment on ticket #394

    Thanks for that really fast fix!! It works for my code which uses attr.s, but I noticed, that it is not working for this: import ruamel.yaml s = """ a: b: !BClass c: 1 """ class BClass: def __init__(self): self.c = c self.c2 = c*2 yaml = ruamel.yaml.YAML() yaml.register_class(BClass) yaml.load(s) y['a']['b'].c2 or any other class relying on __init__(). I also did not stumble upon this behaviour mentioned in the documentation. Have I missed it?

  • ssph ssph created ticket #394

    attrs and ruamel.yaml

  • ssph ssph posted a comment on ticket #393

    Thanks. If you send me a patch/diff, I am happy to test it with my application.

  • ssph ssph posted a comment on ticket #393

    Ouch! Not just a past error of the code, but also some write-up error. Sorry! Now let us add a tag: and the code block following should become: Now let us register the BClass: import sys import ruamel.yaml class BClass: def __init__(self): self.c = c s = """ a: b: &B !BClass c: 1 d: e: *B """ yaml = ruamel.yaml.YAML() yaml.register_class(BClass) y = yaml.load(s) yaml.dump(y, sys.stdout) This should give the output mentioned.

  • ssph ssph created ticket #393

    &anchor name lost, if !tag specified

  • ssph ssph posted a comment on ticket #103

    I use 0.7.0 and have the same problem.

  • ssph ssph posted a comment on ticket #1004

    You are right, that's what I have done. But now I don't have any header (or just En...). An icon showing would still be nice.

  • ssph ssph created ticket #1004

    Icon as column header in Thunderbird's thread pane

  • ssph ssph posted a comment on ticket #977

    The problem is, that I could not find any citation ... The only post I found is here: https://marc.info/?l=gnupg-devel&m=113345633323155 Here Werner said: 0 = success 1 = processing error - the command line was a correct command, but GnuPG ran into some sort of problems while trying to complete the task I general any error due to the actual data processing. 2 = command error - GnuPG could not start because it could not correctly interpret the command line ... or any other system error like missing...

  • ssph ssph posted a comment on ticket #977

    Very interesting. Then it looks like this is a bug in GnuPG... Just out of curiosity, could you please provide a link where Werner makes this statement?

  • ssph ssph posted a comment on ticket #977

    Thanks Patrick for looking into it. I am a bit surprised, that it's not possible to catch errors thrown by gpg. The man page states "The program returns 0 if everything was fine, 1 if at least a signature was bad, and other error codes for fatal errors." I would have thought checking the error code for anything but 0 or 1 would tell Enigmail that something went wrong. Then it can display gpg's output (and leave it to the user to figure out what's wrong). But I have neither written Enigmail nor gpg...

  • ssph ssph created ticket #977

    Show error message of gnupg

  • ssph ssph posted a comment on ticket #18

    This is the related bug at Thunderbird's bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=523544

  • ssph ssph posted a comment on ticket #18

    You are right. I don't understand why all the buttons but the Delete button are hidden when selecting multiple messages. I use the Junk button quite often but have to revert to the keyboard shortcut when selecting multiple messages. I believe this is more a Thunderbird bug. Maybe an additional add-on which shows these buttons when multiple messages are selected?

  • ssph ssph posted a comment on ticket #18

    Hi Onno, Thanks. At first, I could not find the new item in the "Forward" button, where I was expecting it. After reading the configuration option I replaced the "Forward" button with the "Forward As" in the message pane and voilĂ , here it was. I have to say, adding the "Redirect" item to "Forward As" makes more sense in a logical sense. I also like that it's configurable and there is still the "Redirect" button available for those who want a dedicated button. The only drawback now is, that I have...

  • ssph ssph created ticket #18

    Combine Forward and Redirect buttons

  • Stephan Helma Stephan Helma posted a comment on discussion Data Crow user questions

    When I started the server today, everything worked as it should be. I have not changed...

  • Stephan Helma Stephan Helma posted a comment on discussion Data Crow user questions

    I just upgraded from dc-server-4.1.0 to dc-server-4.2.0. In the previous versions...

  • Stephan Helma Stephan Helma posted a comment on ticket #1975

    Hi Jan, Thank you for your answer. Can you please tell me in which version this bug...

1