Sphene Community Tools

Community

Copyright © 2007-2009 by Herbert Poul
You are not logged in.
Login
Register

Change Language:



AddThis Social Bookmark Button

A Django site.

Powered by Sphene Community Tools

Profile for manolito



Name manolito
Email Address Reveal this emailaddress
AvatarUsers avatar
Posts3
  • Error "WSGIRequest' object is unsubscriptable" with its solution
    Board >> General
    Hi,

    I found this error trying to change the Thread Options (Make Sticky, Lock Thread, Move Thread)

    I found and applied the solution at this address: http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Removeddictionaryaccesstorequestobject

    The problem was the function 'options' in the file communitytools/sphenecoll/sphene/sphboard/views.py

    I juste changed
    request['cmd'] by request.REQUEST['cmd']

    The new version is:
    def options(request, thread_id, group = None):
        thread = Post.objects.get( pk = thread_id )
    
        if request.REQUEST['cmd'] == 'makeSticky':
            thread.set_sticky(True)
        elif request.REQUEST['cmd'] == 'removeSticky':
            thread.set_sticky(False)
        elif request.REQUEST['cmd'] == 'toggleClosed':
            thread.set_closed(not thread.is_closed())
        elif request.REQUEST['cmd'] == 'modifytags':
            from tagging.models import Tag
            Tag.objects.update_tags( thread.get_threadinformation(), [request.POST['tags'], ] )
    
        thread.save()
        
        return HttpResponseRedirect( '../../thread/%s/' % thread.id )
    


    Kindly regards

    --- Last Edited by manolito at 2008-11-22 17:56:25 ---
  • Re: BoostCon
    Board >> Who's using SCT
    Hello,

    Just to tell you that the wiki doesn't work in your site.

    Best regards,

    manolito
  • Support for django 1.0 : form_for_model to ModelForm
    Board >> News Forum
    Hi,

    I just installed the communitydraft application and the attachment didn't work.

    I changed some lines dorm the file communitytools/sphenecoll/sphene/sphwiki/views.py replacing
    the form_for_model by the ModelForm and it works :o)

    The function changed is attachmentEdit.

    I put the file in atachment.

    Best regards,

    manolito


Powered by Sphene Community Tools