Re: #12801 : Allow empty non-nullable ForeignKey fields until save()

2010-02-12 Thread Russell Keith-Magee
On Fri, Feb 12, 2010 at 3:47 PM, Luc Saffre wrote: > Sorry, but the longer we discuss, the more it becomes clear: Django's > behaviour is certainly wrong. No, it really isn't *certainly* wrong. It's *arguably* wrong, and I join my colleagues Luke and Karen in arguing that it isn't wrong at all.

Re: examples directory

2010-02-15 Thread Russell Keith-Magee
On Mon, Feb 15, 2010 at 7:14 PM, Luke Plant wrote: > Hi, > > I'm prompted by #12863 [1] to suggest that we remove the whole > 'examples' directory, because: > > * The style of code contained in it is very atypical (it does not use > templates), which makes it very poor 'example' code. > * As docum

Re: Serialization of single object instead of only querysets.

2010-02-15 Thread Russell Keith-Magee
On Tue, Feb 16, 2010 at 1:43 PM, orokusaki wrote: > Thank you Karen. I've been hushed so many times about this, yet there > seems to be a growing concern (hence the search traffic, and number of > results) about why you can't naturally do this with Django's built-in > serializer. I have no proble

Re: Release note references in documentation

2010-02-16 Thread Russell Keith-Magee
On Tue, Feb 16, 2010 at 3:28 PM, Andrew Badr wrote: > What's the policy about all those references to release notes in the > docs? For example, the autoescape template tag [1]  has "New in Django > 1.0: Please, see the release notes", with a link to the 1.0 release > notes. When can these be remov

Re: Value conversions of aggregate return values -- is float conversion really required?

2010-02-16 Thread Russell Keith-Magee
On Tue, Feb 16, 2010 at 5:40 AM, Tommi Penttinen wrote: > Hi, > > I thought I'd check with you before creating a ticket. > > Django's aggregate documentation > http://docs.djangoproject.com/en/dev/ref/models/querysets/#id8 states that > return type for aggregates Max, Min and Sum is the same as th

Re: template rendering problem plz look at this.

2010-02-17 Thread Russell Keith-Magee
On Wed, Feb 17, 2010 at 5:26 PM, chiranjeevi muttoju wrote: > > Hi, > Actually my aim is to load the iframe when i click my link(play) in facebook. > i get the functionality working fine but the problem is after loading the > iframe with desired content, it becomes blur.. I dont know what the pr

Re: EmailField max_length of 75 characters should be 256 acccording to RFC 5321

2010-02-17 Thread Russell Keith-Magee
On Thu, Feb 18, 2010 at 8:15 AM, Artem Skvira wrote: > Hi all, > > Following the django's tracker policy I'dlike to discuss this issue > here instead of re-opening the ticket (http://code.djangoproject.com/ > ticket/12900#comment:1) > > My problem with current limitation of 75 characters is that i

Re: [RFC] Fixing middleware/view decorator handling of content iterators

2010-02-18 Thread Russell Keith-Magee
On Tue, Feb 16, 2010 at 5:16 AM, Forest Bond wrote: > Hi, > > Django allows an iterator to be passed as response content when instantiating > an > HttpResponse.  However, doing so causes problems with the following classes > and > functions: > > UpdateCacheMiddleware: >  Caches the response obje

Re: How about adding a noop {% csrf_token %} tag to the Django 1.1 branch

2010-02-18 Thread Russell Keith-Magee
On Fri, Feb 19, 2010 at 8:34 AM, SmileyChris wrote: > I was thinking that it would help third-party apps to be able to work > across both 1.1 and 1.2 installations without workarounds if the 1.1 > branch had a csrf_token tag, just to stop templates choking with a > "Invalid block tag: 'csrf_token'

Re: admin javacripts

2010-02-19 Thread Russell Keith-Magee
On Sat, Feb 20, 2010 at 1:58 AM, Rob Hudson wrote: > On Fri, Feb 19, 2010 at 8:58 AM, Luke Plant wrote: >> IMO, using 'library agnostic' javascript in the admin will mean we >> just end up implementing our own library, which will end up being an >> ad hoc, informally-specified, bug-ridden, slow i

Re: inlineformset_factory bug

2010-02-20 Thread Russell Keith-Magee
On Sat, Feb 20, 2010 at 3:30 PM, Alexandru Nedelcu wrote: > Hi, > > I want to report a bug ... is here OK? The best place to report a bug is in our Trac instance. However, that said: > I have an InlineFormSet ... created like so ... > >    inlineformset_factory(MainModel, ChildModel, extra=1, >

Re: inlineformset_factory bug

2010-02-20 Thread Russell Keith-Magee
On Sat, Feb 20, 2010 at 11:09 PM, Alexandru Nedelcu wrote: > On Feb 20, 1:54 pm, Russell Keith-Magee > wrote: >> Django is currently in bugfix mode, but this could be a candidate >> feature for Django 1.3. In order for this to happen, it needs to be >> reported in Tr

Re: Fixing middleware/view decorator handling of content iterators

2010-02-21 Thread Russell Keith-Magee
On Sun, Feb 21, 2010 at 5:22 AM, Forest Bond wrote: > Hi, > > Sorry for the volume of messages, but I had one more note to add. ;) > > On Sat, Feb 20, 2010 at 03:46:52PM -0500, Forest Bond wrote: >> Here are the use cases that have been identified: >> >> 1. A content iterator was passed for no app

Re: Fixing middleware/view decorator handling of content iterators

2010-02-21 Thread Russell Keith-Magee
On Sun, Feb 21, 2010 at 5:28 PM, Tai Lee wrote: > On Feb 21, 7:46 am, Forest Bond wrote: >> Okay, I think "disabled_middleware" is a bad name because it doesn't actually >> imply that all middleware should be disabled.  Anyway, it seems like >> middleware >> could just check if isinstance(respon

Re: Moving all validation into the model layer.

2010-02-21 Thread Russell Keith-Magee
On Mon, Feb 22, 2010 at 7:15 AM, orokusaki wrote: > Does anyone have interest in this? 1) Possibly. There are some complications to what you proposed. Model Validation has a lot of history, and things are they way they are for a reason -- and often, that reason is backwards compatibility. Propos

