jordan [Tue, 19 Apr 2011 19:38:32 +0000 (19:38 +0000)]
bugfix, the images in the preview mode of the WMD editor were not displayed, because the site script URL was appended directly to the image src, without a matter if the image was located on a remote server or not. Now we check if the image src begins with http:// or https://
jordan [Tue, 19 Apr 2011 15:59:02 +0000 (15:59 +0000)]
creating the site key setting that wraps the OSQA installation key, also creating the function that generates that site key, the format of that key is abcd-1234-efgh-t3st and it is unique for every installation, has to be kept private
jordan [Mon, 18 Apr 2011 17:28:53 +0000 (17:28 +0000)]
enabling the CSRF protection middleware and adding the {% csrf_token %} tag to the forms, now OSQA is protected from Cross Site Request Forgery attacks
jordan [Fri, 15 Apr 2011 13:32:30 +0000 (13:32 +0000)]
OSQA-606, we convert the node score and the NECROMANCER_UP_VOTES setting to Integer objects. This way we're sure that the both variables are of the same type.
jordan [Thu, 14 Apr 2011 21:51:36 +0000 (21:51 +0000)]
notifications improvement, now we make sure that the username has passed through the smart_unicode function and the returned object is a safe unicode string. This used to cause some trouble with the new comment posted notifications. Also fixing a small bug in the accepted answer notifications. The Question object shouldn't go through the smart_str function, then the Question object gets converted to a Unicode string and this caused trouble with the URL reverse process.
jordan [Thu, 14 Apr 2011 20:43:44 +0000 (20:43 +0000)]
Changing the way we get the User subscribed URL address, before we used the @models.permalink decorator, now we use directly the reverse URL resolver and we make sure that the username is filtered using the smart_unicode function. This used to cause some trouble with Unicode usernames when sending the daily digest.
jordan [Wed, 13 Apr 2011 22:32:02 +0000 (22:32 +0000)]
removing the smart_str function from the html.objelink function argument, it causes trouble as this argument is also used to call the get_absolute_url property
jordan [Wed, 13 Apr 2011 17:46:39 +0000 (17:46 +0000)]
OSQA-650, force unicode when using the __unicode__ method in the Tags model and make the Questions tag filtration using the tag id rather than the tag name. This is likely to generate some encoding issues, if we use the tag ID it would be more stable.
jordan [Mon, 11 Apr 2011 18:43:15 +0000 (18:43 +0000)]
OSQA-160, now instead of using the Python date library strftime function we use the Django dateformat.format utility which provides better support for localized dates. The pretext word 'at' that has been replaced with a single comma.
jordan [Mon, 11 Apr 2011 16:25:09 +0000 (16:25 +0000)]
OSQA-203, the white background color of the top menu has been removed, as it is completely unneeded. It can only cause issues, like this one. Also it irritates when the user decides to change the body background color, the top menu stays white then. That's why we just remove it.
jordan [Sun, 10 Apr 2011 21:16:46 +0000 (21:16 +0000)]
OSQA-561, adding a separate view for the sitemap pages and creating a section index, where all other sitemap locations are included. Now the OSQA Questions Sitemap has a page limit of 250 items per page. When there are less items per page the chance for issues to appear is much smaller.
jordan [Sat, 9 Apr 2011 20:25:53 +0000 (20:25 +0000)]
#OSQA-581, adding the reset cache count funtionality to the maintaindb command. Now the site administrators are able to flush the cached count data in case something gets messy.
jordan [Sat, 9 Apr 2011 19:29:45 +0000 (19:29 +0000)]
OSQA-538, fixing the IE caching issues, now we append the Nocache random number to the AJAX query, rather than to the whole JavaScript file. Also changed a bit the vote_post logic to ensure that the increment of the node reputation will happen only by one (in the previous implementation increment by 2 or -2 was also possible).
jordan [Wed, 6 Apr 2011 16:51:31 +0000 (16:51 +0000)]
SPLUNK-196, making filtration to the summary and headline properties of the Node model, removing multiple spaces and new lines breaks, we don't need them and they cause trouble to the title attribute of the <a> tag.
jordan [Wed, 6 Apr 2011 14:53:34 +0000 (14:53 +0000)]
SPLUNK-198. Long usernames used to cause trouble with the UI. Every username length should be reasonable, but some users use radiculously long usernames. For such cases two new settings have been added to the Users Set. TRUNCATE_LONG_USERNAMES and TRUNCATE_USERNAMES_LONGER_THAN. This way we provide an easy interface that lets the admins specify whether the long usernames should be truncated and after which character that should happen.
jordan [Mon, 28 Mar 2011 21:35:11 +0000 (21:35 +0000)]
#OSQA-574, a bit of backwards compatibility, importing the with_statements from the __future__ package on the top of the files. It used to cause a bit of trouble when in a try-except block.
jordan [Mon, 28 Mar 2011 15:27:41 +0000 (15:27 +0000)]
#SPLUNK-121, fixing the long titles issue, added an overflow: hidden; property to the H1 style. Now the long titles cannot get out of the main container. Tested under Chrome and Firefox.
jordan [Sun, 27 Mar 2011 21:10:14 +0000 (21:10 +0000)]
OSQA-533, fixed some W3C validation errors: closing <img /> tags, removed some unnecessary characters from the By-SA license image, closing the <meta /> tags, etc. There is still one validation error with the autocomplete attribute.
jordan [Sun, 27 Mar 2011 16:25:04 +0000 (16:25 +0000)]
Changing the statement that checks if the content has to be deleted/hidden. We should use >= instead of ==. Let's imagine that firstly the admin configured OSQA to delete Answers that have been flagged 10 times, the answer has been flagged 8 times and then the admin changes that setting to 5 times. What happens with the answer that has been flagged 8 times? It will never be automatically deleted by the system.
jordan [Sun, 27 Mar 2011 11:33:52 +0000 (11:33 +0000)]
#OSQA-544, words in cyrillic should also be counted, adding the А-Я (all the letters from the cyrillic alphabet) intervals into the regular expression.
jordan [Thu, 24 Mar 2011 13:59:14 +0000 (13:59 +0000)]
#SPLUNK-91, modifying the permanent link tool, adding an option to copy to the clipboard if the users clicks the Ok button and just closing the AJAX popup if the user is clicking the Cancel button.
jordan [Wed, 23 Mar 2011 23:24:20 +0000 (23:24 +0000)]
#OSQA-388, changing a bit the UI of the award points for an answer tool, adding text field for the input and a bit more text information about the purpose of the tool.
jordan [Sat, 19 Mar 2011 09:14:34 +0000 (09:14 +0000)]
#OSQAAWS-69, It was not a good idea to make the filtration for the moderation module directly from the Node and Tag managers. This way the moderation module depends on the Modules API and becomes unstable.
jordan [Fri, 18 Mar 2011 18:09:35 +0000 (18:09 +0000)]
#OSQA-610, the used_count of the firstly added tags is now updated properly. The problem was the Tag ActiveManager which had been set as both objects and active manager. Now the objects Manager is using the standart Django Model Manager. Also data migration has been added in order to fix the used_count for previously added tags.
jordan [Wed, 16 Mar 2011 20:30:26 +0000 (20:30 +0000)]
#OSQA-603, removing the previously added in commit 857 call to the save method. It turned out that the issue is more cache related and the badge calculation works fine.