Re: Django t-shirt

2023-01-15 Thread Stephen Wolff
s.com/It’s linked from the fundraising page: https://www.djangoproject.com/fundraising/I have a Django phone case from there!On Fri, Jan 13, 2023 at 11:44 AM Stephen Wolff <stephen.wo...@gmail.com> wrote:Hi there,A few Django versions ago (1.7 and maybe 1.8?!), t-shirts were produced and s

Django t-shirt

2023-01-13 Thread Stephen Wolff
could be produced? Yours hopefully, Stephen -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-deve

Re: Races in sessions

2021-02-07 Thread Stephen J. Butler
The way I'd solve this example is to create a unique constraint/index in the DB. The session check gives a quick pre-check, but in the event of a race the DB enforces absolute consistency. If the constraint isn't possible or is too complex, then your "SELECT... FOR UPDATE" belongs on the check for

Re: Oracle DB table prefix missing

2019-09-17 Thread Stephen J. Butler
Maybe I'm misunderstanding, but tablespace has to do with physical storage of the schema, not how tables are named. What you really want is a db_schema_name or something. I think this long, old ticket is related https://code.djangoproject.com/ticket/6148 On Tue, Sep 17, 2019 at 10:27 AM Christian

Re: Use migrations api to create a command for data migration between different databases

2016-06-10 Thread Stephen J. Butler
I usually just use dumpdata/loaddata to do these kinds of things. On Fri, Jun 10, 2016 at 12:47 PM, Bruno Ribeiro da Silva < bruno.dev...@gmail.com> wrote: > Hey guys, I'm not sure if I should be asking this here, but it's related > to django internals. > > I have this idea to create a command th

Re: Threads and db connection handling question

2016-06-02 Thread Stephen J. Butler
m the pool is no longer > required and disposed, pretty much on application exist, although the pool > handler can do what ever it wants with the threads. > > El jueves, 2 de junio de 2016, 20:22:21 (UTC-3), Stephen Butler escribió: >> >> I'm still a bit confused. What is th

Re: Threads and db connection handling question

2016-06-02 Thread Stephen J. Butler
I'm still a bit confused. What is the advantage of having connections closed automatically when the thread exits? It seems to me that you can quickly solve your problem by modifying your thread start routines: from django.db import connection from contextlib import closing def my_thread_start():

Re: Threads and db connection handling question

2016-06-01 Thread Stephen J. Butler
Is there a good reason to do this with your own custom thread pool management inside Django and (I'm assuming) WSGI? Celery is a well understood solution to the problem of background tasks and has a really nice API. On Wed, Jun 1, 2016 at 5:34 PM, Cristiano Coelho wrote: > Let me start saying so

Re: Django template 'if ... is' feature design

2016-04-14 Thread Stephen Kelly
Sven R. Kunze wrote: > Good evening everybody. That's my first post here, so let's how this > works. :) > > This particular discussion caught my sight as it might introduce something > really "low-level" functionality into the template engine. As far as I understand from https://github.com/dja

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Carl Meyer wrote: > No to tests, because we would be adding tests for undefined and > unreliable behavior. Yes, makes sense. Thanks again for the explanation. > It might be worth adding a short documentation note. We largely want to > avoid documenting Python's behavior in the Django docs, but a

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Carl Meyer wrote: > The point is that you shouldn't ever expect any consistent behavior when > using `is` with strings (whether in Python code or in Django templates), > because that behavior is not defined by the Python language, it's > implementation dependent. It happens that the CPython implem

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Ryan Hiebert wrote: >> * What should work / what should not work? Is the documentation clear? > > I don't know about the docs, but it _does_ work exactly like the Python > version. I suppose you are not responding to what you quoted. Anyway, that makes at least two people telling me that

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Stephen Kelly wrote: > * The unit tests added both have the same name ("template"). They should > have different names of the form 'if-tag-isNN' FYI, I made a pull request which fixes this and some other minor issues in the if-tag tests: https://github.com/django

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Daniel Chimeno wrote: > I think we should give an emphasis on this because are going to cause > problems to some people. Yes, this is why I suggested in my original mail that the feature needs more design consideration. * What should work / what should not work? Is the documentation clear?