Re: Requesting Django to make authorization more flexible and secure for SAAS projects.

2010-02-21 Thread Russell Keith-Magee
On Mon, Feb 22, 2010 at 7:41 AM, orokusaki wrote: > I'm developing an SAAS which means that I will have Accounts and those > Accounts will have Users. Each account's Users are completely > orthogonal to the Users of another Account. When a user logs in, > they'll supply an Account ID, a username,

Re: Potential bug in select_related() as of Beta

2010-02-21 Thread Russell Keith-Magee
On Mon, Feb 22, 2010 at 7:45 AM, subs...@gmail.com wrote: > Sorry to be pushy, but I would like to bump this or find the next tree > to bark up. A bug report is the best way forward here. When you make your report, obviously include the models, ORM query and SQL fragment that is generated. It wo

Re: contrib.Auth

2010-02-22 Thread Russell Keith-Magee
On Mon, Feb 22, 2010 at 6:03 PM, Sayane wrote: > It's not only about character restrictions on usernames. Some of developers > want to use email as login (so we have to remove username and add unique > option to email). Another example are english-only permissions. I would like > to replace them w

Re: EmailBackends

2010-02-23 Thread Russell Keith-Magee
On Tue, Feb 23, 2010 at 8:08 AM, Mat Clayton wrote: > Sorry I probably didn't explain this properly. A composite backend is half > the solution, the other part of the problem is deciding which backend to > use. This decision in our case needs to be made where mail.send() is called. > Either I coul

Re: Question for Django ORM developers

2010-02-23 Thread Russell Keith-Magee
On Wed, Feb 24, 2010 at 12:20 AM, P.R. wrote: > Hello, > > I have question about type of design patterns using in Django ORM. It > is: Table Data Gateway, Row Data Gateway, Active Record or Data > Mapper? .. Personally I think that it's mix of Row Data Gateway and > Data Mapper, but I want to ask

Re: Customizable Serialization Idea -GSoC

2010-02-23 Thread Russell Keith-Magee
On Tue, Feb 23, 2010 at 1:26 PM, Jesus Mager wrote: > Hi all! > > My name is Jesus Mager, and I'm student at the National Autonomous > University of Mexico.I am interested in  in taking part of Google > Summer of Code for the diango project. > The Customizable Serialization sound a good idea. Djan

Re: Conditional block statements

2010-02-23 Thread Russell Keith-Magee
On Wed, Feb 24, 2010 at 2:53 AM, joep wrote: > This is in regard to this ticket, http://code.djangoproject.com/ticket/10975, > which states, in response to the user's complaint, that 'A block > cannot be defined conditionally within any sort of "if" construct, and > this is by design; the structur

Re: Admin accessibility tweaks

2010-02-25 Thread Russell Keith-Magee
On Thu, Feb 25, 2010 at 12:29 AM, Chris Adams wrote: > We've been collecting various tweaks to the stock Django 1.1.1 which > have been requested by our 508 testers. I'd appreciate it if someone > could review these tickets: > > Add scope=col to changelist table headers: > http://code.djangoprojec

Re: 404 debug pages should show the name of the tried urlpattern - #9310

2010-02-25 Thread Russell Keith-Magee
On Thu, Feb 25, 2010 at 3:43 AM, Jeremy Dunck wrote: > On Wed, Feb 24, 2010 at 11:14 AM, Tobias McNulty > wrote: > ... >> I'm hoping this will spark a discussion about how we can work more >> efficiently and put donated time to better use.  I may be a bit biased, >> because this is coming on the

Re: 404 debug pages should show the name of the tried urlpattern - #9310

