| Name | Camille Harang |
|---|---|
| Email Address | Reveal this emailaddress |
| Jabber Id | mammique@jabber.org |
| Website URL | http://mammique.net |
| Avatar | ![]() |
| Posts | 12 |
-
- 2008-02-04 11:26:44
- then you win
- Board >> Who's using SCT
- Open content documentaries.
-
- 2007-12-22 16:17:11
- 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.
-
- 2007-12-22 15:13:35
- 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 ?
-
- 2007-12-22 14:29:19
- 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.
-
- 2007-12-22 00:14:44
- 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> ',
-
- 2007-12-22 00:04:45
- 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.
-
- 2007-12-21 23:58:50
- 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.
-
- 2007-12-21 13:37:26
- 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.
-
- 2007-12-21 11:59:10
- 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.
-
- 2007-12-21 10:18:13
- 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.

