Re: Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Andreas Pelme
On Thursday 3 May 2012 at 21:17, Karen Tracey wrote: > On Thu, May 3, 2012 at 12:29 PM, Andreas Pelme (mailto:andr...@pelme.se)> wrote: > > > > Djangos default testrunner reorders the test suite to run all TestCase > > tests before TransactionTestCases, which avoids this problem. I cannot find

Re: Dogfood the new class-based views in contrib.syndication?

2012-05-03 Thread Russell Keith-Magee
On Thu, May 3, 2012 at 4:25 PM, Stephen Burrows wrote: > I was recently working with django's syndication framework, and noticed that > it felt clunky in a lot of ways. For example, I can only access the request > and the kwargs for the function during the get_object method; if I want to > do anyt

Re: GitHub migration done!

2012-05-03 Thread Vinay Sajip
On May 1, 5:39 pm, Carl Meyer wrote: > It's just a cron job and a local repo using hgsubversion; every five > minutes it pulls the latest from Subversion and pushes it to Bitbucket. > The repo and cron job are hosted on the djangoproject.com server. If you > are able to get the conversion from gi

Re: Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Ramiro Morales
On Thu, May 3, 2012 at 1:29 PM, Andreas Pelme wrote: > I am trying to run my Django test suite with an alternative test runner > (py.test), and found some issues with test isolation. > > TransactionTestCase does currently not clean up after itself (i.e. flush the > database), but instead assumes

Re: Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Karen Tracey
On Thu, May 3, 2012 at 12:29 PM, Andreas Pelme wrote: > > Djangos default testrunner reorders the test suite to run all TestCase tests > before TransactionTestCases, which avoids this problem. I cannot find this > reordering documented anywhere, It is documented: https://docs.djangoproject.com/

Re: Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Anssi Kääriäinen
On May 3, 7:29 pm, Andreas Pelme wrote: > I am trying to run my Django test suite with an alternative test runner > (py.test), and found some issues with test isolation. > > TransactionTestCase does currently not clean up after itself (i.e. flush the > database), but instead assumes that the nex

Test reordering and TransactionTestCase cleanup

2012-05-03 Thread Andreas Pelme
I am trying to run my Django test suite with an alternative test runner (py.test), and found some issues with test isolation. TransactionTestCase does currently not clean up after itself (i.e. flush the database), but instead assumes that the next test will flush the database. It is generally a

Re: Will django escaping ever consider context of javascript and CSS?

2012-05-03 Thread Voulnet
The document you linked says it doesn't make it safe to use, but rather helps in fixing syntax errors. " escapejs Escapes characters for use in JavaScript strings. This does not make the string safe for use in HTML, but does protect you from syntax errors when using templates to generate JavaScri

Re: Will django escaping ever consider context of javascript and CSS?

2012-05-03 Thread Tom Evans
On Fri, Apr 27, 2012 at 11:58 PM, Voulnet wrote: > Hello provides great protection from XSS by escaping output to > webpages, but it only does it in HTML context. XSS can be executed > when user input is inserted into javascript or CSS, which have > different context and rules than HTML, so HTML c

Re: Redesign of djangoproject.com?

2012-05-03 Thread Thiago Avelino
Was very good work Hooshyar Naraghi. []'s -- Thiago Avelino http://www.avelino.us http://www.twitter.com/avelino0 On Wed, May 2, 2012 at 1:22 PM, Hooshyar Naraghi wrote: > Hello all, > > I would like to share yet another design for the Django Project web site. > First, I jump in with the des

Dogfood the new class-based views in contrib.syndication?

2012-05-03 Thread Stephen Burrows
I was recently working with django's syndication framework, and noticed that it felt clunky in a lot of ways. For example, I can only access the request and the kwargs for the function during the get_object method; if I want to do anything more complicated with them - for example, say I want to