Re: Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Ryan Hiebert wrote: > The `is` operator in Python checks for identical objects. A string is not > guaranteed to be exactly the same object as another string (in this > example "True" is not the same object (bytes in memory) as the second > "True", so Python rightly sees that they are not the same

Django template 'if ... is' feature design

2016-04-07 Thread Stephen Kelly
Hello, I reviewed https://github.com/django/django/commit/c00ae7f5 while updating the features of Grantlee, and I have the following notes: * The unit tests added both have the same name ("template"). They should have different names of the form 'if-tag-isNN' * The feature does not work th

Re: An idea for Q filter objects

2016-03-30 Thread Stephen J. Butler
I guess you could! I'm not as familiar with the Transforms API, but it looks like it would work too. On Wed, Mar 30, 2016 at 6:17 PM, Shai Berger wrote: > On Tuesday 29 March 2016 05:07:14 Stephen J. Butler wrote: > > Why not do this in the database? Create a view with an extra co

Re: An idea for Q filter objects

2016-03-28 Thread Stephen J. Butler
Why not do this in the database? Create a view with an extra column that is called "field_dttxt" that is to_char(field, 'Mon DD, '). Then add this as a field to Django and let it use the normal Q lookups. On Mon, Mar 28, 2016 at 5:13 PM, Michael E wrote: > I don't know if this is possible, b

Re: templates: override inner nested block

2015-05-25 Thread Stephen J. Butler
On Sun, May 24, 2015 at 6:28 AM, anentropic wrote: > Currently there is a problem (correct me if wrong) when you need to override > the content of an inner nested block. > > {% block parent %} > some stuff > {% block child %} > child stuff > {% endblock %} > some other stuff > {% endb

Re: New function to sort words with accents.

2015-05-05 Thread Stephen J. Butler
This is part of the database collation, and as I understand the Django docs it's not something Django handles internally. It's something you set/tweak inside your database. What database are you using? On MySQL the docs say to set a column collation. On Oracle I believe you can change the NLS_SORT

Re: render_to_response in Django 1.8 missing a request parameter?

2015-04-07 Thread Stephen Brooks
function when you want a request > context. > > See https://docs.djangoproject.com/en/1.8/topics/http/shortcuts/#render > > On 7 April 2015 at 11:28, Stephen Brooks > > wrote: > >> I note from the release notes for Django 1.8 >> https://docs.djangoproject.

render_to_response in Django 1.8 missing a request parameter?

2015-04-07 Thread Stephen Brooks
l', {'foo': 'bar'}, RequestContext(request)) If the passing of a context_instance is now to be avoided, I would expect to be able pass in the request object directly to render_to_response. Otherwise how are the context processors to do their job? -- Stephen -- You r

Re: CSRF REASON_NO_REFERER with meta referrer tags

2015-02-03 Thread Stephen J. Butler
On Tue, Feb 3, 2015 at 1:39 PM, Aymeric Augustin wrote: > Le 3 févr. 2015 à 16:54, Jon Dufresne a écrit : >> Assuming this MITM already has the correct CSRF value, what is >> stopping this MITM from adding a REFERER to the HTTPS request? > > While MITM of HTTP is trivial, MITM of HTTPS isn't poss

Re: Two proposals for the Django Code of Conduct.

2014-09-10 Thread Stephen Burrows
for an "affirmative" CoC so that people can actually have something to review. And if you have to pick one, read the geek feminism wiki. Best, Stephen [1] http://geekfeminism.wikia.com/wiki/Timeline_of_incidents On Wed, Sep 10, 2014 at 9:51 AM, Benjamin Scherrey wrote: > Hi Josh,

Re: Two proposals for the Django Code of Conduct.

2014-09-09 Thread Stephen Burrows
road is paved with those. In other words, good intentions are not enough on any side of any argument. Best, Stephen On Tue, Sep 9, 2014 at 11:47 AM, Alex Gaynor wrote: > When Jacob and I originally drafted the CoC, we specifically included an > enumeration of some disallowed behaviors on th

Re: Two proposals for the Django Code of Conduct.

2014-09-09 Thread Stephen Burrows
whelm people (slash you) with too many links. If you want more, you can use google. If you think a policy like this doesn't need to exist, you are IMO, frankly, very wrong. But if you think it just needs to be written differently, stop talking about it and show us what that would look like! --Steph

Re: Two proposals for the Django Code of Conduct.

2014-09-08 Thread Stephen Burrows
If you think you could do it better, maybe you should submit your own version for consideration. I assume that's how the process works. On Mon, Sep 8, 2014 at 11:20 AM, Benjamin Scherrey wrote: > Daniele, > > You're reading me completely wrong. I am not being sarcastic at all. > I'm pointin

Re: Two proposals for the Django Code of Conduct.

2014-09-08 Thread Stephen Burrows
, 2014 at 12:30 AM, Stephen Burrows < stephen.r.burr...@gmail.com> wrote: > Ben, > > Just to clarify, it sounds like what you're saying is the following: If > there were a member of the django community who (may this never be the > case) was harassing members of the django co

Re: Two proposals for the Django Code of Conduct.

2014-09-08 Thread Stephen Burrows
he application of the policy, but it seems like you're (perhaps unintentionally) exaggerating the scope and purpose of the policy to support your point. --Stephen On Mon, Sep 8, 2014 at 12:16 AM, Benjamin Scherrey wrote: > I thought I made my objections pretty clear in my original email but

1.7 release?

2014-08-19 Thread Stephen Burrows
It's been a while since I've heard anything about the 1.7 release - but it looks like there aren't any release blockers left . And there weren't any the last time I checked either. What's th

Re: Querying across FK produces too many OUTER JOINs (1.6) or FieldError (1.7)

2014-07-04 Thread Stephen J. Butler
On Fri, Jul 4, 2014 at 4:42 PM, Jon Dufresne wrote: > Suppose I have the following models: > > --- > class Container(models.Model): > pass > > class Item(models.Model): > container = models.ForeignKey(Container) > previous = models.ForeignKey('self', null=True) > current = models.

Re: Self-referenced template recursion handling

2013-12-09 Thread Stephen McDonald
Cool! FWIW I built the same feature as an external app called django-overextends some time ago, you might like to compare implementations: https://github.com/stephenmcd/django-overextends/ https://github.com/stephenmcd/django-overextends/blob/master/overextends/templatetags/overextends_tags.py

Re: Django Middleware Architecture Proposal

2013-11-27 Thread Stephen Brooks
fully backward compatible, and provides a way for application developers to put transaction handling into either outer or inner dispatch functions with leak-proof semantics. Your thoughts please... Any votes for this one? Regards, Stephen Brooks -- You received this message because you are s

Django Middleware Architecture Proposal

2013-11-27 Thread Stephen Brooks
are classes during a deprecation period. Certain use cases (deferred rendering) will be problematic and maybe good solution suggestions will be made for this, otherwise there will be a backward incompatibility for such cases. Comments, suggestions and ideas welcome. I'd like to guage what sup

Re: Tests of contrib apps

2013-03-25 Thread Stephen Burrows
ble to use manage.py test as a detriment rather than an advantage. If people want to not run the tests for an app, they can always just list the apps they do want to test. Also, django-nose is pretty useful for handling test discovery issues, if you're looking for a quick fix. --Stephen On Wedn

Re: first() and last(), earliest() and latest()

2013-03-03 Thread Stephen Burrows
So if I understand correctly, you want something that returns 0-or-1 objects, without having to do try/except? (Or alternately, try: qs[:1][0] except IndexError.) First of all, I don't understand why first/last are the names you've chosen. This isn't about getting the first object or the last o

Re: Ticket 19237

2013-02-06 Thread Stephen Burrows
... if we're concerned about strip_tags' ability to hit this kind of edge case, why are we using regex? http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags/1732454#1732454 Or more generally http://www.codinghorror.com/blog/2009/11/parsing-html-the-

Re: Django Admin Revamp - Any updates?

2012-11-21 Thread Stephen Burrows
There is a project to create a third-party django admin. It is currently moving slowly, but it does have basic admin functionality. https://github.com/django-djam/django-djam irc: Freenode/#django-djam (if you want to ping me about it.) --Stephen On Friday, November 16, 2012 7:41:05 AM UTC-8

Re: Add a "split" field to a model causes problems

2012-11-03 Thread Stephen Burrows
I've opened a ticket to track this issue. On Tuesday, October 23, 2012 3:52:10 AM UTC-7, Andrew Ingram wrote: > > Hi all, > > This one stung me today. Basically as part of an event (calendar) app, I > have functionality for splitting a series of even

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-10 Thread Stephen Burrows
Thanks, Florian. That clarifies things. I didn't realize collectstatic was using two backends, but it makes sense. And thanks for putting up with me not being up to speed on the IRC discussion. On Tuesday, October 9, 2012 1:20:39 AM UTC-7, Florian Apolloner wrote: > > Hi Stephen, >

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-10-08 Thread Stephen Burrows
I'm a little confused by the track the discussion took recently... my impression was that the solution would *not* be to change from last_modified to a checksum, or to add an additional checksum method. Instead, storage backeds could support a has_changed method, which could be overridden to pr

Anyone have time for a 5-for-1?

2012-10-02 Thread Stephen Burrows
om/ticket/18742 https://code.djangoproject.com/ticket/18829 I was hoping someone could have a look at: *https://code.djangoproject.com/ticket/11027*<https://code.djangoproject.com/ticket/11027> Thanks! --Stephen -- You received this message because you are subscribed to the Google Group

Re: #16630: Support for HTML5 input types

2012-10-01 Thread Stephen Burrows
gners know they need to watch out for that. Since the only obstacle seems to be getting some sort of consensus among core devs that this is a change that's okay to make, I was hoping to get some feedback, and maybe get the patch merged in. Best, Stephen [1] https://code.djangoproject.com/t

Re: Feature request: collectstatic shouldn't recopy files that already exist in destination

2012-09-30 Thread Stephen Burrows
I use S3 as well, and I have seen cases where files get copied that I know don't need to be. That being said, it was never so slow that it was an issue for me. Is there clear evidence that this is something which can't be handled by the S3 backend due to an inadequate API on the django side? --

Re: Newline stripping in templates: the dnl way

2012-06-28 Thread Stephen Kelly
Leon Matthews wrote: > On 2 March 2012 09:45, Carl Meyer > wrote: >> Same reason any ticket stalls - it seems that nobody felt strongly >> enough about it to put the time into reviewing and thoroughly testing >> the patch and marking it Ready for Checkin. If you'd like to see it in >> (post 1.4 a

Re: ModelForm enforces its version of save_m2m

2012-05-25 Thread Stephen Burrows
m/pculture/mirocommunity/blob/31688f2/localtv/user_profile/forms.py#L76. Does it a little differently, but the same result. --Stephen On Tuesday, May 22, 2012 2:53:00 AM UTC-7, is_null wrote: > > Hello everybody, > > Currently, Django ModelForm enforces it's local version of save_m

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

2012-05-03 Thread Stephen Burrows
r this is something that (generally speaking) people would be interested in seeing. I tried checking the tracker and google for previous discussions about this, but didn't find anything. --Stephen -- You received this message because you are subscribed to the Google Groups "Django

Re: Proposal: upgrading the choices machinery for Django

2012-04-04 Thread Stephen Burrows
this project available as a third-party app? --Stephen On Apr 4, 5:41 pm, Alex Ogier wrote: > On Wed, Apr 4, 2012 at 5:18 PM, Łukasz Langa wrote: > > Wiadomość napisana przez Daniel Greenfeld w dniu 4 kwi 2012, o godz. 22:48: > > > > On two occasions now I've

Re: Revisiting multiline tags

2012-02-19 Thread Stephen Burrows
> Personally, I would like to be able to see a tag all at once (that is > without scrolling), even though I might have to scroll to get to the > start of it.  I believe this improves readability of the template. My > specific use case is with include tags with long template paths and > added contex

Re: Feature Request: Client side validation classes for forms

2012-02-08 Thread Stephen Burrows
The problem I've run into with client-side validation of django projects is: 1) If you can't replicate every piece of validation the server does, the user experience will be inconsistent, which is bad. 2) You can't replicate every piece of validation the server does. Simple example: uniqueness che

Re: Deprecate change pk + save behavior for 1.4

2011-12-05 Thread Stephen Burrows
tural primary keys since I started using Django. (Though probably that's because it's so easy in django to use the AutoField pk and because so many things expect integer pks.) Are there a lot of people who use them? --Stephen On Dec 3, 7:58 pm, Anssi Kääriäinen wrote: > On Dec 3, 7:18 pm

Re: load template tag library

2011-11-16 Thread Stephen Burrows
I second what Luke and Russ have already said. If what you're interested in is a way to securely allow users to enter template code into the database, you can just write a custom field that validates its input for security problems. Here's a third-party implementation of a validator for such a fi

Re: contrib.sessions test oddities

2011-10-04 Thread Stephen Burrows
some of what you're experiencing. Best, Stephen Burrows On Oct 4, 9:22 pm, Justin Holmes wrote: > I posted this message on -users today, but at PaulM's urging, I'm > bringing it over here out of concern that it may reflect a bug in the > contrib.sessions test suite. > >

Re: deprecation vs removal

2011-10-03 Thread Stephen Burrows
mand, etc, that still works but has been replaced. - en.wikipedia.org/wiki/Deprecate Best, Stephen Burrows On Oct 2, 2:07 am, Łukasz Rekucki wrote: > 2011/10/2 Alexander Schepanovski :> Then when I > upgrade django I'll just upgrade it and fix> any wrong calls, imports, >

Re: confusing things in Trac UI (was: Design decision for #1625...)

2011-09-21 Thread Stephen Burrows
nce. Ticketeer should. https://github.com/melinath/django-ticketeer Best, Stephen Burrows -- 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 fro

Re: Weekly Check-in

2011-08-31 Thread Stephen Burrows
{% trans "foo" as var %} Can't you already do this with blocktrans? [1] --Stephen [1] https://docs.djangoproject.com/en/dev/topics/i18n/internationalization/#blocktrans-template-tag -- You received this message because you are subscribed to the Google Groups "Django dev

Re: initial_data and post_syncdb conflicts

2011-08-19 Thread Stephen Burrows
Perhaps I'm missing something... initial_data is "test-only", right? As opposed to other fixtures which should always be loaded? Then why would the other fixtures rely on the initial_data? On Aug 18, 4:15 pm, David Cramer wrote: > We've been working on switching our test suite to use some new "su

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

2011-07-22 Thread Stephen Burrows
This post seems to be squarely in django-users territory, not django- developers. Perhaps the discussion could continue there? On Jul 22, 9:25 pm, Andre Terra wrote: > I'm on my phone, and therefore read your message really quickly, so > excuse me if I misunderstood the issue. > > A few questions

Re: Reversing translated urls in templates

2011-07-05 Thread Stephen Kelly
Jannis Leidel wrote: > > On 05.07.2011, at 09:26, Jonathan Slenders wrote: > >> I'm also +1 on {% language lang_code %}... {% endlanguage %} >> >> We are using exactly this template tag for maybe about half a year >> already. Not for i18n urls, but for formatting numbers. The decimal >> separat

Re: Admin inlines and fieldsets

2011-06-28 Thread Stephen Burrows
Hey, I reopened the ticket and suggested a syntax that would make more sense to me than the options already presented there. Best, Stephen On Jun 27, 10:00 am, Russell Keith-Magee wrote: > On Mon, Jun 20, 2011 at 7:51 PM, Aymeric Augustin > > > > > > > > > > wr

Re: "c" date formating and Internet usage

2011-06-28 Thread Stephen Burrows
er - does include that bit of magic. Is there a particular reason for this? Also, if a timezone is assumed, wouldn't it make more sense to assume the timezone of the project rather than UTC? Rather than noting an inconsistency, can we make this consistent? On Jun 28, 5:47 am, Yohan Boniface w

Re: Timezone-aware storage of DateTime

2011-06-28 Thread Stephen Burrows
would need to be a separate field in the database to store the timezone. On Jun 27, 3:12 pm, Sam Bull wrote: > On 2011-06-02, at 12:34 AM, Stephen Burrows wrote: > > > Django actually already adds support for some capabilities to certain > > database backends, if I'm not

Re: "c" date formating and Internet usage

2011-06-26 Thread Stephen Burrows
This is related to the recent discussion about timezone-aware datetime storage [1] and how django doesn't do it. Since the date filter's "c" argument is handled with python's datetime.isoformat() [2] timezone- naive datetimes will not display a UTC offset. [1] http://groups.google.com/group/djang

Re: 5-for-1?

2011-06-18 Thread Stephen Burrows
le-posting, but you can check it out > here:https://github.com/trapeze/fancy_tag > > It's got unit tests, keyword argument support (like the new with tag), *args > support, **kwargs support, and support for the "with " pattern. > > Is this something I should convert

Re: 5-for-1?

2011-06-17 Thread Stephen Burrows
Thanks, Carl. :-) I probably should've written a thank you note sooner & separately. As it is, I am also writing to request a five-for-one again. I have reviewed: 16168 16173 16176 16235 16237 I would love it if someone could look at 13956 [1] Best, Stephen [1] http://code.djangopr

Re: Django Error Display Page

2011-06-10 Thread Stephen Burrows
or Firefox, I like to use the Modify Headers add-on [1] and spoof the AJAX request - then I can browse the error page in its full glory. :-) ) --Stephen [1] https://addons.mozilla.org/en-us/firefox/addon/modify-headers/ -- You received this message because you are subscribed to the Google Groups

