Re: unicode issues in multiple tickets (#952, #1356, #3370) and thread about Euro sign in django-users

2007-02-15 Thread Adrian Holovaty
r* we convert the rest of the framework to be Unicode-aware? I apologize in advance if you've already brought this up and explained it. Just trying to understand your thinking here. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~

Re: Newforms styling suggestion

2007-02-15 Thread Adrian Holovaty
aking error > fields highlighted red, etc. Just a thought. Hey Brian, I think we might have discussed this before, but the discussion fizzled out. What would you want to style -- the form HTML tag itself? The ? The table row (in case of as_table())? Adrian -- Adrian Holovaty holovaty.

Re: reopened tickets should reset stage to unreviewed

2007-02-19 Thread Adrian Holovaty
ent. If anybody knows how to accomplish this in Trac, let us know. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post

Re: newforms.util.ValidationError has nothing in common with core.validators.ValidationError. Why?

2007-03-20 Thread Adrian Holovaty
Max, django.core.validators is going away in the long term. Use django.newforms if you want your code to be forwards-compatible. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: max_length vs. maxlength

2007-03-20 Thread Adrian Holovaty
roup/django-users/browse_thread/thread/a4e09b7b027b56bb/9aaeda1ea5bc87eb Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&qu

Re: newforms.util.ValidationError has nothing in common with core.validators.ValidationError. Why?

2007-03-20 Thread Adrian Holovaty
nd, speaking as a perfectionist, chances are that it bothers me even more than it bothers you. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-03-25 Thread Adrian Holovaty
velopments. Joseph, are you around, and what's the status? I can happily take over if you're not in a position to do the implementation. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you a

Re: [Changeset] r4828 - django/trunk/django/conf/locale/de/LC_MESSAGES

2007-03-25 Thread Adrian Holovaty
ompletely neglected to consider that policy. My mistake! Are there any arguments *for* breaking the policy and including the names? If not, let's roll it back. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received thi

Re: {% url %} for generic views (proposal)

2007-03-27 Thread Adrian Holovaty
itch, anyway, because it lets us do more interesting things. We could likely keep it backwards compatible by changing the patterns() function to convert any plain tuple into an object of the type url() returns. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~--

Re: Tags cannot contain newlines

2007-03-29 Thread Adrian Holovaty
ge mailing-list discussion of the aesthetics of newlines vs. no newlines. Please accept the fact that tags cannot contain newlines. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: {% lorem %} only half checked in

2007-03-29 Thread Adrian Holovaty
at it, I'm going to move it into a new django.contrib package; the tag is nice, but it's not fundamentally necessary to the template system. -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you

Re: {% lorem %} only half checked in

2007-03-29 Thread Adrian Holovaty
ew django.contrib.webdesign package: http://www.djangoproject.com/documentation/webdesign/ This django.contrib package is for anything and everything that has a "Web design" focus. If you have ideas for other designer-friendly functionality in Django, please suggest them! Adrian -- Adr

Re: Design decision on #3532 -- spaceless templatetag

2007-03-31 Thread Adrian Holovaty
completely fine with changing {% spaceless %} so that it removes *all* spaces rather than leaving one. Go for it! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Built-in form fields: how "valid" should they require data to be?

2007-03-31 Thread Adrian Holovaty
ic here -- is U.S. state abbreviations. That validator checks not only that the abbreviation is two letters, but that it's one of the valid state/territory abbreviations. States/territories don't get added very often, so it's worth the extra level of validation in this c

Re: Built-in form fields: how "valid" should they require data to be?

2007-03-31 Thread Adrian Holovaty
t; permanently invalid (there aren't many of these and they're easy to > test for). > > And leave it at that. Sound good to everyone? Sounds good. You've probably already thought of this, but it should accept numbers with or without hyphens, and normalize it to the number *wit

Re: Built-in form fields: how "valid" should they require data to be?

2007-03-31 Thread Adrian Holovaty
h an explosion of, well, great local flavor when I first created the package. :) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&q

Re: Local flavours content

2007-04-01 Thread Adrian Holovaty
ple tend to want to have control over, and we end up making subframeworks that let people customize (see, for example, the User.get_profile() stuff). Nebojša, does that help? If you're still unsure, it might help if you gave more specifics on what sort of information/logic you wanted to includ

