Re: Final Multi-DB status Update

2009-09-14 Thread Joseph Kocherhans
On Mon, Sep 14, 2009 at 12:16 PM, Alex Gaynor wrote: > > FWIW, Russ, Joseph Kocherhans, and I discussed this at the DjangoCon > sprints and our conclusion was to have syncdb only sync a single table > at a time, and to take a --exclude flag (or was it --include?) to > specify wha

Re: 1.2 Feature freeze

2009-12-23 Thread Joseph Kocherhans
On Wed, Dec 23, 2009 at 2:34 AM, James Bennett wrote: > Technically, the major feature freeze for Django 1.2 was to have > happened sometime yesterday, US Central time. As of this moment, we're > not actually frozen, but will be as soon as I hear status reports on > the following (high-priority fe

Finalizing model-validation: ComplexValidator

2010-01-01 Thread Joseph Kocherhans
Model validation is just about ready to go. I have one small issue with it, namely with ComplexValidator, which I'll describe below, but I think we can resolve it fairly easily. Here's a bit of background. Sorry if you're already familiar with the branch. Validators are functions that are tied to

Re: Finalizing model-validation: ComplexValidator

2010-01-03 Thread Joseph Kocherhans
On Sat, Jan 2, 2010 at 4:34 PM, Sean Bleier wrote: > > As for the timeline, I think that if complex validators are left as-is > then of course it isn't a deal breaker for inclusion to trunk before > the major feature freeze on January 5th.  However, If complex > validators need to be reworked a li

Re: Finalizing model-validation: ComplexValidator

2010-01-03 Thread Joseph Kocherhans
On Sun, Jan 3, 2010 at 7:34 PM, Alex Gaynor wrote: > > What if we had some sort of wrapper class for objs, it could overide > __getattribute__ to return either an attr if it's an obj, or a > subscript if it's a datadict.  it seems to me this would solve both > concerns? I was thinking along simil

Re: Model validation incompatibility with existing Django idioms

2010-01-06 Thread Joseph Kocherhans
On Wed, Jan 6, 2010 at 12:49 PM, Simon Willison wrote: > A couple of related tickets filed today about model validation: > > http://code.djangoproject.com/ticket/12513 > http://code.djangoproject.com/ticket/12521 > > The first one describes the issue best - the new model validation code > breaks t

Re: Model validation incompatibility with existing Django idioms

2010-01-06 Thread Joseph Kocherhans
On Wed, Jan 6, 2010 at 3:26 PM, Waylan Limberg wrote: > I've only scanned the docs the other day and haven't actually used the > new model validation stuff, so my impressions may be a little off, > but... > > On Wed, Jan 6, 2010 at 2:54 PM, Joseph Kocherhans > wrot

Re: Model validation incompatibility with existing Django idioms

