Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Jacob Kaplan-Moss
On 12/19/06 5:12 PM, Russell Keith-Magee wrote: There are only two things that could be considered non-backwards compatible: 1) The renaming of the inital_data targets to custom_sql How about we keep the initial data targets around, but just have 'em spit a "this function has been renamed t

#2473 - 'in' QuerySet operator generates invalid SQL for empty list

2006-12-19 Thread Gary Wilson
Patch and a few tests added. Can someone please review and test on something other than postgres. http://code.djangoproject.com/ticket/2473 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" grou

Re: Customizable object tools

2006-12-19 Thread Gary Wilson
Gary Wilson wrote: Looking at my ticket again, I am thinking it would be better to put the block tag in the admin/base_site.html template, that way any other page extending admin/base_site.html could add custom object tools instead of just the change_list page. I meant admin/base.html. Added

Re: Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Matthew Flanagan
On 20/12/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 12/20/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: > > Hi Russell, > > I've been using Hugo/Georg's stuff.testing [1] framework for quite a > while and some of the things I like about it are: > > a. I can have fixtures located an

Re: Handling exceptions raised while processing requests from django.test.client.Client

2006-12-19 Thread Russell Keith-Magee
On 12/19/06, Afternoon <[EMAIL PROTECTED]> wrote: Currently any exception raised by a view or other request machinery while handling a request from the test client is hidden from the requesting test case by Django's exception views (500, error debug). I have created a patch and a ticket for an

Re: Client.raw_post

2006-12-19 Thread Russell Keith-Magee
On 12/18/06, Afternoon <[EMAIL PROTECTED]> wrote: A little while ago there was a discussion[1] about test cases that post raw data such as XML or JSON to a view. Russ suggested adding a raw_post method to the test Client to facilitate such tests. I've created a ticket and uploaded a patch that

Re: Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Russell Keith-Magee
On 12/20/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: Hi Russell, I've been using Hugo/Georg's stuff.testing [1] framework for quite a while and some of the things I like about it are: a. I can have fixtures located anywhere in my python path and load them. I have project wide fixtures tha

Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Matthew Flanagan
Hi Russell, I've been using Hugo/Georg's stuff.testing [1] framework for quite a while and some of the things I like about it are: a. I can have fixtures located anywhere in my python path and load them. I have project wide fixtures that I use for testing some of my apps without having to dupli

Re: Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Russell Keith-Magee
On 12/20/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: I'm +1 on checking this into trunk right away -- as far as I can tell it's completely backwards-compatible, right? Unless anyone objects -- and of course after Adrian's given the OK -- are you happy enough with this to check it in? Th

newforms feedback

2006-12-19 Thread Alan Green
Hi Adrian, I've been using newforms to implement a short form. Generally, it's been a smooth ride, and I appreciate the flexibility and simplicity of rendering compared to the old way. Between the doco, the examples in the test case and the code, using it was straightforward too. I have just thr

Changing user passwords in admin

2006-12-19 Thread SmileyChris
Although the new user form was a good start, it wasn't really a complete solution to ticket 61 (auth.User admin form shouldn't require people to edit hashes) I wrote up a form which allows staff members (with correct permissions) to change user passwords: http://code.djangoproject.com/ticket/3166

Re: #2333 Pt 3 - Test system fixture data

2006-12-19 Thread Jacob Kaplan-Moss
On 12/17/06 11:58 PM, Russell Keith-Magee wrote: > Time for the long promised phase 3 of the Django testing framework - > fixtures - to make an appearance. I've attached the changes as a > single patch to ticket #2333 Rock on, Russ -- this is awesome. I'm +1 on checking this into trunk right awa

Re: admin-interface: move up/down proposal

2006-12-19 Thread Chad Maine
I've built similar things in django myself, although they never looked as nice as that. :) I'd love to take a look at what you've got. Chad On 12/19/06, va:patrick.kranzlmueller <[EMAIL PROTECTED]> wrote: > > > we´ve integrated the capability of moving items in the admin change- > list acc. to a

Re: Customizable object tools

2006-12-19 Thread Gary Wilson
FYI, I filed a ticket [1] about this same topic last week, but I was asking for an extra block tag in the change_list template. I am assuming that you are also putting the object_tool_links on the change_list page? Looking at my ticket again, I am thinking it would be better to put the block tag

Customizable object tools

2006-12-19 Thread ao
Hi, At least a couple of times I needed to add additional links in a changelist page (like "Add Item+"). So I tweaked admin code to accept "object_tool_links" attribute in model's Admin class where I specify a 3-tuple (link_text, link_href, classes) eg. ('Clean Up', 'cleanup/', 'customlink someot

admin-interface: move up/down proposal

2006-12-19 Thread va:patrick.kranzlmueller
we´ve integrated the capability of moving items in the admin change- list acc. to a field called "position". screenshots are here: http://www.vonautomatisch.at/django/move/index.html question is: is someone interested in abstracting the integration, e.g. using some kind of "move_by"-field in

Re: Oracle: call for testing

2006-12-19 Thread McA
Matt Boersma schrieb: > Here is the current status of Oracle support: Hi Matt, thank you for answering so fast. It helps me starting in the right direction, hopefully. ;-) > Questions about Django development in general are answered here: > http://www.djangoproject.com/documentation/contribut

Re: Re: File Uploads Problem

2006-12-19 Thread Russell Keith-Magee
On 12/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > after a bit of tweaking with the MEDIA_ROOT i am able to post files > through my custom manipulator. I still have to work on the validation > scheme on the manipulator but this works for abeta launch. I should point out at this poin

Re: File Uploads Problem

2006-12-19 Thread [EMAIL PROTECTED]
I got this to work by changinging up the line here from the Manipulator >>def complete(self, request, data): >>self.save() I put this in my Participant manipulator self.participant.save() self.participant.save_photo_path_file(data['photo_path']['filename'],data['photo_path']['content'])