5-for-1?

2011-06-07 Thread Stephen Burrows
Hi - is the 5-for-1 deal still active on ticket reviews? [1] If so, I've reviewed the following tickets: 3624 16152 16157 16158 16166 And would love it if someone could have a look at ticket 14082 [2]. If not, ah well. :-) Best, --Stephen Burrows [1] http://groups.google.com/group/d

Re: Vote on {% include %} behaviour.

2011-06-03 Thread Stephen Burrows
#12008 was repurposed as a documentation improvement because the current implementation is correct and just needs to be explained better. As for the other two... I agree that consistency is important, and that it would make sense (in a way) for ConstantIncludeNode to either always raise or always s

Re: Timezone-aware storage of DateTime

2011-06-01 Thread Stephen Burrows
Django actually already adds support for some capabilities to certain database backends, if I'm not mistaken - such as cascades through GFKs on delete. In terms of time zones, could django "assume"/ensure that the datetime stored in the backend is UTC, then handle the conversion to the local timez

Re: DDN: #2594 (Template system whitespace) may cause blocktrans issue

2011-04-20 Thread Stephen Kelly
Jonathan Slenders writes: > > Some concerns, even if I don't know much about the subject. > > Are you sure that it's always appropriate to strip indentation? I didn't say anything about 'always' :) -- You received this message because you are subscribed to the Google Groups "Django develop

