Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_slice_from_storage - NotImplementedError() #39

Closed
robintema opened this issue Feb 24, 2014 · 3 comments
Closed

get_slice_from_storage - NotImplementedError() #39

robintema opened this issue Feb 24, 2014 · 3 comments

Comments

@robintema
Copy link

Hi,
I try to build a notification system and I want to use feedly for it.
I have created a simple demo to test how the library works. The use case looks like this:
love = Love()
feed = MyNotificationFeedly()
feed.add_love(love)

I have followed this example: https://feedly.readthedocs.org/en/latest/notification_systems.html

However add_love() throws an exception which is raised in feedly/storage/base.py:270

I have checked the code and it seems that the get_slice_from_storage() is not implemented. I was just wondering how does the notification system work on Fashiolista if a such simple demo is not working for me locally.
Could you please help me?

@tschellenbach
Copy link
Owner

Hi!

The code is pointing to the base storage implementation (expected would be Redis or Cassandra)
It seems there is a typo in the notification tutorial.
Instead of subclassing NotificationFeed, please subclass RedisNotificationFeed.
(Basically the same thing, except that it's setup to use Redis as a storage backend.)

We should raise a better error message when using Feedly like this.

PS.
If I may ask, what are you building using Feedly?

@tschellenbach
Copy link
Owner

I've added issues #40 and #41

@robintema
Copy link
Author

Thanks for the quick response. I have to build a facebook like notification system for a social learning site.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants