lektor / lektor-atom

Lektor Atom plugin.
30 stars 13 forks source link

AttributeError: 'Page' object has no attribute 'id' #9

Closed severen closed 5 years ago

severen commented 7 years ago

Occurs when building both my own website and @singingwolfboy's using both latest master checkout on Python 2 and 3 or the latest release on both Python 2 and 3.

skorokithakis commented 7 years ago

One of your fields is invalid.

goanpeca commented 6 years ago

Is this a valid issue @severen @skorokithakis ?

skorokithakis commented 6 years ago

I'm sorry, I don't remember now, but I think I had run into the same error and discovered I had an invalid field.

goanpeca commented 6 years ago

Thanks @skorokithakis


@severen any chance of getting a reproducible example?

severen commented 6 years ago

I opened this issue so long ago that I honestly don't even remember what I used this project for. So no, probably not sorry :p

eigengrau commented 6 years ago

This seems to arise from a typo in the error reporting code (line 153) when a feed references a non-existing field, where it should be _id, not id. Additionally, it looks like when not within a templating context, one can only access record fields using foo['_id'], not via attribute access.