Sphene Community Tools

Community

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

Change Language:



AddThis Social Bookmark Button

A Django site.
Profile for Camille Harang

Name Camille Harang
Email Address Reveal this emailaddress
Jabber Idmammique@jabber.org
Website URLhttp://mammique.net
AvatarUsers avatar
Posts12
  • then you win
    Board >> Who's using SCT
    Open content documentaries.
  • Re: Wiki revert
    Board >> General
    Yes it works just like this, my snips are associated in the urls.py

    defaultdict = { 'groupName': 'example' }
    (r'^wiki/', include('sphene.sphwiki.urls'), defaultdict),

    Is it enough?

    Thanks again.

    Camille.
  • Re: Wiki revert
    Board >> General
    It works without MultiHostMiddleware, i tried to activate it to see but it crashes:

    AttributeError at /
    'WSGIRequest' object has no attribute 'user'
    Request Method: GET
    Request URL: http://localhost:8080/
    Exception Type: AttributeError
    Exception Value: 'WSGIRequest' object has no attribute 'user'
    Exception Location: sphenecoll/sphene/community/middleware.py in get_current_user, line 131

    Is it a big deal not to use it ? I don't plan to have MultiHost's anyway ?
  • Re: Wiki revert
    Board >> General
    It works with SPH_HOST_MIDDLEWARE_URLCONF_MAP :-)

    Thank you so much for this work :-)

    I am not using MultiHostMiddleware or communitiy draft, just the lowest level way plugged into my django project, is it not recommended ?

    Thanks again :-)

    Camille.
  • Re: Wiki revert
    Board >> General
    I added the link into the view DiffTable, quite dirt but very usefull there too:

    fromdesc = sph_date( changeStart.edited ) + ' by ' + sph_fullusername( changeStart.editor ) + ' <a href="' + changeStart.get_absolute_editurl() + '">Edit this version</a> ',
    
    todesc = sph_date( changeEnd.edited ) + ' by ' + sph_fullusername( changeEnd.editor ) + ' <a href="' + changeEnd.get_absolute_editurl() + '">Edit this version</a> ',
  • Re: Wiki revert
    Board >> General
    It works if i provide an empty urlconf:

    urlconf = None, #get_current_request().urlconf,

    Is my Django site not properly configured or something worng in the revert variable?

    Camille.
  • Re: Wiki revert
    Board >> General
    Great ! Thank you so much :-) It works well in SCT webiste, and almost in my local configuration, the only problem is that it does not retrieve correctly the edit url link, it seem i get empty string by:

    def get_absolute_editurl(self):
    return reverse( 'sphwiki_editversion',

    Is there any special configuration needed to get reverse() work? If i type it by hand i can edit the previous version.

    Thanks again !

    Camille.
  • Re: Wiki revert
    Board >> General
    Thank you so much :-) I hope i can be close to my computer tonight with SVN, i add my Jabber ID in my profile right now if you want my feedback :-)

    Regards.

    Camille.
  • Re: Wiki revert
    Board >> General
    The good thing about viewing an old source revision and save it later is that we can merge it manually with another itermediate vesion source opened in another window. This can be usefull if mistakes or vandalism is done between other changes... Well it sounds practical to me because it is close to MediaWiki mecanism, but any way sounds good as long it is possible. We could also copy/paste the diff samples to merge different versions but sometimes one paragraph is made of many diffs wich is laborious, and selecting the diff for copy/paste is not easy because it selects table rows numbers and left columns that have to be removed manually :-/

    What do you think? :-)

    Regards.

    Camille.
  • Re: Wiki revert
    Board >> General
    Wowow, fast reply :-) Thanks. I must say i have troubles to manage my time for development/learning Django and SCT with pieces of uncertain code everywhere, i would appreciate if you could relieve me about this new obstacle that would obviously take more than 20mn for me :-) If not, i will have to do it anyway. BTW, what dou you think about a "edit this revision" in the diff history, load the old content in the editor, then just have to save to revert it ? With a user message warning that the user is not working on actual version ?

    Thanks again.

    Camille.


Powered by Sphene Community Tools