Re: Are we dropping auto_now and auto_now_add for 1.0?

2007-04-01 Thread Adrian Holovaty
o_now can be accomplished with "default=datetime.datetime.now", and auto_now_add can be accomplished with a custom save() method. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: newforms: better table markup

2007-04-02 Thread Adrian Holovaty
out). -1 on for the same reason. As for "headers," I'm +0. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&qu

Re: Stability of LogEntry in django newforms?

2007-04-03 Thread Adrian Holovaty
1.0, so it's probably safest not to interface with it directly in your own code. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django develop

Re: Stability of LogEntry in django newforms?

2007-04-03 Thread Adrian Holovaty
ather than django-developers. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-dev

Re: add CACHE_KEY_PREFIX functionality

2007-04-03 Thread Adrian Holovaty
lobal CACHE_KEY_PREFIX setting, but we're always hesitant to add new settings. What if we removed the CACHE_MIDDLEWARE_KEY_PREFIX, in favor of a new CACHE_KEY_PREFIX setting? Is there a case where the two settings would need to differ? Adrian -- Adrian Holova

Re: #3075 - Ifequal tag extension to handle mask operators

2007-04-05 Thread Adrian Holovaty
On 4/5/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > Well, by law of order of operations, the and operator takes priority, > so that would be (a == x and b == y) or c == z. > > However, in the if tag, combination of 'and' and 'or' in the same tag > is not allowed, precisely because the orde

Re: syncdb and missing many-to-many tables

2007-04-05 Thread Adrian Holovaty
uot;fields." I'm tempted to agree with Malcolm and Russell and say the best solution is probably to get schema evolution working. Maybe this is our chance to get some momentum behind that? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~

Re: Backwards incompatible changes

2007-04-06 Thread Adrian Holovaty
ce, saying the development version will be a bit tumultuous for the immediate future. I'll send out that announcement. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: newforms and unicode/bytestrings

2007-04-06 Thread Adrian Holovaty
sense > of how well it's working, I think. I'm 100% for that. Let's do it. If you think a branch would be better for this, we can make that happen, too. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You rece

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-04-06 Thread Adrian Holovaty
lked about. Joseph -- I saw you checked in a django.newforms.formsets module in the newforms-admin branch. How do you envision that interacting with edit_inline? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this m

Re: [Changeset] r4941 - django/branches/newforms-admin/django/contrib/admin

2007-04-06 Thread Adrian Holovaty
the absolute-URL creation behind the scenes. It wouldn't be *too* horrible if we required HttpResponseRedirect to take an absolute URL, but I'm a big fan of allowing the relative URLs for convenience. Something interesting to think about, indeed! Adrian -- Adrian Holovaty holovaty.c

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-04-06 Thread Adrian Holovaty
On 4/6/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > As of [4944], the newforms-admin admin site should be working properly > -- you're right that I hadn't finished the AdminSite stuff. (Sorry for > the miscommunication!) It's working pretty well now. To acti

Re: Create "unicode" branch, please

2007-04-06 Thread Adrian Holovaty
On 4/7/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Can one of you guys create a unicode branch in the repository, please. I > don't have the right permissions to make a branch with "svn copy". I'm on it... Adrian -- Adrian Holovaty

Re: Create "unicode" branch, please

2007-04-06 Thread Adrian Holovaty
wiki page: http://code.djangoproject.com/wiki/UnicodeBranch Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-04-08 Thread Adrian Holovaty
for this, with an example of your models? I agree that a better error message would be a good thing, but I'd like to find the exact problem in your models (or bug in the newforms-admin branch) in order to figure out whether to display the message.

Re: contrib proposal: django-values

2007-04-08 Thread Adrian Holovaty
addition that would come in handy for many people. Nice job, Gulopine! Next steps: Let's discuss these three points I've brought up, and let's play around with the code as it stands so far to see if any other design-level questions creep up. Adrian -- Adrian Holovaty holovaty.com

Re: contrib proposal: django-values

2007-04-08 Thread Adrian Holovaty
of the box, though, along the lines of "localflavor." We need a name that's descriptive but not too generic-sounding. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are

Re: wrong names in variables. startapp rutine