DDN: #2594 (Template system whitespace) may cause blocktrans issue

2011-04-17 Thread Stephen Kelly
Hi, I posted this before but I think people had the 1.3 release on the brain, so now that's out (congrats :)), I'm trying again: http://thread.gmane.org/gmane.comp.python.django.devel/30752 ** copied content ** #2594 is now ready for checkin as far as I can tell for the 1.4 milestone (I under

Re: Comments no longer possible on djangobook.com?

2011-04-17 Thread Stephen Kelly
Alex Gaynor wrote: > Hi Steve, > > The DjangoBook is not part of the Django Project itself, so this isn't > really the right place to report a bug with it: > http://djangobook.com/contact/ is the appropriate way to try and get into > contact with the authors. Ok done, thanks. > > Alex > --

Comments no longer possible on djangobook.com?

2011-04-17 Thread Stephen Kelly
Hi, I think someone here runs that site. Are the comments all gone or am I missing something? Thanks, Steve. -- 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 u

Re: Proposal: switch to HTML5 for bundled templates

2011-03-28 Thread Stephen Burrows
Anyone interested in reading about html5 can find a lot of great information at http://diveintohtml5.org/. Some of the highlights: 1. a change to the doctype of the admin from http://www.w3.org/TR/xhtml1/DTD/xhtml1- strict.dtd"> to should still keep ie6 in Almost Standards Mode [1] 2. Browsers

