Wiktor Grêbla napisa³(a): I've an impression that this message was not delivered to the list, although google finds it...
> I was trying to add an rss feed with blog comments, and I'm mostly done, > here are some snippets i pasted on irc this morning: > > http://paste.e-scribe.com/934/ > > The problem is that i'd like to have unique_id for each item (comments > don't have unique links, as they're "attached" to the blog entries). > > As far as I see, unique_id is set to the link in the > syndication/feeds.py, get_feed() function, so what comes to my mind is > to use low-level feedgenerator, which allows to set unique_id. The > example in the docs looks quite straightforward, but something is > missing (for me), how should i use it? How should i return generated > feed? Or maybe there is a better (simpler, more correct) way? > > item_link() could simply return some meaningless (unique) link, or > even better, return a correct link to the entry/article with an > additional part (comment id) and then (with url.rewrite) I could > ignore the additional part, but maybe there is a better way? > > (An example how to use feedgenerator would be appreciated :)) Actually, as I found out later reading the code, using feedgenerator is not at all difficult: http://paste.e-scribe.com/936/ Regards, W. -- Talkers are no good doers. http://greblus.go.pl --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---