2010-02-25 Thread Russell Keith-Magee
On Fri, Feb 26, 2010 at 6:39 AM, Stephen Wolff wrote: > On 25/02/2010 20:05, SmileyChris wrote: >> >> Just two small points I'd like to highlight: >> >> On Feb 26, 3:50 am, Russell Keith-Magee >> wrote: >> >>> >>> I'm not casting

Re: Django's testing infrastructure

2010-02-25 Thread Russell Keith-Magee
On Fri, Feb 26, 2010 at 11:54 AM, Eric Holscher wrote: > Hey everyone, > > During the sprints, I worked to set up a hudson instance for Django. This is > hopefully going to be the way that we are going to go forward for now with > doing continuous integration for Django. I have a pretty good setup

Re: Status of #1480: "Don't Set TIME_ZONE [...]"

2010-02-25 Thread Russell Keith-Magee
On Fri, Feb 26, 2010 at 8:55 AM, Gabriel Hurley wrote: > Having been bitten by issue #1480 personally, I'm wondering what the > status of this ticket really is? Trac indicates it needs a better > patch and better docs, but there's no information about what changes > are needed. > > If someone will

Re: IfEqualNode is missing a get_nodes_by_type method

2010-02-26 Thread Russell Keith-Magee
On Thu, Feb 25, 2010 at 10:33 AM, SmileyChris wrote: > My ticket in #6510 [1] deals with this, along with a nice abstraction > of common recursive nodelist gathering patterns. > > Although the ticket description, comments (and even tests in my patch) > mention {% block %}, this has *nothing* to do

Re: Where are 2.0 ideas/fixes being tracked?

2010-02-28 Thread Russell Keith-Magee
On Sun, Feb 28, 2010 at 6:26 PM, Idan Gazit wrote: > I'm looking at http://code.djangoproject.com/ticket/12359, and (with > some guidance from Alex_Gaynor), think that there's really two fixes > here: a short term, backwards-compatible fix which removes the forced > help_text appendage, and a long

Re: Eclipse stack trace integration

2010-03-02 Thread Russell Keith-Magee
On Tue, Mar 2, 2010 at 10:00 PM, Thierry wrote: > Any idea how to make the file names in the stack trace clickable to > open them in eclipse? > > Symfony seems to do it: > http://symfony-reloaded.org/tools > > Quote: > You can even click on any filename and Symfony will open your favorite > IDE at

Re: 2 small tickets

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 3:41 PM, Jared Forsyth wrote: > I found some bugs, wrote come patches, submitted some tickets. =) Is that > all that's needed? > The two patches I wrote are very small, one is only one char diff... > I guess I just want to know > a) have I done all that's required/suggested,

Re: Can't search 1.1 documentation on djangoproject.com

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 5:09 AM, Dougal Matthews wrote: > If you head to http://docs.djangoproject.com/en/1.1/ and type in 'settings' > (for example) into the search on the right you'll notice that all the > results link to docs.djangoproject.com/en/dev/ rather than /en/1.1/. > It seems then that '

Re: Abstract models and their managers

2010-03-03 Thread Russell Keith-Magee
On Mon, Mar 1, 2010 at 12:40 PM, Stephen McDonald wrote: > Hi there, > > I'm just getting an understanding around how managers from abstract > models are applied to a subclass model and it appears as though if a > model inherits from two abstract models that each define a manager > with the same a

Re: No module named project_name.settings

2010-03-03 Thread Russell Keith-Magee
On Wed, Mar 3, 2010 at 5:39 PM, gintare wrote: > Hello, > > 1) Test.py  complains about missing module > ImportError: Settings cannot be imported, because environment variable > DJANGO_SETTINGS_MODULE is undefin > ed. Django-developers is for discussing the development of Django itself, not for a

Re: [GSOC] Template Compilation

2010-03-04 Thread Russell Keith-Magee
On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote: > Django Template Compilation > === First up, this looks like a solid proposal Alex. Anything that speeds up template generation is good, and if your indicative stats turn out to be representative of real-world performance

Re: Abstract models and their managers

2010-03-04 Thread Russell Keith-Magee
On Thu, Mar 4, 2010 at 5:02 PM, Johannes Dollinger wrote: > Hi Steve, > > Multiple inheritance with abstract models works, and mostly did since the > feature was added afaict. I use it regulary. If multiple abstract inheritance works, it is accident, not intention. For example, there is nothing i

Re: [GSOC] Template Compilation

2010-03-04 Thread Russell Keith-Magee
On Fri, Mar 5, 2010 at 12:26 AM, Alex Gaynor wrote: > On Thu, Mar 4, 2010 at 3:41 AM, Russell Keith-Magee > wrote: >> On Thu, Mar 4, 2010 at 7:29 AM, Alex Gaynor wrote: >>> Templates will be compiled by turning each template into a series of >>> functions, &g