2010-01-06 Thread Joseph Kocherhans
On Wed, Jan 6, 2010 at 4:46 PM, Jeremy Dunck wrote: > On Wed, Jan 6, 2010 at 3:56 PM, Joseph Kocherhans > wrote: > ... >>>> On Wed, Jan 6, 2010 at 12:49 PM, Simon Willison >>>> wrote: > ... >>>>> form = SecretQuestionForm( {"secret_q

Re: Model validation incompatibility with existing Django idioms

2010-01-09 Thread Joseph Kocherhans
On Wed, Jan 6, 2010 at 12:49 PM, Simon Willison wrote: > A couple of related tickets filed today about model validation: > > http://code.djangoproject.com/ticket/12513 > http://code.djangoproject.com/ticket/12521 > > The first one describes the issue best - the new model validation code > breaks t

Re: Model validation incompatibility with existing Django idioms

2010-01-09 Thread Joseph Kocherhans
On Sat, Jan 9, 2010 at 6:25 PM, Ivan Sagalaev wrote: > Joseph Kocherhans wrote: >> >>            # Run validation that was missed by the form. >>            p.validate_fields(fields=['user', 'primary_contact']) >>            p.v

Re: Model validation incompatibility with existing Django idioms

2010-01-11 Thread Joseph Kocherhans
On Wed, Jan 6, 2010 at 12:49 PM, Simon Willison wrote: > A couple of related tickets filed today about model validation: > > http://code.djangoproject.com/ticket/12513 > http://code.djangoproject.com/ticket/12521 This has been fixed in r12206 [1]. Could people who had issues please check things o

Backwards-incompatible change for model validation

2010-01-11 Thread Joseph Kocherhans
I just committed r12206 [1] which contains a few backwards-incompatible changes to model validation. First off, ModelForm used to validate your entire model and raise UnresolvableValidationError for any model fields that had errors, but were excluded from the form. Now, ModelForm will only validate

Re: Model validation incompatibility with existing Django idioms

2010-01-20 Thread Joseph Kocherhans
On Tue, Jan 19, 2010 at 1:04 AM, Raffaele Salmaso wrote: > Raffaele Salmaso wrote: >> Joseph Kocherhans wrote: >>> regressions? >> http://code.djangoproject.com/ticket/12577 > Hello, is anybody out there? > Sorry if I seem rude, but there is a severe regression an

Re: Ticket disposal

2010-03-02 Thread Joseph Kocherhans
On Mar 2, 2010, at 4:28 PM, Peter Sagerson wrote: > Hello, > > I submitted a patch[1] for 1.2 which was not accepted and almost certainly > won't be in the future. This is perfectly fine, but it would be nice to get > the bug closed wontfix so we have some closure (people are still adding > t

Re: What about union() and intersection()

2006-05-05 Thread Joseph Kocherhans
On 5/5/06, Michael Radziej <[EMAIL PROTECTED]> wrote: > > what about providing class functions QuerySet.union(cls, qset_list), > QuerySet.intersection(cls, qset_list), both returning cls, such as: > > def union(cls, qset_list): > """Returns the union of a list of QuerySets, a QuerySet.""" >

Re: Patch to make unit testing applications easier/faster

2006-05-05 Thread Joseph Kocherhans
On 5/5/06, Victor Ng <[EMAIL PROTECTED]> wrote: > > I've never submitted code to Django before - what can I do to help > make this patch go in to the trunk? I've run the Django testsuite > with all passes, but I'm not sure if I should do anything else. That's pretty much it. Now it's just waitin

branch request: new-auth

2006-05-08 Thread Joseph Kocherhans
I'd like to get a branch started for the new authentication stuff I've been working on. A current patch is attatched to ticket #1428. This will make a easier for people to test this out, and give more feedback so I can get the docs up to speed. Thanks, Joseph --~--~-~--~~

#1767 validator_list silently deleted for BooleanFields

2006-05-09 Thread Joseph Kocherhans
If this ticket could get some quick love I'd much appreciate it. Something is definitely wrong, but is the patch acceptable? http://code.djangoproject.com/ticket/1767 I brought it up on the list last week, but no one seemed to have an opinion, or it just got missed. http://groups.google.com/grou

svn merge problem

2006-05-16 Thread Joseph Kocherhans
I'm trying to merge changes from the trunk into the multi-auth branch. svn merge --dry-run -r 2892:HEAD http://code.djangoproject.org/svn/django/trunk works fine, but when I try to do it for real: svn merge -r 2892:HEAD http://code.djangoproject.org/svn/django/trunk svn barfs with the

ANN: multi-auth branch ready for testing

2006-05-16 Thread Joseph Kocherhans
Anyone interested in mutiple authentication backends should check out http://code.djangoproject.com/wiki/MultipleAuthBackends I've updated the authentication docs to cover the new changes, and the code is ready to go. A self proclaimed newbie has already posted an example LDAP backend to the wiki

Re: ANN: multi-auth branch ready for testing

2006-05-16 Thread Joseph Kocherhans
On 5/16/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > perhaps the settings.py auth > backend might make better example code (perhaps in the "writing auth > backends" doc?) since it's actually pretty insecure :) Good call. Done in [2924] Joseph --~--~-~--~~~---~-

Re: [AUDIT] Enable Django Quick Start / Database Evolution Support

2006-05-25 Thread Joseph Kocherhans
On 5/25/06, lazaridis_com <[EMAIL PROTECTED]> wrote: > > At this point, Django's persistency layer seems intresting, but the > evaluation uncovered a few weaknesses, most importantly the lack of > schema evolution support: > > http://case.lazaridis.com/multi/wiki/DjangoProductEvaluation Schema ev

SoC 2006: Generic Authorization

2006-05-28 Thread Joseph Kocherhans
I've posted an intial revised version of my summer of code proposal at: http://code.djangoproject.com/wiki/GenericAuthorization This should go hand in hand with Chris Long's RowLevelPermissions project: http://code.djangoproject.com/wiki/RowLevelPermissions Also, for the curious, you c

multi-auth branch... time to merge?

2006-05-30 Thread Joseph Kocherhans
Has anyone tested out the multi-auth branch yet? I haven't heard anything, so either people aren't using it, or it's working well and the docs are good enough. Personally, I've been using it with both external SQL and LDAP backends for over a month now. No issues, but my apps are internal and don'

branch request: generic-auth

2006-06-19 Thread Joseph Kocherhans
I'd like to get a branch started for my summer of code project. It's not urgent, but something in the next couple of days would be great. http://code.djangoproject.com/wiki/GenericAuthorization Thanks, Joseph --~--~-~--~~~---~--~~ You received this message becaus

Re: Merging multi-auth to trunk?

2006-06-23 Thread Joseph Kocherhans
On 6/23/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Time for yays or nays to merging the mutli-auth branch into trunk... > I've been running it for a few weeks without any problems, so I'd say > it's pretty much stable. +1 (for merging that is) I still want to refator the config code to

Re: ANN: multi-auth merged to trunk

2006-06-28 Thread Joseph Kocherhans
On 6/28/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > Just a quick note that I've merged Joseph's multi-auth branch to > trunk. As far as I've seen over the past few weeks this doesn't > break anything, but if it does let me/him know. > > Thanks, Joseph. No problem. Now I get to move my p

Proposal: app-specific index pages

2006-07-05 Thread Joseph Kocherhans
I finally wanted it bad enough to code it. Here's the patch. The template tags could use a little cleanup which I'll finish off if Jacob and Adrian give this the green light. I copied and pasted some code :( http://code.djangoproject.com/ticket/2292 A couple of issues: - Should the app names o

Re: Enabling Row Level Permissions

2006-07-14 Thread Joseph Kocherhans
Sorry it took so long to respond. Busy week. On 7/8/06, Chris L <[EMAIL PROTECTED]> wrote: > > I've currently set up enabling row level permissions using the meta > class, e.g. to enable row level permissions for the Mineral model you > would have: > > class Mineral(models.Model): > name = mo

Re: Re: Enabling Row Level Permissions

2006-07-14 Thread Joseph Kocherhans
On 7/14/06, Chris Long <[EMAIL PROTECTED]> wrote: > > How would you handle multiple checkers? I'm designing RLP to work on > top of model level checking. Would it be: I actually hadn't thought of that. I thought there would be one and only one type of checking for each model. I can't think of a

Re: Generic Authorization Questions

2006-08-03 Thread Joseph Kocherhans
On 8/3/06, Chris Long <[EMAIL PROTECTED]> wrote: > 1) Will there be any support for the previous method of checking > permissions? (e.g. will users.has_permission work?) I was planning on keeping the User.has_perm method around for now, but I think it ought to go away before 1.0. It won't be cal

Re: Re: Generic Authorization Questions

2006-08-03 Thread Joseph Kocherhans
On 8/3/06, Chris Long <[EMAIL PROTECTED]> wrote: > > I'll try to be on tonight between 7 and 11 MT, I just finished off a 4 > hour meeting and need to finish off some work then head home. I might > be too tired to make it on tonight, but I'll certainly try. No problem. I'll be around tomorrow mor

Re: Re: Model inheritance redux

2006-08-04 Thread Joseph Kocherhans
On 8/4/06, Bjørn Stabell <[EMAIL PROTECTED]> wrote: > > Just a question; how does this compare pros and cons with single-table > inheritance, used in Rails? See: > > http://twelvelabs.com/singletable/index.html http://www.objectmatter.com/vbsf/docs/maptool/ormapping.html Check out the section

Re: Re: Row Level Permissions Update

2006-08-17 Thread Joseph Kocherhans
On 8/17/06, Joe <[EMAIL PROTECTED]> wrote: > > I'm not sure if this is more relevant to the Generic Authorization > branch, but has anyone looked at implementing the owner permissions > (the user who creates the object automatically has delete/modify > permissions)? This is something that should

generic-auth and per-object-permission integration

2006-08-30 Thread Joseph Kocherhans
So I should probably get started on the generic-auth and per-object-permissions (hereafter pop) integration soon. I've had problems trying to merge changes from the trunk into the generic-auth branch, so I'd just assume call that branch dead. The actual generic-auth code is just a patch to the tru

Re: Re: generic-auth and per-object-permission integration

2006-09-01 Thread Joseph Kocherhans
On 9/1/06, Linicks <[EMAIL PROTECTED]> wrote: > > Once (gen-auth/pop) are merged, what are the major barriers in getting > that branch merged into trunk? Probably just review by Jacob and Adrian. There are several branches from summer of code that will be competing for their attention over the ne

Re: Re: generic-auth and per-object-permission integration

2006-09-06 Thread Joseph Kocherhans
On 9/6/06, Linicks <[EMAIL PROTECTED]> wrote: > > I'm planning to move my development work to the pop/gen_auth branch > once they are merged. Hopefully I will be able to give some good > feedback at that point. When the merge is complete, would it be > possible to have you guys merge with trunk f

Re: Re: authentication data

2006-09-11 Thread Joseph Kocherhans
On 9/11/06, Gary Wilson <[EMAIL PROTECTED]> wrote: > > Are you guys also planning on > removing the admin application's dependence on > contrib.auth.models.User? That's my long-term goal, but generic-auth isn't enough to get there. is_staff, is_superuser, is_active, get_and_create_messages, and p

Re: Why request.user is a class attribute

2006-09-11 Thread Joseph Kocherhans
On 9/11/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > I've just found out that request.user is an attribute of request's class > not of an instance. Which means that in the environment with multiple > requests (threaded or not) every request.user always points to a single > LazyUser instance wh

Re: Re: Why request.user is a class attribute

2006-09-11 Thread Joseph Kocherhans
On 9/11/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > On 9/11/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > > > I've just found out that request.user is an attribute of request's class > > not of an instance. Which means that in the environment

Re: Proposal: Forms and BoundForms

2006-09-12 Thread Joseph Kocherhans
I've been working on the same thing, but my ideas differ slightly from Adrian's. In a lot of way we're on the same page though, so that much is encouraging :) I've liberally stolen ideas from both FormEncode and a version of Zope 3's formlib. There are four main classes the mostly correspond to A

Re: Proposal: Forms and BoundForms

2006-09-13 Thread Joseph Kocherhans
On 9/12/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Hence, with this new API, the above view code would be written like this: > > form = ContactForm() > if request.method == 'POST' and form.is_valid(**request.POST): > send_email_and_redirect() > return render_to_response

Re: Re: Proposal: Forms and BoundForms

2006-09-13 Thread Joseph Kocherhans
On 9/13/06, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Joseph Kocherhans wrote: > > Assumptions: form.bind(data) does *not* return a BoundForm. bind does > > the validation and probably populates form.errors or .errors() or > > whatever. bind returns True

Re: Re: Proposal: Forms and BoundForms

2006-09-13 Thread Joseph Kocherhans
On 9/13/06, Rob Hudson <[EMAIL PROTECTED]> wrote: > > (I'm not an official "dev" so I hope it's not considered inappropriate > of me to provide my feedback.) It's not inappropriate at all. :) > Instead of the assumption that bind() validates, why not have an > is_valid() method that assumes bind

Re: app name in admin breadcrumbs

2006-09-18 Thread Joseph Kocherhans
On 9/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Is there a reason why the app name doesn't appear in the admin > breadcrumbs? I have an app with a model called 'Groups', and the > breadcrumb for it is the same as that for the auth model 'Groups'. The > URL is right, of course, I just

Re: Re: Why doesn't models.Manager implement __iter__?

2006-10-10 Thread Joseph Kocherhans
On 10/10/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > So now I'm just confused as to what might be "best". Certainly two sides > to this. I probably prefer the current consistency a little more, but > then there's iterator(). So I'm going to do the professional thing here: > hope that Adr

Re: Re: Why doesn't models.Manager implement __iter__?

2006-10-11 Thread Joseph Kocherhans
On 10/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > (i'm not sure i understand what you mean by "iterator protocol") The "iterator protocol" basically refers to __iter__() and next(). Its the stuff that python calls behind the scenes when you iterate over something. http://docs.python.org/l

Re: Call for testing: New setup.py

2006-10-16 Thread Joseph Kocherhans
On 10/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > But I have only tested this on Linux, so I'd appreciate it if folks > could test out the command "python setup.py install" on various > different platforms. Just grab the SVN version of Django and try > installing it using "python setup.p

Re: Re: Django - Oracle status?

2006-10-20 Thread Joseph Kocherhans
On 10/16/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > The good news here is that in "from" clauses, MySQL, PostgreSQL and > SQLite all allow "as" to be optional, so we can omit it across the > board. No need for a case-by-case analysis (and now somebody will say > that MS-SQL requires it)

Re: Re: handlers.modpython.is_secure -- why not use self._req.is_https() ?

2006-10-24 Thread Joseph Kocherhans
On 10/24/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > On 10/24/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote: > > In other words, I hope I haven't talked you into breaking trunk. :-/ > > > > Relevant (or so I thought) doc: > http://www.modpython.org/live/current/doc-html/pyapi-mprequest-meth.html

Re: Re: DecimalField

2006-10-25 Thread Joseph Kocherhans
On 10/25/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > > On 10/24/06 5:25 PM, Jason Davies wrote: > > I think we should just distribute decimal.py to maintain Python 2.3 > > compatibility. > > I'm +1 on the patch if someone can resolve two things: > > * Is the license for decimal.py compatibl

Re: 3rd party auth backend access to session object

2006-11-03 Thread Joseph Kocherhans
On 11/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I need to add session keys to the session right from my LDAP > authenication backend. I think it is as simple as passing the session > object to the backend during authentication. Has anyone else needed > this kind of functionality? mayb

Re: Re: Re: Branch Merges?

2006-11-06 Thread Joseph Kocherhans
On 11/6/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/6/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > so, in short, the only testable branches seems to be fullHistory and > > rowLevelPermissions, and even there it's not clear if they are now > > considered done, or still in progress. >

generic-auth and extensible QuerySet filtering

2006-11-27 Thread Joseph Kocherhans
As of now generic-auth is missing part of the functionality that would make it truly useful. You can check permissions on a single object using the extensible has_permission function, but often times you need to get a list of objects for which a user has a specified permission. Getting all possibl

Re: Re: generic-auth and extensible QuerySet filtering

2006-11-30 Thread Joseph Kocherhans
On 11/30/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 11/27/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > I'm not sure that this should be a function however. It may also make > > sense as a Manager and/or QuerySet method. > > It *feels* like

Re: DB to Django Models

2006-12-15 Thread Joseph Kocherhans
On 12/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hello, i was thinking of developing some modules that did the > transalation from any DataBase supported by Django to the Django > Models. For example, i have a db in production but would like to use it > with Django, then i would have

Re: Has anyone looked at ticket #1476?

2006-12-28 Thread Joseph Kocherhans
On 12/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I did look at making them edit inline but I think it would be much easier to show them in a non-editable way and then allow them to edit if they need to. Not sure what it would take to create a different type of edit inline. Hey Jim.

Proposal: Named auth backends and backend specific profiles

2007-01-10 Thread Joseph Kocherhans
1. Named auth backends Right now, user logins are coupled to the actual location of an auth backend. The python dotted path of the backend is stored in the user's session when they login. If you were to move the backend to a different module, any user who was logged in via that backend would get

Re: Proposal: Named auth backends and backend specific profiles

2007-01-11 Thread Joseph Kocherhans
On 1/11/07, James Bennett <[EMAIL PROTECTED]> wrote: > > On 1/10/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > I propose to register and lookup backends by name to fix this > > problem. Here's a configuration sample: > >

Re: Proposal: Named auth backends and backend specific profiles

2007-01-11 Thread Joseph Kocherhans
On 1/11/07, Nicola Larosa (tekNico) <[EMAIL PROTECTED]> wrote: > > Every middle-to-big project has its own version, and Django is no > exception, look in django.utils.datastructures. I have a patch ready to go for named backends, and it uses django.utils.datastructures.SortedDict from django pure

Re: Proposal: Named auth backends and backend specific profiles

2007-01-16 Thread Joseph Kocherhans
On 1/16/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: Sorry this has taken a while to look at - hopefully I'm not too late to make a meaningful contribution... Not a problem. I still haven't finished a patch yet and am certainly still open to suggestions. I would make another suggestio

newforms-admin and list_display, etc.

2007-01-25 Thread Joseph Kocherhans
I'd like to see a way to customize the list_display, search_fields, and list_filter (and possibly list_display_links?) attributes of ModelAdmin in the same way as change_list_queryset, etc. The use case is to hide fields in the change list depending on who is accesing the page. This should be a pr

Re: New branch: newforms-admin

2007-01-29 Thread Joseph Kocherhans
On 1/16/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > I'd like to take the clean route and move the admin definitions into a > separate file, or at least still in the models.py but not within the > models themselves. Of course, that's not as convenient as defining the > admin stuff directly w

Re: UserManger Class question

2007-02-17 Thread Joseph Kocherhans
On 2/17/07, voltron <[EMAIL PROTECTED]> wrote: > > class UserManager(models.Manager): > def create_user(self, username, email, password): > "Creates and saves a User with the given username, e-mail and > password." > now = datetime.datetime.now() > user = self.model(Non

Re: Creating an independent auth/permission-framework, separate the models (Was: Adding support for replacing the auth User model to fit custom needs)

2007-02-23 Thread Joseph Kocherhans
On 2/19/07, David Danier <[EMAIL PROTECTED]> wrote: > I would like to contribute creating this, if someone is interested. > Perhaps the best place to start (or even work if Joseph Kocherhans likes > my plans?) is the generic-auth-branch. I believe such a system should be > rea

Re: Google Summer of Code 2007

2007-02-26 Thread Joseph Kocherhans
On 2/26/07, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > Specifically, I was referring to the has_*_permission() stuff in the > new ModelAdmin class. Which is new functionality aside from the > oldforms to newforms port. A lot of the generic-auth and RLP code is nasty stuff to try to integrate

Re: Google Summer of Code 2007

2007-02-26 Thread Joseph Kocherhans
On 2/26/07, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > On 2/27/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > > On 2/26/07, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > > > > > Specifically, I was referring to the has_*_permi

Re: Creating an independent auth/permission-framework, separate the models (Was: Adding support for replacing the auth User model to fit custom needs)

2007-02-27 Thread Joseph Kocherhans
On 2/27/07, David Danier <[EMAIL PROTECTED]> wrote: > > As an enhancement it would be nice to get the generic-auth-branch into > the trunk (slightly changed perhaps). So not only authorization can be > done on an abstract way, but permission-checks, too. I'll probably work on this once the newfor

Re: Upcoming changes to the Django admin

2007-03-03 Thread Joseph Kocherhans
On 3/3/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > > Jacob Kaplan-Moss wrote: > > Edit-inline is also going to be moved out into the admin declaration, > > Edit-inline was also useful outside of the admin, in manipulators. Are > there any plans to have newforms handling this or this will become

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

2007-03-26 Thread Joseph Kocherhans
On 3/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Now that we have 0.96 out the door, I'd love to wrap up the > newforms-admin branch, which is mostly missing edit-inline support but > works well for other cases. > > Joseph Kocherans was working on edit-inline support, but I haven't > see

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

2007-03-26 Thread Joseph Kocherhans
On 3/25/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Now that we have 0.96 out the door, I'd love to wrap up the > newforms-admin branch, which is mostly missing edit-inline support but > works well for other cases. > > Joseph Kocherans was working on edit-inline support, but I haven't > see

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

2007-03-26 Thread Joseph Kocherhans
On 3/26/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > Hey Adrian. Looking at the newforms-admin branch tonight, I can't seem > to get some things working. Gah. Nevermind. Only the index page is working of AdminSite, and it's root method acts like a view that take

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

2007-04-06 Thread Joseph Kocherhans
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 activate the > admin site, do this: >

Re: Two field-related suggestions for newforms.models

2007-05-10 Thread Joseph Kocherhans
On 4/29/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > 1) Is there room for a 'fields' argument on form_for_instance and > form_for_model - a list of field names that you want included on the > form (defaulting to None, meaning the full list), so that it is simple > to create a form with a

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

2007-05-10 Thread Joseph Kocherhans
On 5/5/07, Jari Pennanen <[EMAIL PROTECTED]> wrote: > > Modularity of edit inline? Any better? > > Currently: > models.ForeignKey(Other, edit_inline=models.TABULAR, parameters...) > obiviously is a big waste of OO abilities, > > instead something like, the OO way: > models.ForeignKey(Other, edit_i

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

2007-05-10 Thread Joseph Kocherhans
On 5/10/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > On 5/5/07, Jari Pennanen <[EMAIL PROTECTED]> wrote: > > > > Modularity of edit inline? Any better? > > > > Currently: > > models.ForeignKey(Other, edit_inline=models.TABULAR, parameters...)

Re: Two field-related suggestions for newforms.models

2007-05-10 Thread Joseph Kocherhans
On 5/10/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 5/11/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > > On 4/29/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > > > I realize that you can subclass the form cl

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

2007-05-14 Thread Joseph Kocherhans
On 5/13/07, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > What's 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. I'm still working on the for

runtest.py slowdowns?

2007-05-14 Thread Joseph Kocherhans
Has anyone noticed a fairly recent order of magnitude slowdown in how long it takes to run the django test suite? I used to get times of about 14 seconds around March (at PyCon) but it's taking ~150 seconds now. It's quite possibly something that's changed in my setup, but I figured I'd see if any

Re: runtest.py slowdowns?

2007-05-14 Thread Joseph Kocherhans
On 5/14/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 5/15/07, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > > > Has anyone noticed a fairly recent order of magnitude slowdown in how > > long it takes to run the django test suite? I used to get

OneToOneField and generic views

2005-09-09 Thread Joseph Kocherhans
The generic view django.views.create_update.update_object requires the object to have an id in line 99. manipulator = mod.ChangeManipulator(object.id) Objects with OneToOneFields don't have an id attribute. Instead they have something like "relatedobject_id" I'm not sure where this should be

Re: Get rid of model modules?

2005-09-16 Thread Joseph Kocherhans
On 9/15/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 9/15/05, Simon Willison <[EMAIL PROTECTED]> wrote: > > from django.models.blog import Blog, Entry > > > > Blog.get_list() > > Blog.get_object() > > Entry.get_iterator() > > I have a natural aversion to class methods like that. To me,

Re: model docstrings/doctest

2005-10-11 Thread Joseph Kocherhans
On 10/10/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 10/10/05, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > I'd like to use doctest for testing my model classes, but the model > > metaclass overwrites my classes docstrings. Is there any reason

Re: model docstrings/doctest

2005-10-14 Thread Joseph Kocherhans
On 10/10/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 10/10/05, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > I'd like to use doctest for testing my model classes, but the model > > metaclass overwrites my classes docstrings. Is there any reason

custom field attributes

2005-10-17 Thread Joseph Kocherhans
I was just considering how I might add custom attributes to fields in my models. I need to render forms that have a hierarchy of sorts, fields need to have subfields. Of course I'll need some custom code to generate forms. I'd like to include a 'parent' attribute on all of my fields so I don't hav

Re: Moving auth and core models to contrib -- and dependencies

2005-12-21 Thread Joseph Kocherhans
On 12/21/05, Daniel Poelzleithner <[EMAIL PROTECTED]> wrote: Apps sould define a __version__ in __init__.py wich sould be checked onthe dependencies check.maybe a syntax like:__dependencies__ = (('django.contrib.auth',">=0.1,!=0.2"),('my.app.bla', "== 0.3"))would require a version of contrib.auth t

Improving Admin Metasystem Extensibility

2005-12-27 Thread Joseph Kocherhans
I think the metasystem is one of Django's greatest strengths. Django's admin system has literally cut my development time down by weeks for most projects. The admin system does 90% of what I need, but getting the other few features requires a lot more work than it should. I think this should be re

Re: Improving Admin Metasystem Extensibility

2005-12-28 Thread Joseph Kocherhans
On 12/27/05, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > 7. Allow custom auditing methods ''without'' having to create a custom view. > > I've seen a lot of people ask for this, and I have yet to see an > explanation of how to do it ''witho

Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
Treating django.models.core and django.models.auth as special cases is kind of confusing. They should be regular apps, but we don't want to have to add 2 extra steps (installing the 2 apps) to get a django project up and running. Here's a few ideas for fixing the problems. Create 2 new apps, djan

Re: Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/6/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > Treating django.models.core and django.models.auth as special cases is > > kind of confusing. They should be regular apps, but we don't wa

Re: Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > One more idea, though, would be to split "core" into > django.contrib.sessions, django.contrib.contenttypes and > django.contrib.sites. Packages would go away, because they're not > really necessary (we used them heavily about 1.5 years ago

Re: Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > If no one is using packages I'll just drop it. > > This is a bit easier said than done...The content-types table depends > on it. How about splitting this patch into several stages -- > > * Move sessions from core to django.contrib.sessio

magic-removal table name pluralization

2006-01-06 Thread Joseph Kocherhans
In the magic-removal branch most traces of automatic pluralization have been removed, but the table names are still pluralized by default. I don't think they should be. Is this just a change that's meant to happen, but hasn't yet? I seem to remember a thread where people wanted to get rid of all a

Re: Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
On 1/6/06, Ian Holsman <[EMAIL PROTECTED]> wrote: > > Hi. > I'm using packages. > I think it is a good place to put stuff like package-specific preferences. I'm going to leave them as is for now. There's actually quite a bit that depends on them that I need to take a closer look at. I'm starting

Re: Proposal: django.models.core/auth should be regular apps

2006-01-06 Thread Joseph Kocherhans
On 1/6/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > * Move auth to django.contrib.admin (and change dependencies) Did you mean move auth to django.contrib.auth here? Or do you really want it moved into admin? Joseph

Re: Proposal: django.models.core/auth should be regular apps

2006-01-08 Thread Joseph Kocherhans
Here's a status update on moving dango.contib.core/auth into django.contirb: * Move sessions from core to django.contrib.sessions (and change dependencies) Done. * Move sites from core to django.contrib.sites (and change dependencies) Done. * Move auth to django.contrib.admin (and change depend

Re: Proposal: Django namespace simplification

2006-01-08 Thread Joseph Kocherhans
On 1/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > > django.core.extensions -> django.shortcuts > > - includes render_to_string > > +1. "django.shortcuts" is a *perfect* name for this module. I like this idea, but I think that shortcuts of whatever shoul

Re: Proposal: django.models.core/auth should be regular apps

2006-01-09 Thread Joseph Kocherhans
On 1/9/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 1/8/06, Joseph Kocherhans <[EMAIL PROTECTED]> wrote: > > Here's a status update on moving dango.contib.core/auth into django.contirb: > >> > > * Remove Package model (and dependencies on it)

Re: CurrentUser, Owner permission, and so forth ...

2006-01-10 Thread Joseph Kocherhans
On 1/10/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 1132 and 1164 both provides solutions for the CurrentUser issue), but > as > of now, these solutions have been (in my own opinion rightly) deemed > too > hackish to get committed. This thread is aimed at finding a clean > implementation

Proposal: Allow custom redirects in the admin system

2006-01-11 Thread Joseph Kocherhans
I hate to request more changes to magic-removal... but that's where this should happen. Maybe it should wait until after it's been merged though. Currently the redirects after add_stage and change_stage in the admin system are hardcoded. One of the most frequent requests I get in my projects is t

  1   2   3   >