2007-04-09 Thread Adrian Holovaty
> > Please, see > http://code.djangoproject.com/ticket/3846 Thanks, Mario. I've checked in the patch. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Removing auto_now and auto_now_add

2007-04-10 Thread Adrian Holovaty
it has the advantage that documenting it will force us to come up with a clean "public" API and documentation on how to subclass database fields. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread Adrian Holovaty
related purposes. Hi jp, The options that apply to the admin interface have been factored out as options to the admin class. Here's more information: http://code.djangoproject.com/wiki/NewformsAdminBranch Adrian -- Adrian Holovaty hol

Re: Django is really starting to muddle MVC, and it has me concerned

2007-04-12 Thread Adrian Holovaty
; and "editable" arguments, those are still specified in Fields. In my view, those are a bona fide part of model logic -- they describe important metadata about database fields that isn't merely useful by the admin site. Hope this a

Re: Oracle patch is ready

2007-04-20 Thread Adrian Holovaty
rocess. Malcolm, since you've been dealing with query.py and other databasey parts of Django, do you want to take the lead on the merge? Or Jacob? I could get to it next week if you guys are busy. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---

Re: Adrian: newforms-admin patching thoughts?

2007-04-26 Thread Adrian Holovaty
rent admin because of its limited lifespan. My preference is for choices 2, 3 and 4. I've given you commit access on that branch, so feel free to apply any changes directly to the branch. I'm happy to help out here, too, so feel free to mark tickets as [newforms-admin]. Thanks, Adrian --

Re: Removing leading and trailing whitespace in forms.CharField clean method

2007-04-29 Thread Adrian Holovaty
Maybe a separate Field class, if anything. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Merge some branches in before 1.0?

2007-04-30 Thread Adrian Holovaty
; 0.96 is the stable, recommended version. > > Therefore, why don't we get some of these branches merged in (once > newforms-admin and unicodisation are sorted out), and let people get > onto testing them? That's the plan. Once the branches get finalized, they'll get moved to

Re: Edit inline in newforms-admin branch (ATTN: Joseph Kocherans)

2007-05-13 Thread Adrian Holovaty
your ETA on these changes? I finally have some free time this week, and I'd like to work toward getting this branch finalized. If you don't have time to hack on this, let me know where you left off. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~-

Re: Two field-related suggestions for newforms.models

