Low-Hanging Fruit

2010-04-19 Thread Shawn Milochik
This is partially inspired by the thread that won't die: "High Level Discussion about the Future of Django." I want to contribute something back to Django. Specifically, I've already paid for my hotel and flights for DjangoCon 2010 and I'm definitely going to stay for the sprints. However, sinc

Re: Low-Hanging Fruit

2010-04-19 Thread Shawn Milochik
Karen, Thanks very much. I appreciate the response. I'll have a look into this (not to discourage anyone else from trying to beat me to it), and post to this list if I can shed light on this issue. Shawn -- You received this message because you are subscribed to the Google Groups "Django de

Re: Process discussion: reboot

2010-04-19 Thread Shawn Milochik
I think that there is frustration on the part of the core dev team because people are (intentionally or not) demanding more and more of their time in the form of feature requests without understanding what the costs are and what resources exist. There is frustration on the part of some Django u

Re: Low-Hanging Fruit

2010-04-19 Thread Shawn Milochik
Thanks, this advice is incredibly helpful, and your response is encouraging. Shawn -- 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...@googlegroups.com. To unsubscribe from this group, sen

Re: Django 1.2 release candidate available

2010-05-06 Thread Shawn Milochik
> > You are however allowed to start earlier if you buy Russ and Karen a > drink, they deserve thanks for all the hard work they've put in. > > Alex Where's the PayPal donation link for this? Shawn -- You received this message because you are subscribed to the Google Groups "Django develope

Re: Calling remote API

2010-07-08 Thread Shawn Milochik
What's wrong with urllib2.urlopen()? -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googl

Re: Calling remote API

2010-07-08 Thread Shawn Milochik
Oops. Sorry for replying here. I didn't realize what list this was. Original poster: Please post to the django-users list. This one is for the development of Django itself, not users of Django Shawn -- You received this message because you are subscribed to the Google Groups "Django develope

Re: Revisiting multiline tags

2012-02-24 Thread Shawn Milochik
On Fri, Feb 24, 2012 at 4:19 AM, Bradley Ayers wrote: > > In the interest of making the wider community opinion heard, I too am +1 on > this, my feeling is exactly the same as Stephen. > > -- +1 I understand that a BDFL has spoken and this change isn't going to happen. I hate to add to the nois

Re: Mobile Login????

2012-02-27 Thread Shawn Milochik
On 02/27/2012 02:24 PM, relihkcin wrote: Hey, has anyone developed a mobile login? i'm having issues. When i load the login page into a for my mobile app. It wont work. But if i redirect it to webbrowser. it works. I'm still a couple months new with django. Any help would be appriacted. thanks

Re: ANNOUNCE: Django 1.4 released

2012-03-23 Thread Shawn Milochik
On 03/23/2012 04:08 PM, Andre Terra wrote: Hooray! Congrats to everyone involved, especially all that worked on bringing timezone support to this increasingly amazing web framework. I don't mean to nitpick but a minor detail in the release notes requires some attention: "Django does not suppor

Re: Problem with validating ModelForm

2011-01-03 Thread Shawn Milochik
Please post your question to the django-users mailing list. This list is for developers of Django itself. -- 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...@googlegroups.com. To unsubscr

Re: Suggested Modification To HttpResponse (and therefore render_to_response)

2011-01-09 Thread Shawn Milochik
This probably should have been brought up in django-users first, asking if it's possible. See safestring.mark_safe(): http://docs.djangoproject.com/en/dev/ref/utils/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: post messages to facebook wall

2011-01-10 Thread Shawn Milochik
http://lmgtfy.com/?q=django+facebook+api -- 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...@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...

Re: post messages to facebook wall

2011-01-10 Thread Shawn Milochik
I shouldn't have replied previously on this list. I didn't realize which list you'd e-mailed. This list is ONLY for the developers of Django itself. Please take your question to the django-users list: http://groups.google.com/group/django-users?hl=en Nobody will answer your question here. Shaw

Re: Brute force attacks

2011-03-04 Thread Shawn Milochik
I have an immediate interest in this discussion. One of my company's Django apps was recently subjected to an external risk assessment team audit. They found the fact that three invalid password attempts didn't lock out the user to be completely unacceptable. Granted, this is something that I shou

Re: Single Table Inheritance

2011-03-29 Thread Shawn Milochik
Hopefully someone on the core dev team can let me know if this is possible in Django. If so, it will solve this problem. I am not familiar with custom metaclass stuff done within models.Model. 1. Create a custom metaclass as described in "Pro Python," page 124. 2. Add this metaclass to the abstra

Re: Single Table Inheritance

2011-03-29 Thread Shawn Milochik
On Tue, Mar 29, 2011 at 2:21 PM, Carl Meyer wrote: > Hi Shawn, > > What you've outlined here is certainly possible (and yes, you'd need to > subclass the ModelBase metaclass). I haven't looked at the abstract > inheritance stuff recently, but I think there would be some alternative > ways for the

Two small tickets, please review.

2011-04-24 Thread Shawn Milochik
I've submitted two (very) small patches. They're my first submissions, so let the constructive criticism flow freely. I'd like to contribute to Django more than I have (mostly django-users help), so any advice that'll help me ease into the role is welcome. I've read the contribution docs, but it's