Re: Adding a new convenience filter 'contains_any'

2010-03-04 Thread Russell Keith-Magee
On Fri, Mar 5, 2010 at 3:56 AM, aditya wrote: > I would like to add a new filter for models to my django build that > can be used as follows: > > tags = ['tag1','tag2','tag3''tagn'] > i = Image.objects.filter(tags__contains_any=tags) > > > Essentially, instead of passing a string, I pass a lis

Re: Adding takes_context argument to filters

2010-03-05 Thread Russell Keith-Magee
On Sat, Mar 6, 2010 at 3:53 AM, subs...@gmail.com wrote: > Hello there, > > I'm interested in allowing a particular filter I have to check the > context. Trolling for reasons for and against, and if it makes no > difference I'll file a ticket and provide some patches. Unless I'm misunderstanding

Re: Would a "Feedback" triage stage be helpful?

2010-03-06 Thread Russell Keith-Magee
On Sat, Mar 6, 2010 at 9:40 AM, Gabriel Hurley wrote: > I've read through the history on this group about triage process and I > have an idea I'd like to offer gently: Thanks for the suggestion, Gabriel. We're always interested in considered feedback and suggestions. Don't let what I'm about to s

Re: Easier debugging of Django templates. {% try %} ... {% endtry %} template tag and traceback.

2010-03-06 Thread Russell Keith-Magee
On Sat, Mar 6, 2010 at 5:59 PM, Jonathan S wrote: > > On Mar 6, 3:36 am, Leo wrote: >> This is really cool, thanks for sharing it! >> >> One small question though, would it be better to check TEMPLATE_DEBUG >> instead of DEBUG >> -http://docs.djangoproject.com/en/dev/ref/settings/#template-debug

Re: Potential GSoC 2010 Student

2010-03-07 Thread Russell Keith-Magee
On Mon, Mar 8, 2010 at 12:13 AM, Tyler Laing wrote: > Hello all! > > I am interested in contributing to Django over GSoC 2010. > > A quick introduction is in order. I am currently a 4th year Computer > Science student in a BSc. at UBC, Okanagan campus. > > I am quite fluent in Python, Java, and C,

Re: Would a "Feedback" triage stage be helpful?

2010-03-07 Thread Russell Keith-Magee
On Sun, Mar 7, 2010 at 5:27 AM, Gabriel Hurley wrote: > I'm certainly not discouraged and I appreciate the reply. The > crowdsourced/trust-based system is more what I had in mind; my > suggestion was trying to shoehorn that thought into the existing > tracker. > > Given that I love organization an

Re: Allowing models to influence QuerySet.update