2007-05-14 Thread Adrian Holovaty
everse_fields is too messy of an abstraction to be useful. There comes a point where it's not worth inventing frameworks on top of frameworks, and I think we're hitting a sweet spot pretty well right now, with the current form_for_model() and form_for_instance() implementations. (With the

Changeset [5231] -- do_clean_*() is awkward naming

2007-05-14 Thread Adrian Holovaty
started: cleanfield_foo() validate_foo() Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send ema

Re: Changeset [5231] -- do_clean_*() is awkward naming

2007-05-14 Thread Adrian Holovaty
emails.""" John makes an excellent point. I'm +1 on changing clean_data to cleaned_data and keeping the "clean_XXX" method hooks as-is. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received thi

Re: Changeset [5231] -- do_clean_*() is awkward naming

2007-05-14 Thread Adrian Holovaty
On 5/14/07, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > Everything switched around again in [5237]. Excellent. Thanks, Malcolm! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message becaus

Re: newforms.clean_data vs. newforms.cleanED_data

2007-05-15 Thread Adrian Holovaty
On 5/15/07, SmileyChris <[EMAIL PROTECTED]> wrote: > Indeed. And I do so miss the weekly roundups ;) If somebody wants to volunteer to write the weekly roundups, let me know. I've been extremely swamped lately (but it's getting better). Adrian -- Adrian Ho

Re: Spam & django

2007-05-18 Thread Adrian Holovaty
r than the ability to make the lists moderated, which I don't think would be a good idea. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang

i18n -- let's do it!

2005-08-01 Thread Adrian Holovaty
Thanks to Nebojša Đorđević for submitting some internationalization patches. I admit this i18n stuff is completely new to me, although I've taken some time to read the gettext documentation at http://www.python.org/doc/current/lib/module-gettext.html and am excited about adding this as soon as poss

Re: Question on django internals.

2005-08-01 Thread Adrian Holovaty
On 8/1/05, Matthew Marshall <[EMAIL PROTECTED]> wrote: > I'm making headway with ticket 122. However I have discovered a bug when > porting the m2m_intermediary model test. The get_relatedobject_list methods > are not being set. Can you tell me where in the code this is supposed to > happen? I

"django-admin.py inspectdb"

2005-08-02 Thread Adrian Holovaty
As of Django v. 384, I've added a new option to django-admin.py: "inspectdb". It introspects the tables in a given database and outputs a Django model to standard output. Sample usage: $ django-admin.py inspectdb mydb It's just alpha at this point; I just wanted to get something out the door. It

Transaction syntax

2005-08-09 Thread Adrian Holovaty
I met with Jacob in person last week, and we discussed how we'd go about adding transaction support to Django. Essentially, save(), get_list(), get_object() and delete() all would accept an optional cursor keyword argument. If a cursor is explicitly passed in, any/all database queries in the funct

Re: revision 462

2005-08-10 Thread Adrian Holovaty
On 8/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > breaks the createsuperuser and login for some reason. Weirdly it now > seems to be trying to do an insert during login (which fails as you > might expect). > > 461 works fine It works for me on PostgreSQL and MySQL. What's your database

Re: revision 462

2005-08-10 Thread Adrian Holovaty
On 8/10/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > postgreSQL (latest Gentoo - 8.0.3) > > I dropped my database and set everything back up again as well. Very strange... Can you try running "tests/runtests.py" and telling us what output you get? Adrian

Re: Pop up window for searching for field choices?

2005-08-11 Thread Adrian Holovaty
On 8/11/05, Jason Huggins <[EMAIL PROTECTED]> wrote: > In the Admin interface, if a drop down list of choices had too many > entries, you provided a "search icon" to the right of the field. When > you clicked the search icon, a pop up window appeared and shows you > filtered, paged list of values

Re: Pop up window for searching for field choices?

2005-08-12 Thread Adrian Holovaty
On 8/12/05, Jason Huggins <[EMAIL PROTECTED]> wrote: > Potentially, dumb question... but is this kind of functionality > available "for free" in non-admin views or templates?... or is it only > in the admin interface? It's just an admin interface thing for the time being. However, if you have any

Re: Fix for ticket 279

2005-08-14 Thread Adrian Holovaty
On 8/14/05, Ned Batchelder <[EMAIL PROTECTED]> wrote: > I encountered the problem described in ticket #279, and fixed it by > changing django/core/management.py: Thanks, Ned! I checked in a fix in revision 498 -- could you give it a shot and see whether it fixes your problem? I ended up using the

django-admin.py validate

2005-08-14 Thread Adrian Holovaty
I've added a "validate" action to django-admin.py: "django-admin.py validate". It validates all installed models, according to your INSTALLED_APPS setting. Currently, it only handles common errors, but we'll be improving it each time we come across a potential model syntax problem. Also, the dev

Re: Trac exception

2005-08-16 Thread Adrian Holovaty
On 8/16/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > I was trying to view this: > http://code.djangoproject.com/ticket/4 > > when I got this: Yeah, Trac/Subversion does that every once in a while. It's happening because we're running Trac in CGI mode. We tried getting it to work with mod_python

Re: License for the djangoproject website code.

2005-08-23 Thread Adrian Holovaty
but the templates are copyrighted by World Online and shouldn't be copied." Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Accessing/creating addition fields on cross-reference tables?

2005-08-24 Thread Adrian Holovaty
On 8/24/05, John Madson <[EMAIL PROTECTED]> wrote: > How do you add or access an additional field to the cross-reference > table generated by a ManyToManyField? For example, if I have an xref > table that looks like: > > `id` mediumint(9) unsigned NOT NULL auto_increment, > `foo_id` int(11) NOT N

IMPORTANT: Django model syntax is changing

2005-08-25 Thread Adrian Holovaty
mmarshall, rmunn, garthk, hugo, manuzhai and all the other great people who have contributed patches, ideas and passionate discussion to this change. This is the first really big community-driven improvement to Django, and it's been awesome, for me personally, to see it come to fruition. Thanks, guys! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: IMPORTANT: Django model syntax is changing

2005-08-25 Thread Adrian Holovaty
t's something you must've added yourself. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Trac-svn integration seems broken

2005-08-25 Thread Adrian Holovaty
On 8/25/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > OK, it's back. Must've been the broken sql connection Adrian > explained earlier.. just no error message this time. Jacob was upgrading Trac, so we no longer get those database errors. We apologize for the short downtim

Re: Ticket #12 Solution

2005-08-30 Thread Adrian Holovaty
#x27;s similar to what you've done -- it outputs ALTER TABLE statements -- but it's not a two-step process that requires transition files. What was your reasoning for using transition files as opposed to making it a one-step thing? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Django "add-ins": blog, discussion board, wiki, etc.

2005-08-30 Thread Adrian Holovaty
re whether a full-blown blogging system would be a candidate for contrib, though -- I pictured contrib as more of a place for "framework additions" than standalone apps. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Django "add-ins": blog, discussion board, wiki, etc.

2005-09-01 Thread Adrian Holovaty
The man to talk to is Wilson Miner, [EMAIL PROTECTED], who's also the guy who designed Django's admin and djangoproject.com. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

New mailing list: django-updates

2005-09-01 Thread Adrian Holovaty
Hi all, I've created a new mailing list, django-updates, that sends out a message each time a change is made to the Django codebase or ticket system. It's a read-only mailing list. Its Google Groups page is here: http://groups.google.com/group/django-updates Adrian -- Adria

Re: Django "add-ins": blog, discussion board, wiki, etc.

2005-09-03 Thread Adrian Holovaty
On 9/2/05, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > On 9/1/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > The man to talk to is Wilson Miner, [EMAIL PROTECTED], who's also the > > guy who designed Django's admin and djangoproject.com. > > I assume

Re: Implications of 'default='?

2005-09-05 Thread Adrian Holovaty
Python, not on the SQL layer. That said, I don't see any reason not to add it in the CREATE TABLE statements where appropriate. Any thoughts? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Postgresql Inheritance

2005-09-05 Thread Adrian Holovaty
you can use OneToOneFields to solve the problem. Check out the example here: http://www.djangoproject.com/documentation/models/one_to_one/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Implications of 'default='?

2005-09-06 Thread Adrian Holovaty
> Pointers? See django/core/management.py for the CREATE TABLE statements, etc. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: __repr__ woes

2005-09-06 Thread Adrian Holovaty
d this? def __repr__(self): return "%s - %s" % (self.get_person().name, self.get_activity().description) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: check_permissions and required_permission

2005-09-12 Thread Adrian Holovaty
ed_permission in the django codebase. > > Is this supported? Who is supposed to call check_permissions on each > manipulator? Is this legacy code that will disappear or future code > that will be fully fleshed out at some point? Hey Mike, Good eye! It's legacy code that wi

Re: instantiate object passing dictionary

2005-09-13 Thread Adrian Holovaty
re. These two Python snippets are equivalent: --- foo(bar=1, baz=2) --- kwargs = {'bar': 1, 'baz': 2} foo(**kwargs) --- Note the double asterisks, which mean "explode this dictionary as keyword argu

Re: Django's overall security

2005-09-14 Thread Adrian Holovaty
On 9/14/05, John Madson <[EMAIL PROTECTED]> wrote: > A thorough discussion leading to an audit of Django's security > methodology is, in my mind, essential before the 1.0 milestone. How do > people feel about this? Sounds great. Let's do it! Adrian -- Adr

Re: Get rid of model modules?

2005-09-15 Thread Adrian Holovaty
bject() returns a Blog instance, and each Blog instance has a get_object() method. That feels awkward, messy and ugly, in my opinion. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Idea: "fake" model fields

2005-09-16 Thread Adrian Holovaty
by spaces, and all that, in the admin interface. These classes already have a number of hooks, but we could add more if it's not too messy. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Get rid of model modules?

2005-09-16 Thread Adrian Holovaty
make it more explicit that module-level magic is happening, and it would remove the need for the ugly "_module" prefixes. And it can be backwards-compatible (for at least a short while), because we could support both approaches. What do people think? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Get rid of model modules?

2005-09-16 Thread Adrian Holovaty
dictionary. I would certainly call this a bug. Model methods should be able to have decorators. I've filed a ticket at http://code.djangoproject.com/ticket/522 and will try to work on the fix this weekend. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Get rid of model modules?

2005-09-16 Thread Adrian Holovaty
... Meta? Module? Manipulator? Marvelous. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Mutable defaults in Django source

2005-09-17 Thread Adrian Holovaty
_item_6 Thanks for the catch, Luke! I've fixed it, in the two Context classes, in revisions 644 and 645. I'll take a look for any other instances of that mutable-arguments bug. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Name for "choices accessor" methods

2005-09-18 Thread Adrian Holovaty
but I feel like the function name ("get_state_display") could be improved. What could we use instead of "display"? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: admin code is really really "not best practice"

2005-09-19 Thread Adrian Holovaty
gt; 3) fix the manipulators/formfields so no work arounds are required. > Virtual functions exist for a reason. Hey Robert, That sounds good to me. Patches are welcome! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: admin code is really really "not best practice"

2005-09-19 Thread Adrian Holovaty
s that the code that generates admin views is complex and hard to understand. It really has no effect on use of Django unless you plan to edit the admin-view code for some reason. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Proposal: get_or_404()

2005-09-22 Thread Adrian Holovaty
that "span" several layers of MVC. Thoughts? Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Proposal: get_or_404()

2005-09-23 Thread Adrian Holovaty
On 9/22/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > I propose a new helper function in django.core.extensions, > get_or_404(), which would do this: > > def foo_detail(request, some_lookup): > f = get_or_404(foos, some_field__exact=some_lookup) I've a

Re: Name for "choices accessor" methods

2005-09-25 Thread Adrian Holovaty
On 9/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > Ticket #468 -- http://code.djangoproject.com/ticket/468 -- is a great > idea. It suggests that any model field with a "choices" parameter > should generate a get_fieldname_display() method. I've checked in

Re: Discussions in Trac

2005-09-26 Thread Adrian Holovaty
ng something wrong? If yes, please, tell me, I'll stop! :-) The best place to discuss decisions like that is definitely in the Trac ticket comments. I just haven't responded to your particular comment there yet because I haven't had the time. :-) Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Adding FilePathField

2005-09-28 Thread Adrian Holovaty
choices: * Accept "glob" syntax, e.g. "/home/media/*", which would follow Unix glob conventions -- e.g. just the files directly within the media directory. * Automatically include all files within the directory, recursively. * Both? If so, what's the syntax? Adrian -

Re: Improved template error messages

2005-10-07 Thread Adrian Holovaty
ill make it extra difficult to merge your changes into the Django trunk, because we don't necessarily want to add this functionality. Thanks! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: reworked cache management

2005-10-08 Thread Adrian Holovaty
So for example if your page content is based on cookies, > the cache middleware won't see that and will send out content > regardless of cookie value from the cache. I'm on it! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: reworked cache management

2005-10-08 Thread Adrian Holovaty
ts. Docs have also been updated: http://www.djangoproject.com/documentation/cache/ http://www.djangoproject.com/documentation/middleware/ Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: A 'main' template for use in peoples applications

2005-10-09 Thread Adrian Holovaty
d, just like the Python code. The only part that World Online is copyrighting is the design of the djangoproject.com Web site itself. Let me know if this makes sense. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Transactions in the admin

2005-10-11 Thread Adrian Holovaty
Also, I don't know whether coupling transactions to Web requests is a good idea. Anybody have ideas on implementations? Let's get this going. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Transactions in the admin

2005-10-11 Thread Adrian Holovaty
ble to use transactions outside the scope of a Web request -- in, say, a Python script or the interactive interpreter. Transactions shouldn't be coupled with any other layers of the stack. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: Adding FilePathField

2005-10-11 Thread Adrian Holovaty
i/#field-types Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: model docstrings/doctest

2005-10-14 Thread Adrian Holovaty
On 10/14/05, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > Just submitted a patch that does exactly that. > http://code.djangoproject.com/ticket/628 As of revision 878, it's an official part of Django. Thanks! Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

Re: state of mssql support

2005-10-14 Thread Adrian Holovaty
parallel codebase for years, especially considering how fast > Django is evolving. > > Can someone make an offical pronouncement? Look for it later this evening! I'll post a note here when it's committed. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org

<    1   2   3   4   5   6   7   8   9   >