Re: Comments framework
On 9/13/06, Guillermo Fernandez Castellanos > My questions are: > - Did someone use it in a project accesible to others so I can get > inspired from his example? Jeff made the source code behind his lost-theories.com site available freely, and IIRC it uses the registered comments system. See here for details: http://www2.jeffcroft.com/2006/jun/06/lost-theories-with-source-code/ -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Comments framework
Yup, Jeff's code uses it, and I'm using it, but I'd be the first to admit I don't really know what's going on. I'd love to implement the Karma functions, but don't have a clue. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Comments framework
Guillermo Fernandez Castellanos wrote: > I am thinking of using the comments framework for a project, although > besides the FreeComment there's no real documentation about it that I > have found besides the source. This might help: http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment -Dave --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Comments framework
Guillermo, here have many projects created with Django that you can download and know it: http://code.google.com/hosting/search?q=label:django http://code.djangoproject.com/ 2006/9/13, DavidA <[EMAIL PROTECTED]>: > > > Guillermo Fernandez Castellanos wrote: > > I am thinking of using the comments framework for a project, although > > besides the FreeComment there's no real documentation about it that I > > have found besides the source. > > This might help: > http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment > > -Dave > > > > > -- José Mário de Mário ou Marinho dê uma olhada no meu delicioso: http://del.icio.us/marinho no meu fliqueiro: http://www.flickr.com/photos/marinho/ ou no meu múltiplo http://josemario.multiply.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Comments framework
Hi, Thanks for all your answers. I have found them all useful. I am studying right now the code and the Jeff Lost-Theories code (and will look fo other examples in other projects). It is indeed a very helpful example! I will try to write a bit about what I find. Baxter, concerning the Karma functions, and as far as I could get it, there is views that will automagically change the karma of each comment. Those are located in django/contrib/comments/views/karma.py and will use the urls.py in django/contrib/comments/urls/comments.py. It seems that you simply have to define the comments/karma_vote_accepted.html template, and add karma/vote/(?P\d+)/(?Pup|down)/ links to the comments in order to add/take out karma points. In the comments object there's a get_karma_total() that will allow you to display the total karma. Actualy, the Comment framework seems to be really nice and complete, as well as easy to use. Many thanks to the Django community! G On 9/14/06, Mario Brandao <[EMAIL PROTECTED]> wrote: > > Guillermo, > > here have many projects created with Django that you can download and know it: > > http://code.google.com/hosting/search?q=label:django > http://code.djangoproject.com/ > > 2006/9/13, DavidA <[EMAIL PROTECTED]>: > > > > > > Guillermo Fernandez Castellanos wrote: > > > I am thinking of using the comments framework for a project, although > > > besides the FreeComment there's no real documentation about it that I > > > have found besides the source. > > > > This might help: > > http://www.b-list.org/weblog/2006/07/16/django-tips-hacking-freecomment > > > > -Dave > > > > > > > > > > > > -- > José Mário de Mário ou Marinho > > dê uma olhada no meu delicioso: > http://del.icio.us/marinho > > no meu fliqueiro: > http://www.flickr.com/photos/marinho/ > > ou no meu múltiplo > http://josemario.multiply.com > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Comments Framework and Authentication
Maybe a little brevity is in order - how do I grant temporary privileges to a user to delete a comment rather than keeping that power fully in the hands of a comments moderator? - Tim On Jan 3, 7:23 pm, Tim wrote: > Hi all - > > I am having a bit of difficulty with the Django comments framework - > more specifically, dealing with comment modifications by site users as > well as moderators. > > Basically, I have a site in which users can post comments (using the > out-of-the-box commenting framework). I'd like to have a flexible > comment deletion environment in which comments could be deleted by the > user associated with the model attached to the comment or the original > poster of the comment - e.g., for a blog posting, I'd like the blog > writer to be able to delete inappropriate or offensive comments, but > I'd also like the commenter to be able to delete a comment they made > if they had second thoughts about it. > > The commenting framework supports basic permissions for a user to > moderate comments via the "perms.comment.can_delete" value. However, I > obviously don't want to grant this permission to every user; this > would mean a malicious user could just delete comments at will whether > they belonged to them or not. I believe it's possible to do all the > logic to find out if a user is allowed to delete a comment in a custom > view and then forward the request to the official deletion view - but > then I still run into the check if the user is authorized to delete > comments or not. I am really loath to change the core commenting code > itself. Is there a better way to do it? > > Here's a quickly hacked together template that kind of shows what I'm > trying to do (along with all my debugging junk): > > > {% if perms.comment.can_delete %} > You can delete comments. > {% else %} > You cannot delete comments. > {% endif %} > {% ifequal comment.user_id user_profile_id %} > ...display a button to delete... > {% endifequal %} > {% if my_page %} > ...display a button to delete... > {% endif %} > > > - Tim --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Comments Framework and Authentication
OK - this was more or less resolved by following the advice here: http://tinyurl.com/63rd76 This allowed me to essentially check for valid comment deletion permissions before forwarding to the main comment delete view. The only difference was my wrapper view; I checked if the currently-logged-in user was the commenter, commentee or staff before forwarding to the view. On Jan 5, 11:01 am, Tim wrote: > Maybe a little brevity is in order - how do I grant temporary > privileges to a user to delete a comment rather than keeping that > power fully in the hands of a comments moderator? > > - Tim > > On Jan 3, 7:23 pm, Tim wrote: > > > Hi all - > > > I am having a bit of difficulty with the Django comments framework - > > more specifically, dealing with comment modifications by site users as > > well as moderators. > > > Basically, I have a site in which users can post comments (using the > > out-of-the-box commenting framework). I'd like to have a flexible > > comment deletion environment in which comments could be deleted by the > > user associated with the model attached to the comment or the original > > poster of the comment - e.g., for a blog posting, I'd like the blog > > writer to be able to delete inappropriate or offensive comments, but > > I'd also like the commenter to be able to delete a comment they made > > if they had second thoughts about it. > > > The commenting framework supports basic permissions for a user to > > moderate comments via the "perms.comment.can_delete" value. However, I > > obviously don't want to grant this permission to every user; this > > would mean a malicious user could just delete comments at will whether > > they belonged to them or not. I believe it's possible to do all the > > logic to find out if a user is allowed to delete a comment in a custom > > view and then forward the request to the official deletion view - but > > then I still run into the check if the user is authorized to delete > > comments or not. I am really loath to change the core commenting code > > itself. Is there a better way to do it? > > > Here's a quickly hacked together template that kind of shows what I'm > > trying to do (along with all my debugging junk): > > > > > {% if perms.comment.can_delete %} > > You can delete comments. > > {% else %} > > You cannot delete comments. > > {% endif %} > > {% ifequal comment.user_id user_profile_id %} > > ...display a button to delete... > > {% endifequal %} > > {% if my_page %} > > ...display a button to delete... > > {% endif %} > > > > > - Tim --~--~-~--~~~---~--~~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~--~~~~--~~--~--~---
Re: Comments framework in development?
Thanks, guys -- developer list it is --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Comments framework in development?
On 12/23/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: There might be some work on the comment views to make them use the newforms framework, but other than that, I can't say I know of any work that is planned. I know that the idea of "pluggable" comment models keeps coming up (where we'd ship a default model, but you could define your own and there would be a setting to tell the comments app which model to actually use -- kind of like what we already do with AUTH_PROFILE_MODULE). I don't know if anyone's actually planning to implement it, though. -- "May the forces of evil become confused on the way to your house." -- George Carlin --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Comments framework in development?
On 12/21/06, ringemup <[EMAIL PROTECTED]> wrote: Hi folks -- Before I start seriously hacking the comments framework or implementing a replacement, I was wondering if anyone knows if any further work is being done on the comments framework, and if so, what's planned, or where I could find any more info? There might be some work on the comment views to make them use the newforms framework, but other than that, I can't say I know of any work that is planned. If you have some specific ideas on how to improve the comments package, I would suggest raising them on the django-developers mailing list. That's the best place to get feedback on any changes you want to make, and it is also the best place to find out if there is anyone harboring plans for modification to the comments package. Yours, Russ Magee %-) --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Comments framework in development?
On 21-Dec-06, at 2:09 AM, ringemup wrote: Before I start seriously hacking the comments framework or implementing a replacement, I was wondering if anyone knows if any further work is being done on the comments framework, and if so, what's planned, or where I could find any more info? check the django devel list -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---