Re: EmailMessage mangles body text

2010-04-28 Thread Hanne Moa
On 28 April 2010 16:13, Vinay Sajip wrote: > On Apr 28, 1:11 pm, Hanne Moa wrote: >> the-real-solution-is-to-ditch-SMTP-ly yours, >> HM, postmaster > > And your suggestion for a replacement would be ... what? I would say it doesn't exist yet. Though, instant messaging is now so common that *that

Re: managing javascript and css resources

2010-04-28 Thread Silvio
Consider taking a look at an app I wrote, http://www.sgawebsites.com/projects/django-aggregator/. It aggregates all JS and CSS files using a very simple syntax. It can also pipe the content through YUI Compressor before saving the aggregate. My aim was to make it extremely easy to use. It's not a

Re: Django unit test coverage

2010-04-28 Thread Gabriel Hurley
One of the GSOC projects that was accepted is about updating and improving Django's test suite. The guy doing it has expressed interest in using coverage.py to help with the project (whether as a long-term part of django or just for the GSOC project), so there'll probably be more concrete informati

Re: EmailMessage mangles body text

2010-04-28 Thread Ian Clelland
On Wed, Apr 28, 2010 at 10:00 AM, Rob Hudson wrote: > On Tue, Apr 27, 2010 at 6:38 PM, Leo wrote: > > Digging deep into Python's innards reveals that this is a somewhat > > esoteric protection in case you're writing out Unix mailbox files. The > > specific issue is here: > http://docs.python.org

Re: EmailMessage mangles body text

2010-04-28 Thread Tom Evans
On Wed, Apr 28, 2010 at 6:00 PM, Rob Hudson wrote: > Wouldn't these e-mails end up on other servers that might save the > message in a Unix mailbox format?  And if so, wouldn't removing the > ">" from the "From" cause problems? > > -Rob No - not unless the local MTA cannot handle storing messages

Re: EmailMessage mangles body text

2010-04-28 Thread Rob Hudson
On Tue, Apr 27, 2010 at 6:38 PM, Leo wrote: > Digging deep into Python's innards reveals that this is a somewhat > esoteric protection in case you're writing out Unix mailbox files. The > specific issue is here: > http://docs.python.org/release/2.6.2/library/email.generator.html#email.generator.G

Re: EmailMessage mangles body text

2010-04-28 Thread Leo
The patch is done and attached to the ticket. I also had to clean up the doctest for django.core.mail a bit. Some of them were not working as intended since they didn't use the syntax in their expected output. I suspect that issue exists in other doctests but I'm not volunteering to go fix them al

Re: Django unit test coverage

2010-04-28 Thread Jeremy Dunck
There's an open ticket on it, though no progress recently. http://code.djangoproject.com/ticket/4501 http://groups.google.com/group/django-developers/browse_thread/thread/7e4dae3534c8a8c3/5d49f4d17cb1bed0 George Song's project: http://opensource.55minutes.com/trac On Wed, Apr 28, 2010 at 10:36 A

Django unit test coverage

2010-04-28 Thread Vinay Sajip
Can someone please point me to any information about stats on coverage of Django's own code by its unit tests? I searched for "Django test coverage" and "test coverage site:djangoproject.com" but I'm getting pages about testing code which uses Django using Django's test infrastructure, and I couldn

Re: EmailMessage mangles body text

2010-04-28 Thread Leo
Thanks Russ! >>> My only question is whether overriding __str__ is the right >>> place; given that as_string() is the affected interface, it seem like >>> that should be the method that is fixed. It looks like you're right. as_string() is the right method to override. I'll put a patch together.

Re: format/input_format on timefield

2010-04-28 Thread Gary Bernard
yes ...sorry. saw that after I posted... Gary Bernard Bernard Design 232 E 33rd Place Tulsa, OK 74105 918-629-1932 918-749-0075 (fax - please call first) g...@bernarddesign.com http://bernarddesign.com On Apr 28, 2010, at 9:38 AM, Karen Tracey wrote: The topic of this list is the

Re: format/input_format on timefield

2010-04-28 Thread Karen Tracey
The topic of this list is the development of Django itself: questions about how to use Django should be directed to django-users. Karen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@

Re: EmailMessage mangles body text

2010-04-28 Thread Vinay Sajip
On Apr 28, 1:11 pm, Hanne Moa wrote: > the-real-solution-is-to-ditch-SMTP-ly yours, > HM, postmaster And your suggestion for a replacement would be ... what? Regards, Vinay Sajip -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post t

format/input_format on timefield

2010-04-28 Thread Gary b
I am having trouble being able to get format or input_format to work properly on a form TimeField/TimeInput and wanted to check to see if anyone has ever come across this. I have a form built using ModelForm which has a class_time field. I am trying to allow entries into the timefield such as 4 p.m

Re: EmailMessage mangles body text

2010-04-28 Thread Russell Keith-Magee
On Wed, Apr 28, 2010 at 1:52 PM, Leo wrote: >> This is the sort of bug that makes me want to give up my material >> possessions and go live in a cave somewhere. Ugh. > > You can imagine the fun we had tracking it down throughout the stack > trying to isolate the error case. It made me want to thro

Re: EmailMessage mangles body text

2010-04-28 Thread Hanne Moa
On 28 April 2010 03:38, Leo wrote: > This is a fun one. A bit like finding fossils, methinks. > The message that appears on the other end has this in the body: > > >From puppies > > A From at the beginning of any lines in the body gets a > prepended to > it. The reason this exists at all is of