2010-03-07 Thread Russell Keith-Magee
On Mon, Mar 8, 2010 at 7:56 AM, Dennis Kaarsemaker wrote: > I have now added tests and documentation. Comments are still welcome, I > have not received any feedback yet :( Please don't take it personally -- it's just that we're just not really fielding new features at the moment. The attention of

Revised 1.2 release schedule

2010-03-09 Thread Russell Keith-Magee
Hi all, Those of you that have been paying attention to the Django release roadmap [1] will have noticed that the original estimated release date for Django 1.2 final has passed, but we haven't actually made a final release. Although Django aims to follow a date-based release cycle, we won't make

Re: GSoC - Class based serializers

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 7:56 AM, Renato Garcia Pedigoni wrote: > Hi folks > My name is Renato, I'm currently studying Biomedical Informatics at the > University of Sao Paulo, in Brazil. > Last year I tried a GSoC slot with a declarative syntax serializer project > for Django. Reading the 2010's id

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 6:18 PM, Joan Miller wrote: > Whatever configuration system using variables of a language is a > disaster and it's going not maintainable as has been showed in Django. That's a pretty wild assertion to make without any evidence, and it's completely contrary to my personal

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 10:16 PM, Joan Miller wrote: > It's a disaster from the maintenance view point. If it were not so, > then people would not be proposing to refactor the settings as has > been made in Pinax, or from multiple posts so many times. > > This is nothing new. Many people dislikes

Re: Porting _django_bash_completion to Windows Powershell

2010-03-10 Thread Russell Keith-Magee
On Thu, Mar 11, 2010 at 4:12 AM, guillermooo wrote: > ** I might be posting in the wrong place. Apologies if I do, but this > felt like the right place to ask! ** > > Hi! > > I'm trying to port Django's django_bash_completion script to Windows > Powershell, but I only know so much bash, so I'd nee

Re: Problems with DatabaseCreation, table names, and index names

2010-03-10 Thread Russell Keith-Magee
On Thu, Mar 11, 2010 at 7:13 AM, James Bennett wrote: > On Wed, Mar 10, 2010 at 4:55 PM, Andrew Godwin wrote: >> The question is, is it even worth fixing? I'm tempted to conclude that >> you're limited to shorter model/field names by your database (or use >> db_table/db_column), but there's also

Re: GSOC: Some info about possible projects

2010-03-11 Thread Russell Keith-Magee
On Fri, Mar 12, 2010 at 5:16 AM, ab3 wrote: > Hello > > I am a cs student from belgium. I worked on the camera module of > pygame for last years gsoc. > I have used Django for 2 projects and would like to contribute as part > of gsoc. > I have taken a look at the SummerOfCode2010 page, and I am in

Re: logialogin_required does not check User.is_active

2010-03-17 Thread Russell Keith-Magee
On Wed, Mar 17, 2010 at 4:53 AM, Sean Brant wrote: > A co-worker of mine noticed this bug today > http://code.djangoproject.com/ticket/13125. > Should it be marked for 1.2 or punt it until after the release > candidate? It looks to be a bug so it could probably go in at anytime. > Let me know you

Re: logialogin_required does not check User.is_active

2010-03-17 Thread Russell Keith-Magee
On Wed, Mar 17, 2010 at 6:30 AM, mattd wrote: > interesting. i'm using the django-provided login form from 1.1, > waiting for 1.2 to be released before using it. > > here's an example of my point: you run an internal tool for staff to > discuss the topics of the day. a few staff are let go or othe

Re: logialogin_required does not check User.is_active

2010-03-17 Thread Russell Keith-Magee
On Wed, Mar 17, 2010 at 3:46 PM, Russell Keith-Magee wrote: > On Wed, Mar 17, 2010 at 4:53 AM, Sean Brant wrote: >> A co-worker of mine noticed this bug today >> http://code.djangoproject.com/ticket/13125. >> Should it be marked for 1.2 or punt it until after the release &

Re: media in ModelAdmin

2010-03-18 Thread Russell Keith-Magee
On Thu, Mar 18, 2010 at 9:57 PM, Luca Sbardella wrote: > Currently, the media object is converted to safe string in both > "add_view" and "change_view" when added to the context dictionary > while in "changelist_view" is not (the correct approach). > Converting media to string means you cannot spl

Re: Ticket 13023: Admin inlines, max_num, and extra

2010-03-18 Thread Russell Keith-Magee
Hi Gabriel Sorry for taking so long to get back to you on this. I certainly appreciate the effort you've put into the analysis. On Fri, Mar 19, 2010 at 6:03 AM, Gabriel Hurley wrote: > There are two possible solutions, as I see it: > > 1. Change the default value of max_num from 0 to -1. That's

Re: Functional Requirements

2010-03-18 Thread Russell Keith-Magee
On Fri, Mar 19, 2010 at 10:53 AM, geowa4 wrote: > Hi, I am a student in college, and I am studying Django in my Software > Architectures class. I have been using it for a while, and am excited > to learn more about it. One task I have is to identify key functional > requirements and key quality at

Re: Display link to change-form on inlines where model is registered in admin site

2010-03-19 Thread Russell Keith-Magee
On Sat, Mar 20, 2010 at 8:31 AM, Simon Meers wrote: > I've just submitted #13163 [1] with a patch to display a link to the full > change-form for inlines of models which are registered in the same admin > site, similar to the existing "view on site" link for inlines. I have had > numerous projects

Re: media in ModelAdmin

2010-03-20 Thread Russell Keith-Magee
On Sat, Mar 20, 2010 at 6:06 PM, Luca Sbardella wrote: > Hi Russell, > I made a couple of changes to forms.widgets in relation to your > comments. > Tests passed. Shall I close the ticket? (not sure about best practice) No. As documented here [1], the ticket is closed when the code is committed

Re: media in ModelAdmin

2010-03-20 Thread Russell Keith-Magee
On Sat, Mar 20, 2010 at 6:43 PM, Simon Meers wrote: >> As documented here [1], the ticket is closed when the code is >> >> committed to SVN. If you think you've met all the requirements for the >> code to be committed to trunk, you can mark a ticket >> ready-for-checkin. >> >> [1] http://docs.djan

Re: Several ideas for GSoC 2010

2010-03-21 Thread Russell Keith-Magee
On Sun, Mar 21, 2010 at 9:05 PM, parser wrote: > Hello everybody! My name is Pavel, I'm now receiving Ph.D. at > Lomonosov Moscow State University and would really like to improve > Django as a GSoC participant. > > I've been using Django for quite a bit (about a year) and I really > loved it! I'v

Re: Housekeeping ; GSoC 2010

2010-03-22 Thread Russell Keith-Magee
On Tue, Mar 23, 2010 at 7:42 AM, zubin71 wrote: > Hello, > > My name is Zubin Mithra and I am a Python developer. I have > considerable experience working with django but have no knowledge of > its internal workings; however I would like to have GSoC 2010 as an > opportunity to do the same. I am i

Re: humanize.ordinal is very English-specific

2010-03-23 Thread Russell Keith-Magee
On Wed, Mar 24, 2010 at 4:03 AM, Shai Berger wrote: > Hi, > > I've been doing some translation work and ran into the humanize.ordinal > template tag; I found it extremely English-specific. It works by choosing > suffixes ("st", "nd", "rd", "th") to add to numeric representation (turning > e.g. 22

Re: Re: humanize.ordinal is very English-specific

2010-03-24 Thread Russell Keith-Magee
On Wed, Mar 24, 2010 at 10:31 PM, wrote: > Regarding Russ' comment on pluralization: > >>  Option 1: Spend a lifetime trying to make a single tag that can >> accommodate every possible pluralization rule scheme >> >>  Option 2: Provide a simple implementation that works for a lot of >> cases, and

Re: Trac Full!

2010-03-24 Thread Russell Keith-Magee
On Thu, Mar 25, 2010 at 7:49 AM, Simon Meers wrote: >> I was trying to figure out why I was getting Internal Server Errors >> when attempting to upload a patch on code.djangoproject.com -- I have >> discovered that there is "no space left on the device"! > > This seems to be fixed now (thank you w

Re: Re: humanize.ordinal is very English-specific

2010-03-24 Thread Russell Keith-Magee
On Thu, Mar 25, 2010 at 8:32 AM, Sergiy Kuzmenko wrote: >> If you have any suggestions for how we could expose ungettext better >> in templates, I'm all ears. However, given the complexity of >> pluralization rules and pluralization usage in the general case, it's >> not a simple task. Suggestions

Re: GSoC Project: Enhancedaut.user

2010-03-25 Thread Russell Keith-Magee
On Thu, Mar 25, 2010 at 4:27 PM, d3f3nd3r wrote: > Hello everyone, > > I'm planning to apply for the GSoC Enhanced auth.user project. I > worked on several Django based projects before. > (hackerspace os (http://code.google.com/p/hackerspace-os/) is probably > the > biggest one (used by the Austri

Re: Re: humanize.ordinal is very English-specific

2010-03-25 Thread Russell Keith-Magee
On Fri, Mar 26, 2010 at 10:57 AM, Sergiy Kuzmenko wrote: > ... just to clarify: >> There appears to be some confusion here. The pluralize filter *already >> exists*. It has existed since Django was open sourced. if you have >> complex pluralization rules to support, it wont work, but in those >> c

Re: Potential bugs / need for extra documentation in 'Customizing the comments framework'

2010-03-26 Thread Russell Keith-Magee
On Thu, Mar 25, 2010 at 4:36 PM, subs...@gmail.com wrote: > I got myself into a situation with a project and some comments models. > Perhaps with some discussion we can uncover genuine code-bugs, but my > knowledge about this is limited and so I'm just calling for a > documentation update. A major

Re: GSoC Project: Enhancedaut.user

2010-03-26 Thread Russell Keith-Magee
On Fri, Mar 26, 2010 at 3:22 AM, d3f3nd3r wrote: > > On Mar 25, 4:19 pm, Russell Keith-Magee > wrote: >> >> Firstly, Backwards compatibility. contrib.auth is a major component in >> many, if not most existing Django installations. If you're proposing >> *a

Re: Potential bugs / need for extra documentation in 'Customizing the comments framework'

2010-03-26 Thread Russell Keith-Magee
On Sat, Mar 27, 2010 at 2:31 AM, subs...@gmail.com wrote: >> > 3) Models hoping to foreignkey to whatever comments model the app >> I'm not sure what you're saying here. Are you complaining about the >> way that we've implemented this particular feature, or about some edge >> case that you've fou

Re: Include StringTemplate

2010-03-26 Thread Russell Keith-Magee
On Sat, Mar 27, 2010 at 8:13 AM, Johannes Lichtenberger wrote: > Hello, > > wouldn't it be nice to include StringTemplate > (http://www.stringtemplate.org/)? It strictly enforces model-view > separation (in django terminology view-template) so I think it's design > is much better than most other i

Re: GSoC Project: Enhancedaut.user

2010-03-26 Thread Russell Keith-Magee
On Fri, Mar 26, 2010 at 6:34 PM, d3f3nd3r wrote: > > > On Mar 26, 8:34 am, Russell Keith-Magee > wrote: >> On Fri, Mar 26, 2010 at 3:22 AM, d3f3nd3r wrote: >> >> > On Mar 25, 4:19 pm, Russell Keith-Magee >> > wrote: >> >> >> Firstly

Re: GSoC Project: Enhancedaut.user

2010-03-27 Thread Russell Keith-Magee
On Sat, Mar 27, 2010 at 7:16 PM, d3f3nd3r wrote: > >> Like I said originally - this is a big, hard problem. It's definitely >> a problem worth solving, but because it's a difficult problem, it's >> going to be a lot harder to convince us that you're the right person >> for the job. >> > > So any c

Opinions sought on m2m signal ordering

2010-03-27 Thread Russell Keith-Magee
Hi all, One of the new features in 1.2 are signals on m2m operations [1]. Recently, Ticket #13087 was opened questioning the order in which m2m signals are sent. I'm calling for any comments or opinions on exactly how this feature should operate before the current behavior is baked into a release

Re: Opinions sought on m2m signal ordering

2010-03-27 Thread Russell Keith-Magee
On Sun, Mar 28, 2010 at 2:52 AM, Andrew Badr wrote: > Isn't the overhead of a function call negligible compared to executing > a database query or opening/closing a connection? It is fairly small, especially if there are not signals attached. When signals are attached, it's less trivial. My conc

Re: Opinions sought on m2m signal ordering

2010-03-27 Thread Russell Keith-Magee
On Sun, Mar 28, 2010 at 6:59 AM, Andrew Godwin wrote: > On 27/03/10 17:08, Russell Keith-Magee wrote: >> >> There are 5 options I can see. >> >> Option 1: Do nothing. #13087 describes a use case we don't want to >> support, so we ignore it. >> > &g

Re: GSoC - Class based serializers

2010-03-28 Thread Russell Keith-Magee
On Mon, Mar 29, 2010 at 12:22 AM, Renato Garcia Pedigoni wrote: > Hi Alex and Russel >> * Your schedule is so vague it borders on being comical. I generally >> use the rule of thumb that if a proposal contains a body of work >> longer than a week, the person making the proposal doesn't understand

Re: GSoC: Customizable Serialization

2010-03-29 Thread Russell Keith-Magee
On Mon, Mar 29, 2010 at 10:00 PM, gombiuda JHL wrote: > Hi all. My name is Gombiuda Jiang. I want to apply the `Customizable > serialization` project. Here is my proposal. Thanks for your reading and > commenting. > As far as I can understand the project, its aim is to make serialization can > be

Re: Ticket #13184 (SubfieldBase and form validation). Seeking guidance

2010-03-30 Thread Russell Keith-Magee
On Tue, Mar 30, 2010 at 2:45 AM, Mark L. wrote: > Hello, > > I am terribly sorry to have brought this up here, but I would like to > direct some of your attention to the ticket #13184 (http:// > code.djangoproject.com/ticket/13184). Hi Mark, No need to apologize - this is exactly the right place

Re: GSoC - Class based serializers

2010-03-30 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 1:07 AM, Renato Garcia Pedigoni wrote: > Hi Russel > >> I'm not wild about calling this a template, if only because the name >> "template" is slightly overloaded. However, that said, the approach >> looks to be on the right path. > > Do you have any other name on mind? My e

Re: GSoC Project: Enhancedaut.user

2010-03-30 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 2:09 AM, d3f3nd3r wrote: > >> Well.. how about you tell me whether you're going to pursue the >> project before I spend a bunch of time giving feedback when you don't >> actually want it? >> >> As a top sheet summary - To be brutally honest, I'm still not >> convinced you'v

Re: GSoC Project: Enhancedaut.user

2010-03-31 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 4:35 PM, Flo wrote: > > Here an updated, fresh summary: > > > > Plan > --- > > Add an abstraction layer to the auth.User class > > > > Method > - > > An extra abstraction layer will be added for the User class in form of > a BaseUser class. The BaseUser class wi

Re: GSoC - Class based serializers

2010-03-31 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 6:05 PM, Renato Garcia Pedigoni wrote: > Hi Russel > >> Apologies - I confused matters by talking about templates. What I >> meant to say is that Django currently has a JSON serializer. It >> implements a bunch of design decisions that describe how models are >> displayed.

Re: GSoC Project: Enhancedaut.user

2010-03-31 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 8:48 PM, Flo wrote: > > On Mar 31, 12:48 pm, Russell Keith-Magee > wrote: >> On Wed, Mar 31, 2010 at 4:35 PM, Flo wrote: >> >> > Here an updated, fresh summary: >> >> > Plan >> > --- >> >>

Re: Validate a form's excluded fields if a value is present

2010-04-01 Thread Russell Keith-Magee
On Thu, Apr 1, 2010 at 2:17 PM, subs...@gmail.com wrote: > Seems like a security hole, whereby people may supply additional > fields if they can guess their counterparts on the model. Its > 'exclude', not 'exclude_maybe'. Please be *very* careful about using the words "security hole" - those word

Re: Validate a form's excluded fields if a value is present

2010-04-01 Thread Russell Keith-Magee
On Thu, Apr 1, 2010 at 9:11 AM, orokusaki wrote: > I'm working on an SAAS project, and there is an ``account`` attribute > (foreign key) on every model in the project (similar to those who have > a ``user`` or ``created_by`` attribute on every model). ``account`` is > added to the request object u

Re: GSoC Project: Enhancedaut.user

2010-04-01 Thread Russell Keith-Magee
On Wed, Mar 31, 2010 at 10:15 PM, Flo wrote: > > > On Mar 31, 3:27 pm, Russell Keith-Magee > wrote: > >> But under your proposal, you *can't* use your own permission model. If >> BaseUser inherits from BasePermissions, and every application with a >> cust

Re: Validate a form's excluded fields if a value is present

2010-04-02 Thread Russell Keith-Magee
On Fri, Apr 2, 2010 at 6:25 AM, orokusaki wrote: > Hey Russ, > > I'm not on the model.full_clean stuff anymore, and I apologize for > burning so many cycles on that point when you're in the middle of 1.2 > dev. I'm just wondering if what I proposed above sounds reasonable. > The form validation tu

Re: [Repost][GSoC] Making django.db usable outside Django

2010-04-02 Thread Russell Keith-Magee
On Fri, Apr 2, 2010 at 1:40 AM, Yuvi Panda wrote: > I'm a CS student from India and am planning to apply for this year's > GSoC to work on Django. I've worked on several django based websites > ([1][2] + 1 yet to be released) and flirted around with other Python > Web Frameworks too (Tornado, web.

Re: GSoC Project: Enhancedaut.user

2010-04-02 Thread Russell Keith-Magee
On Fri, Apr 2, 2010 at 7:28 PM, Flo wrote: > > > On 1 Apr., 16:04, Russell Keith-Magee wrote: >> On Wed, Mar 31, 2010 at 10:15 PM, Flo wrote: >> >> > On Mar 31, 3:27 pm, Russell Keith-Magee >> > wrote: >> >> >> But under you

Re: Validate a form's excluded fields if a value is present

2010-04-02 Thread Russell Keith-Magee
On Sat, Apr 3, 2010 at 2:51 AM, orokusaki wrote: > On Apr 2, 2:00 am, Russell Keith-Magee wrote: > >> The broad goal is certainly reasonable and desirable. It's really a >> matter of finding a way to make it work that doesn't involve >> completely breakin

Re: Validate a form's excluded fields if a value is present

2010-04-03 Thread Russell Keith-Magee
On Sat, Apr 3, 2010 at 8:14 AM, Boris Schaeling wrote: > On Thu, 01 Apr 2010 11:11:47 +0300, Russell Keith-Magee > wrote: > >> [...]I don't deny that it would be *really* nice to be able to >> automatically call full model validation on a model on form save - the >

Re: Validate a form's excluded fields if a value is present

2010-04-03 Thread Russell Keith-Magee
On Sat, Apr 3, 2010 at 3:03 PM, orokusaki wrote: > Russ, > > I think you're 100% right, and the "wrong place" part hit the nail on > the head. This morning I got really frustrated because I couldn't > quite see the big picure yet pertaining to the ORM and it's > relationship with ModelForm, partly

Re: Does Python 2.6.5 broke Django 1.1.1 Client Test?

2010-04-03 Thread Russell Keith-Magee
On Sat, Apr 3, 2010 at 9:58 PM, Dennis Kaarsemaker wrote: > On ma, 2010-03-22 at 08:53 -0400, Karen Tracey wrote: >> On Mon, Mar 22, 2010 at 4:07 AM, Raffaele Salmaso >> wrote: >>         Marcob wrote: >>         > Please, does anybody know which patch I need to apply to >>         1.1.1 to fix >

Re: High Level Discussion about the Future of Django

2010-04-04 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 11:02 AM, orokusaki wrote: > This is a bit abstract, but I'd like to bring up this idea, and > firstly let me say that I don't intend to waste the time of the major > contributors (unless you want to join in of course). I mostly want to > get an idea of what some of the cont

Re: High Level Discussion about the Future of Django

2010-04-05 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 2:55 PM, Dennis Kaarsemaker wrote: > On ma, 2010-04-05 at 14:37 +0800, Russell Keith-Magee wrote: > >> For some perspective - even though Python 3.1 is out, dropping support >> for Python 2.3 in Django 1.2 is being greeted as controversial in some >>

Re: High Level Discussion about the Future of Django

2010-04-05 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 3:30 PM, Jerome Leclanche wrote: > If you're going to use such an ancient version of a distribution, you > are only crippling yourself. As you said yourself, you should move on; > if someone is using Python 2.3, they can use Django 1.1/1.2. If they > want all-new 1.3 feature

Re: High Level Discussion about the Future of Django

2010-04-05 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 4:04 PM, Jerome Leclanche wrote: > The Right Solution for that is officially supporting Python 2.old in > Django 1.old, and eventually backporting minor features/fixes in > Django 1.old. The tradeoff here depends on what takes the most > development time: Backporting feature

Re: High Level Discussion about the Future of Django

2010-04-05 Thread Russell Keith-Magee
On Mon, Apr 5, 2010 at 9:31 PM, Jerome Leclanche wrote: > Without trying to defend anyone or anything here... Why ask other > developers to ignore an otherwise healthy discussion? > I believe Russ engaged in the discussion because he's interested; if > not in the idea, at least in discussing it.

<    1   2   3   4   5   6   7   8   9   10   >