Giter Site home page Giter Site logo

Problem with notmuch backend about i3pystatus HOT 4 CLOSED

teto avatar teto commented on August 20, 2024
Problem with notmuch backend

from i3pystatus.

Comments (4)

enkore avatar enkore commented on August 20, 2024

I don't quite see how or why this happens.

>>> class X:
    @property
    def y(self):
        return 1
>>> l = [X(), X(), X()]
>>> sum(map(lambda x: x.y, l))
3

Also note that

>>> class Y:
    @property
    def y(self):
        return
>>> l = [X(), Y()]
>>> sum(map(lambda x: x.y, l))
Traceback (most recent call last):
  File "<pyshell#23>", line 1, in <module>
sum(map(lambda x: x.y, l))
TypeError: unsupported operand type(s) for +: 'int' and 'NoneType'

I tested and validated this with i3pystatus.SettingsBase, too. I'd really surprised me if that would've been the issue, anyway, it doesn't fiddle with objects in this regard.

from i3pystatus.

enkore avatar enkore commented on August 20, 2024

Oh well. Now I see it in plain view :)

status.register("mail",
backends=[ notmuchmail.Notmuch ],

You'll need to do something like this:

status.register("mail",
backends=[notmuchmail.Notmuch(db_path="/path/to/some/notmuch/db")],
...

If there are any questions left, please ask :)

from i3pystatus.

teto avatar teto commented on August 20, 2024

Works good thank you ! if you want I can write a patch to parse notmuch config so that the parameter becomes optional.

from i3pystatus.

enkore avatar enkore commented on August 20, 2024

This would be great, thanks! :)

On 27.08.2014 18:45, Matthieu Coudron wrote:

Works good thank you ! if you want I can write a patch to parse notmuch
config so that the parameter becomes optional.


Reply to this email directly or view it on GitHub
#101 (comment).

from i3pystatus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.