Re: type-field model inheritance

2011-03-02 Thread Stephen Burrows
It sounds like you want to make polymorphic models - queries that retrieve various types of objects. There's an implementation of this: https://github.com/bconstantin/django_polymorphic On Mar 2, 9:07 pm, Craig de Stigter wrote: > I realise everyone's been busy with getting 1.3 ready, but doesn't

Re: Getting Slammed Hard on Foreign Keys in the admin due to __unicode__

2011-02-13 Thread Stephen Burrows
might actually decrease. To put it another way, "Premature optimization is the root of all evil." Best, Stephen On Feb 13, 10:35 pm, Matteius wrote: > I have a very small test database on my test development virtualbox > environment and so while I've been adding in custom AJAX

Re: Inheritance of rel fields from base classes should not cause conflicts if the base classes involved are all abstract.

2011-02-11 Thread Stephen Burrows
provement, docs, and tests; I plan to do that next week. Best, Stephen Burrows On Feb 10, 1:48 am, Russell Keith-Magee wrote: > On Wed, Feb 9, 2011 at 1:43 AM, Stephen Burrows > > > > > > > > > > wrote: > > Hi! I was going to submit this as a ticket, but I glan

Inheritance of rel fields from base classes should not cause conflicts if the base classes involved are all abstract.

