Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Malcolm Tredinnick
On Wed, 2009-01-14 at 05:17 +0100, Vladimir Prudnikov wrote: [...] > First of all RSS file is XML Document. From RSS specification - > "RSS is a dialect of XML. All RSS files !must conform to the XML 1.0 > specification, as published on the World Wide Web Consortium (W3C) > website." That is

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
On 14 Jan 2009, at 04:55, Malcolm Tredinnick wrote: > > On Wed, 2009-01-14 at 04:39 +0100, Vladimir Prudnikov wrote: >> My siggestion is about feed framework. When you add description to >> the >> feed item like >> >> feed.add_item( >> title=pic.name, >> link=li

Re: Description and other fields in RSS. (CDATA)

2009-01-13 Thread Malcolm Tredinnick
On Wed, 2009-01-14 at 04:39 +0100, Vladimir Prudnikov wrote: > My siggestion is about feed framework. When you add description to the > feed item like > > feed.add_item( > title=pic.name, > link=link, > description=description > ) > > th

#3566 - Aggregations: Ready to commit

2009-01-13 Thread Russell Keith-Magee
Hi all, I have now finished work on ticket #3566 - adding aggregations to Django's ORM. I intend to commit the code to Django's trunk tomorrow evening, my time (i.e., in about 30 hours time). If you have any objections or problem reports, speak now or live with the consequences :-) Yours, Russ

Description and other fields in RSS. (CDATA)

2009-01-13 Thread Vladimir Prudnikov
My siggestion is about feed framework. When you add description to the feed item like feed.add_item( title=pic.name, link=link, description=description ) the html content inside description tag will be htmlencoded (< and > will be repl

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Karen Tracey
Just to clarify -- the failure I hit in the Django test suite after re-ordering rolled back test cases to run first is not one where a test assumes another runs before it (rather the reverse) or one that can be triggered currently by just running that single test in isolation. If you run just file

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Alex Gaynor
On Tue, Jan 13, 2009 at 8:29 PM, Russell Keith-Magee wrote: > > On Wed, Jan 14, 2009 at 7:38 AM, Karen Tracey wrote: > > On Tue, Jan 13, 2009 at 12:06 PM, Jacob Kaplan-Moss > > wrote: > >> > >> On Tue, Jan 13, 2009 at 10:00 AM, Karen Tracey > wrote: > >> > OK, so that sounds like one vote for

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Russell Keith-Magee
On Wed, Jan 14, 2009 at 7:38 AM, Karen Tracey wrote: > On Tue, Jan 13, 2009 at 12:06 PM, Jacob Kaplan-Moss > wrote: >> >> On Tue, Jan 13, 2009 at 10:00 AM, Karen Tracey wrote: >> > OK, so that sounds like one vote for leaving things as they are for >> > doctests, that is with no rolled-back tra

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 12:06 PM, Jacob Kaplan-Moss < jacob.kaplanm...@gmail.com> wrote: > > On Tue, Jan 13, 2009 at 10:00 AM, Karen Tracey wrote: > > OK, so that sounds like one vote for leaving things as they are for > > doctests, that is with no rolled-back transaction cleaning up after them.

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Russell Keith-Magee
On Wed, Jan 14, 2009 at 1:00 AM, Karen Tracey wrote: > On Tue, Jan 13, 2009 at 9:05 AM, Russell Keith-Magee > wrote: >> >> > So, the latest patch on #8183 (8138alternate-nodoctestxaction.diff) does >> > not >> > enclose doctest runs in a rolled-back transaction. Thus the effects of >> > doctest

Re: ForeignKey

2009-01-13 Thread msmtotti
Hola, Gracias por responder, voy a analizar bien el codigo y modificarlo para el mio, si tengo duda te posteo otro por aqui Muchas gracias --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Alex Gaynor
On Tue, Jan 13, 2009 at 3:04 PM, Ivan Sagalaev wrote: > > Alex Gaynor wrote: > > Probably stupid question > > Which it was :-). I didn't realize that it's doctests. > > > you need to replace it with > > >>> Decimal("3.0") == Decimal('3.0') > > True > > So why not? > > > > If you look at the s

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Ivan Sagalaev
Alex Gaynor wrote: > Probably stupid question Which it was :-). I didn't realize that it's doctests. > you need to replace it with > >>> Decimal("3.0") == Decimal('3.0') > True So why not? --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Alex Gaynor
On Tue, Jan 13, 2009 at 2:59 PM, Ivan Sagalaev wrote: > > Russell Keith-Magee wrote: > > Expected: > >[('id', 2), ('isbn', u'067232959'), ('manufacture_cost', > > ...11.545...), ('mean_auth_age', 45.0), ('name', u'Sams Teach Yourself > > Django in 24 Hours'), ('pages', 528), ('price', Decimal(

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Ivan Sagalaev
Russell Keith-Magee wrote: > Expected: >[('id', 2), ('isbn', u'067232959'), ('manufacture_cost', > ...11.545...), ('mean_auth_age', 45.0), ('name', u'Sams Teach Yourself > Django in 24 Hours'), ('pages', 528), ('price', Decimal("23.09")), > ('pubdate', datetime.date(2008, 3, 3)), ('publisher_i

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Jacob Kaplan-Moss
On Tue, Jan 13, 2009 at 10:00 AM, Karen Tracey wrote: > OK, so that sounds like one vote for leaving things as they are for > doctests, that is with no rolled-back transaction cleaning up after them. Yeah, I agree. doctests are the 80% testing tool; if you need more control, that's what formal t

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Karen Tracey
On Tue, Jan 13, 2009 at 9:05 AM, Russell Keith-Magee wrote: > > > So, the latest patch on #8183 (8138alternate-nodoctestxaction.diff) does > not > > enclose doctest runs in a rolled-back transaction. Thus the effects of > > doctests can still bleed over into subsequent tests. This doesn't > act

Re: Rolling back tests -- status and open issues

2009-01-13 Thread Russell Keith-Magee
On Tue, Jan 13, 2009 at 4:59 AM, Karen Tracey wrote: > One of the item on the list for 1.1 is "Run Django test cases inside a > transaction". The ticket for this is #8138: Thanks for picking up on this one, Karen. I thought I would have time to look at this, but life conspired against me. > So

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Alex Gaynor
On Tue, Jan 13, 2009 at 8:30 AM, Jeremy Dunck wrote: > > On Tue, Jan 13, 2009 at 6:45 AM, Alex Gaynor > wrote: > > > > > > On Tue, Jan 13, 2009 at 7:40 AM, Russell Keith-Magee > > wrote: > > >> Can anyone shed any light on the workaround for this? Is the only > >> solution to rewrite the t

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Jeremy Dunck
On Tue, Jan 13, 2009 at 6:45 AM, Alex Gaynor wrote: > > > On Tue, Jan 13, 2009 at 7:40 AM, Russell Keith-Magee > wrote: >> Can anyone shed any light on the workaround for this? Is the only >> solution to rewrite the test so that it doesn't depend on the output >> format of __repr__? >> >> Y

Re: Python2.6 and Decimals in tests

2009-01-13 Thread Alex Gaynor
On Tue, Jan 13, 2009 at 7:40 AM, Russell Keith-Magee wrote: > > Hi all, > > I'm was just about ready to commit ticket #3566, but then Justin Bronn > threw a spanner in my works :-) > > Justin pointed out a number of test failures that stem from the change > in Decimal.__repr__() to use single quo

Python2.6 and Decimals in tests

2009-01-13 Thread Russell Keith-Magee
Hi all, I'm was just about ready to commit ticket #3566, but then Justin Bronn threw a spanner in my works :-) Justin pointed out a number of test failures that stem from the change in Decimal.__repr__() to use single quotes rather than double quotes in Python 2.6. The problems present like this