Switch branches/tags
Commits on Aug 31, 2010
  1. Updating locale submodule.

    James Socol committed Aug 31, 2010
Commits on Aug 27, 2010
  1. [590776] LocaleURLMiddleware's setting of a thread-local prefixer is …

    erikrose committed with Paul Craciunoiu Aug 27, 2010
    …now reversed when the request ends, removing one source of apparently random test failures. A short book follows:
    * Make LocaleURLMiddleware clean up after itself: clear the thread-local prefixer variable that it sets before the request. Tests can now run in any order without the thread-local setting of one influencing the next. This also uncovers a lot of buggy tests which were mistakenly depending on the work of previous ones. Much of the rest of this changeset is toward fixing these.... A good test to compare before and after this commit is `test_json_callback_validation`. Run it alone, and LocaleMiddleware tosses us a 301 because we don't have a locale prefix set. Run it in concert with other tests, and somebody else sets the thread-local for it.
    * Added `LocalizingClient`, which provides the functionality of django.test.client.Client but implicitly prepends a locale code to anything you request. This saves dodging the initial 301 that LocaleURLMiddleware returns in response to an un-prepended request. It also makes "priming" the middleware by doing an initial arbitrary request unnecessary (and ineffective, since the middleware no longer leaks state). Removed all instances of such priming.
    * Switched many tests to use `LocalizingClient`. Some uses of plain `Client` remain, but those are correct, since they test things like the middleware's 301s.
    * Renamed `set_url_prefix` and `get_url_prefix` to better reflect their purpose: they hold Prefixers, not prefixes.
    * Added a `force_locale` kwarg to `sumo.urlresolvers.reverse()`, which forces the same default locale as would normally be used by the middleware to be prepended onto the result, even if there is no prefixer set. This is useful when you need to get a reversed URL against which to compare a 301's Location in a test.
    * Moved `split_path()` out of `Prefixer`, since it needs no instance state and I needed it in `LocalizingClient`.
    * `Prefixer` can now be instantiated without a request, in which case it defaults to a fairly blank one and returns results largely determined by `settings.LANGUAGE_CODE`.
    * Fixed a gabillion other tests. I like to think I understood each one's intent before causing it to pass, but extra eyes are certainly welcome.
    * Fixed some pyflakes violations: semicolons, whitespace, unused imports, etc.
  2. [bug 584577] Tagged question feeds

    rlr committed Aug 27, 2010
Commits on Aug 25, 2010
  1. [bug 589004] Fix typo in webtrends code.

    James Socol committed Aug 25, 2010
Commits on Aug 24, 2010
  1. Add a vendor.rst doc.

    James Socol committed Aug 24, 2010
  2. [Bug 567960] Add vendor library.

    James Socol committed Aug 12, 2010
  3. [588228] Force num_voted to 0 if None or ''

    Paul Craciunoiu committed Aug 17, 2010
  4. Fixing bug 589902 to add new uservoice link for mobile

    Cheng Wang committed with Paul Craciunoiu Aug 23, 2010
Commits on Aug 23, 2010
  1. Upgrade jQuery UI to 1.8.4 and switch to a slimmer, custom build.

    erikrose committed Aug 10, 2010
    * Removed workaround for
    * Tweaked CSS to account for jQuery UI's new behavior of putting autocomplete menus just inside the </body>.
    * Deleted a spinner that I used to see but which apparently is never used in the new jQuery UI.
    * Inherited fixes for a big pile of autocomplete UI bugs:,,
Commits on Aug 21, 2010
  1. [586330] Pin celery to master

    Paul Craciunoiu committed Aug 20, 2010
  2. Pin py-wikimarkup to the latest revision compatible with the developm…

    Paul Craciunoiu committed Aug 21, 2010
    …ent branch
  3. [588994] Make Threads keep track of their forums and update their las…

    erikrose committed Aug 20, 2010
    …t posts when a thread is moved. Keep forums from evaporating when their last posts are moved.
    Also move test_delete_last_and_only_post_in_thread into ThreadModelTestCase, since it tests the Thread model.
Commits on Aug 20, 2010
  1. [585976] jQuery.fn.numericInput|wrapDeleteInput|ajaxSubmitInput now b…

    Paul Craciunoiu committed Aug 10, 2010
    …ail when called on empty jQuery collection.
Commits on Aug 19, 2010
  1. [595029] Cache solution.question to avoid a db lookup in build_soluti…

    Paul Craciunoiu committed Aug 17, 2010
  2. [588677] Undo attempts to fix sphinx.conf because they break Hudson. …

    Paul Craciunoiu committed Aug 19, 2010
  3. [588677] Fix sphinx conf to use the proper python. (2nd attempt with …

    Paul Craciunoiu committed Aug 19, 2010
    …suggestion from Shyam)
  4. [588677] Fix sphinx conf to use the proper python.

    Paul Craciunoiu committed Aug 19, 2010
  5. [Bug 582131] Implemented post preview for:

    rlr committed Aug 14, 2010
    * New forum thread
    * Forum reply (new and edit)
    * Answer (new and edit)
Commits on Aug 17, 2010
  1. [583106] Introduce 2 new permissions--view_in_forum and post_in_forum…

    erikrose committed Aug 11, 2010
    …--making it possible to have hidden-to-the-public and read-only forums.
    A forum not having one of the new permissions defined on it via django-authority is considered to grant that permission to the world. (The auth backends we're using have no concept of granting a permission to the world.)
  2. Factor the lookup triad resolution out of has_perm_or_owns_or_403() s…

    erikrose committed Aug 11, 2010
    …o it's easier to follow.
Commits on Aug 16, 2010
  1. [587709] Checking in Cheng's changes to the AAQ form.

    Paul Craciunoiu committed Aug 16, 2010
Commits on Aug 13, 2010
Commits on Aug 11, 2010
  1. Get our tests to pass

    rlr committed Aug 11, 2010
Commits on Aug 10, 2010
Commits on Aug 9, 2010
  1. Increase the time delta for forums models tests to avoid Hudson rando…

    Paul Craciunoiu committed Aug 9, 2010
    …m failures.
  2. [584937] Flags are not deleted for deleted objects.

    Paul Craciunoiu committed Aug 7, 2010
    * cleans up a TODO for edit question in the flagged_question.html template.
    * checks if content_object is set before attempting to show it. Downside is that we won't find integrity errors if they occur otherwise, but those shouldn't occur in the first place.
  3. When deleting the solution to a question, set the question solution t…

    rlr committed Aug 9, 2010
    …o None (bug 585313)
Commits on Aug 7, 2010