2011-02-08 Thread Stephen Burrows
y also need to move the get_FIELD_display method declaration [2] into cls._meta.add_field.) If this is an acceptable idea, I would be happy to add tests and docs. If the general idea is acceptable, but the implementation is flawed, I would be happy to write patches using other methods that people may

Re: Various small issues

2011-01-31 Thread Stephen Kelly
Klaas van Schelven wrote: > Hi all, > > Maybe I wasn't clear enough last time... I've provided patches for > both these old problems and would appreciate either a brutal Linus > style rant for being such an idiot or would like to see the patches > applied. Silence... not so much. > Hi Klass, Y

Re: annotating fields with null=True

2011-01-26 Thread Stephen Burrows
Perhaps I'm missing something, but if you count all the defined foreign keys AND all the null values, won't you just end up with a count of the parent model? Or are you saying that you explicitly want to count how many values are null *instead of* defined? On Jan 25, 2:39 pm, Sergiy Kuzmenko wrot

DDN: #2594 (Template system whitespace) may cause blocktrans issue

2011-01-23 Thread Stephen Kelly
Hi, #2594 is now ready for checkin as far as I can tell for the 1.4 milestone (I understand 1.3 is closed), with one side-issue. http://code.djangoproject.com/ticket/2594 The side issue is that msgids in the .po file extracted with makemessages will not match the untranslated string that Djang

