Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 June 22, 2010 01:48:57

T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Weekly rss feed


Hello all, i tried searching for a solution to this but didn't find
it. If it's answered somewhere, please point me in the right
direction :)

I was wondering how to create a weekly feed for django. Lets say i
have a table of objects that gets added to all week long. I'd like to
allow people to subscribe to a feed that would give a single update
with all items that were added that week. Since the client doesn't
send anything about when it last checked for updates, it's hard to
determine if the requesting client needs to be given an update or not.

With a podcast or blog, you just post the new item each week and it
works fine, but for something that needs to pool updates for a given
time range is not working out.

Is there a common way to do this?

Thanks

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 June 22, 2010 02:17:02

Andy M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Weekly rss feed


On 2010-06-21, at 5:48 PM, TheIvIaxx wrote:
> I was wondering how to create a weekly feed for django. Lets say i
> have a table of objects that gets added to all week long. I'd like to
> allow people to subscribe to a feed that would give a single update
> with all items that were added that week. Since the client doesn't
> send anything about when it last checked for updates, it's hard to
> determine if the requesting client needs to be given an update or not.

A few points:

- RSS readers keep track of all the things that have been read and don't
display duplicates, so I don't really see a need for doing this anyway

- You maybe want a script that runs once a week and produces a summary post of
all the things entered that week, but that just gives you one item.

- Or you just do a query that specifies the time range, eg: filter and only
show posts in the last seven days.
--
Andy McKay, @andymckay
Django Consulting, Training and Support

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 June 22, 2010 05:56:34

T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Weekly rss feed


The problem with the first is that users would get a bunch of single
items whenever they were added to the DB. I need to give them a
digest of what happened that week. I had thought of the range idea,
but then you're hitting the DB every hour all week for a single update
which doesn't sound correct. So i think i'll have a cron task just
update a field in a table each week that the actual Feed view will
pull from. It's still a db hit, but a very simple one.

On Jun 21, 6:15 pm, Andy McKay <a...@clearwind.ca> wrote:
> On 2010-06-21, at 5:48 PM, TheIvIaxx wrote:
>
> > I was wondering how to create a weekly feed for django.  Lets say i
> > have a table of objects that gets added to all week long.  I'd like to
> > allow people to subscribe to a feed that would give a single update
> > with all items that were added that week.  Since the client doesn't
> > send anything about when it last checked for updates, it's hard to
> > determine if the requesting client needs to be given an update or not.
>
> A few points:
>
> - RSS readers keep track of all the things that have been read and don't
> display duplicates, so I don't really see a need for doing this anyway
>
> - You maybe want a script that runs once a week and produces a summary post
> of all the things entered that week, but that just gives you one item.
>
> - Or you just do a query that specifies the time range, eg: filter and only
> show posts in the last seven days.
> --
>   Andy McKay, @andymckay
>   Django Consulting, Training and Support

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 15th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support