Profile for manolito
| Name | manolito |
|---|---|
| Email Address | Reveal this emailaddress |
| Avatar | |
| Posts | 3 |
-
- 2008-11-22 17:55:43
- 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 changedrequest['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 ---
-
- 2008-11-06 14:24:46
- Re: BoostCon
- Board >> Who's using SCT
- Hello,
Just to tell you that the wiki doesn't work in your site.
Best regards,
manolito
-
- 2008-09-30 12:39:40
- 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