Re: Problem with ``Model.objects.create``

2011-01-04 Thread Stephen Burrows
model instance will now validate, this won't >>> raise an exception. >>> obj.save() If the ValidationError is being raised correctly, then this might be a topic more for django-users than django-developers. Best, Stephen [1] http://code.djangoproject.com/wiki/IntegrityError

Ticket 14567 bump/update (ModelMultipleChoiceField: self.queryset.none() vs. [])

2010-12-09 Thread Stephen Burrows
sting topics, as it's a fairly simple change, but I was wondering if there's anything I should be working on to get this ready for commit. I'd rather not have to continue making minor updates to make sure the patch continues to match trunk. Best, Stephen Burrows -- You received this

DDN: Localize anything with _(this_syntax) ?

2010-11-11 Thread Stephen Kelly
Hi, Currently strings in templates can be translated with {{ _("foo") }} syntax. Localizing values can be done with a filter {{ foo|localize }}. I have a patch to allow localizing localizable values like {{ _(foo) }}, which I think is more convenient. It sort of mixes up the meaning of _() to

Re: Receipt for mail to security@ ?

2010-11-10 Thread Stephen Kelly
Jacob Kaplan-Moss wrote: > On Wed, Nov 10, 2010 at 1:39 PM, Stephen Kelly > wrote: >> Can someone confirm that the email I sent yesterday made it through? Last >> time I emailed that list it was marked as spam apparently. > > Yes, we've got it. We'll get b

Receipt for mail to security@ ?

2010-11-10 Thread Stephen Kelly
Hi, Can someone confirm that the email I sent yesterday made it through? Last time I emailed that list it was marked as spam apparently. All the best, Steve. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send em

Re: custom function for autoescape