Small doc patch for review.

2011-04-24 Thread Shawn Milochik
http://code.djangoproject.com/ticket/15595 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...

Updated patch for 15661 (LogEntry objects have no unicode method)

2011-04-24 Thread Shawn Milochik
http://code.djangoproject.com/ticket/15661 Cleaned up at Jacob's suggestion. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send emai

Review request: 15064, DJANGO_SETTINGS_MODULE environment variable ignored in runserver.

2011-04-24 Thread Shawn Milochik
Patch with tests attached to ticket. http://code.djangoproject.com/ticket/15064 -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send e

Re: Review request: 15064, DJANGO_SETTINGS_MODULE environment variable ignored in runserver.

2011-04-24 Thread Shawn Milochik
Thanks for the info and feedback on the patches today. I'll stop spamming the list. Shawn -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this gro

Why does the test handler call sys.exit()?

2011-04-27 Thread Shawn Milochik
Core devs, I've written a script which monitors my project path for changes with pyinotify [1] and automatically runs my test suite each time I save a Python file. I was doing this by calling subprocess, but someone helpfully pointed me towards call_command[2]. However, this breaks my script, whi

Re: Why does the test handler call sys.exit()?

2011-04-27 Thread Shawn Milochik
On 04/27/2011 05:30 PM, Alex Gaynor wrote: This is needed so that the process will exit with the correct status code. Note that this doesn't prevent you from calling it, you just need to catch the SystemExit exception. Alex Alex, That's perfect. I tried to catch the exception before a

Re: deprecation of AUTH_PROFILE_MODULE

2011-05-02 Thread Shawn Milochik
Since it wasn't stated explicitly in that last wish-list, I'd like to add: No assumption that the primary key is an integer. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroup

logging view errors

2011-05-10 Thread Shawn Milochik
I think this is something I'd like to open up a ticket for, but first I want to see whether it's already possible, or is overruled by existing design decisions. Desire: Now that logging is built into Django, I think that any time there is an exception in a view a logging.exception message shou

Re: logging view errors

2011-05-10 Thread Shawn Milochik
On 05/10/2011 04:52 PM, Michael Blume wrote: A developer can currently do this pretty easily with middleware by setting a process_exception method. We could provide some contrib middleware for logging exceptions, but I don't see any need to bring this into core. -Mike Mike, You and someon

old patches, 15064, 15595

2011-05-11 Thread Shawn Milochik
http://code.djangoproject.com/ticket/15064 http://code.djangoproject.com/ticket/15595 Hi. Just wondering if someone could take a look at these. It's been two weeks since the last activity, and already one of them had a merge conflict with trunk, so I just updated it. If there's a problem with

DecimalField allows float value as 'default'.

2011-05-11 Thread Shawn Milochik
Someone on django-users just commented that they set a default value on a DecimalField as a float, and were surprised when they were unable to create a queryset using a float to find records. I searched Trac for the terms 'DecimalField default' and didn't see anywhere that this was brought up

Re: DecimalField allows float value as 'default'.

2011-05-12 Thread Shawn Milochik
On 05/11/2011 08:00 PM, Russell Keith-Magee wrote: On Thu, May 12, 2011 at 3:35 AM, Shawn Milochik wrote: Someone on django-users just commented that they set a default value on a DecimalField as a float, and were surprised when they were unable to create a queryset using a float to find

Re: DecimalField allows float value as 'default'.

2011-05-12 Thread Shawn Milochik
On 05/12/2011 08:04 PM, Russell Keith-Magee wrote: I suspect the answer will lie somewhere between get_prep_value() and to_python() on DecimalField, but you'll need to do some code path tracing to confirm. Looking at the code, I'm a little surprised that it doesn't work as is... Yours, Russ Mag

Re: DecimalField allows float value as 'default'.

2011-05-13 Thread Shawn Milochik
http://code.djangoproject.com/ticket/16015 I've uploaded a patch, but changed the status to 'Design Decision Needed' from 'Accepted.' The problem is that although my patch follows the existing convention and results in passing tests in Python 2.6, the Python core developers have made an import

max_value bug (ticket #16306)

2011-06-22 Thread Shawn Milochik
https://code.djangoproject.com/ticket/16306 Would a core dev or two please give their opinion on this? I think it's a bug and not a flaw in the documentation. As I read the docs it seems plain that the max_value and min_value do what I think a reasonable person would expect them to do. In fact, t

Re: Forced password reset in django-admin

2011-06-29 Thread Shawn Milochik
On 06/29/2011 12:01 PM, Daniel Moisset wrote: django.auth already provides a password reset mechanism, where users can get a password reset link. So, woudn't this work for you?: 1) Create users with a large random password. Destroy every copy of the password 2) Use the reset password feature wi

Re: How do add ancillary, display-only data to each form in a formset?

2011-07-22 Thread Shawn Milochik
Instead of a formset, you can just put a bunch of forms in a list and iterate through them. Why not use a ModelForm and just add your extra fields to it? Also, there's nothing stopping you from adding an attribute to your model instances in your form. Then you can iterate through the objects