2010-11-08 Thread Stephen Kelly
Hi, Sorry I'm late to this thread. I've been working hard on i18n. Luke Plant wrote: > Logically I would expect the following 3 to produce the same output: > > 1) I use mark_safe on my safe input string and use addslashes to add > the slashes > > Template("{{ val|addslashes }}").render( > Conte

Re: Bump/question for #13956

2010-11-03 Thread Stephen Burrows
As far as I know, the only thing still missing from the ticket is a decision as to whether there need to be documentation changes for simple tags and inclusion tags... if there need to be changes, I could try working on them. I would just need to know. Best, Stephen -- You received this message

Re: Bump/question for #13956

2010-10-27 Thread Stephen Burrows
Thanks for the suggestion. I've added tests for the inclusion tags, so now everything is being tested that I could think of - with the exception of inclusion tags that have takes_context=True. Really, though, they should act the same way from the tag's point of view. The only difference is that if

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Stephen Kelly wrote: > Stephen Kelly wrote: > >> Łukasz Rekucki wrote: >> >>> On 19 October 2010 23:41, Jacob Kaplan-Moss >>> wrote: >>>> On Tue, Oct 19, 2010 at 4:31 PM, James Bennett >>>> wrote: >>>>> If we&#x

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Stephen Kelly wrote: > Łukasz Rekucki wrote: > >> On 19 October 2010 23:41, Jacob Kaplan-Moss >> wrote: >>> On Tue, Oct 19, 2010 at 4:31 PM, James Bennett >>> wrote: >>>> If we're going to do this, could we also look at deprecating the >

Re: Feature proposal: escape hatch for colliding template syntax in django templates

2010-10-19 Thread Stephen Kelly
Łukasz Rekucki wrote: > On 19 October 2010 23:41, Jacob Kaplan-Moss > wrote: >> On Tue, Oct 19, 2010 at 4:31 PM, James Bennett >> wrote: >>> If we're going to do this, could we also look at deprecating the >>> 'templatetag' template tag? There are a couple cases a 'verbatim' tag >>> wouldn't cov

Re: A prompt 1.2.3 release

2010-09-13 Thread Stephen Wolff
Hi Eric, Does this mean that the account we set up on our server is no longer necessary? Stephen On 11 Sep 2010, at 01:09, Eric Holscher wrote: There was a hudson server running IIRC, but http://hudson.djangoproject.com/ is not responding to me. I took the hudson instance down because

Re: a new template algorithm

2010-08-31 Thread Stephen Wolff
Yep, and encourage new people to the list to actively contribute! One thing springs to mind, an agile / crystal process 'game', which encourages all parties to contribute ideas within a time frame (usually half an hour to a hour), without prejudice or discouragement. This gets lots of good

Re: Global name 'table' not defined

2010-08-30 Thread Stephen Wolff
The only time i've seen this sort of thing happening was when i had an app name that got in the way of something in the core/python namespace ('collections'). Do you have any apps that could be getting in the way? Does the error occur with all your projects? Stephen On 30

Re: How to get patches from 'Accepted' to 'Committed'

2010-08-04 Thread Stephen Kelly
Jacob Kaplan-Moss wrote: > A polite nag on the mailing list -- like this email -- is a perfect > way to prod things along. > Cool, thanks for committing those. All the best, Steve. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To pos

How to get patches from 'Accepted' to 'Committed'

2010-08-03 Thread Stephen Kelly
Hi, The diagram here shows the lifecycle of a ticket. http://docs.djangoproject.com/en/dev/internals/contributing/#ticket-triage What I don't get is how a ticked goes from 'Accepted' to 'Ready for checkin' The context I ask in is in relation to patches I submitted a year ago and which were acc

Re: Patch: Indefinite args for simpletags and inclusion tags

2010-07-16 Thread Stephen Burrows
I went ahead and made a ticket with the patch. Thanks! http://code.djangoproject.com/ticket/13956 --Stephen On Jul 16, 1:25 pm, Tobias McNulty wrote: > On Fri, Jul 16, 2010 at 1:07 PM, Stephen Burrows < > > stephen.r.burr...@gmail.com> wrote: > > Before posting the patch

Patch: Indefinite args for simpletags and inclusion tags

2010-07-16 Thread Stephen Burrows
o's ticketing system, I wanted to check whether this would be a non-trivial patch and whether there might be any good alternatives. Thanks! --Stephen -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this

Re: Trac workflow assistance (commiter feedback needed)

2010-04-24 Thread Stephen Wolff
ttp://hudson.djangoproject.com/ Stephen -- 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+unsubs

  1   2   >