Re: Enforcing uniqueness as the ORM layer

2007-10-15 Thread Peter Nixon
On Wed 10 Oct 2007, Peter Nixon wrote: > Hi Guys > > I am running into the problem that uniqueness is not enforced at the ORM > layer. From: > http://www.djangoproject.com/documentation/model-api/#unique > > "This is enforced at the database level and at the Django adm

Enforcing uniqueness as the ORM layer

2007-10-10 Thread Peter Nixon
ated in the REST API? Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ 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@googlegroup

Re: Changes to request_response have broken django-rest-interface

2007-10-08 Thread Peter Nixon
On Sat 06 Oct 2007, David Larlet wrote: > 2007/10/5, Malcolm Tredinnick <[EMAIL PROTECTED]>: > > On Fri, 2007-10-05 at 16:17 +0300, Peter Nixon wrote: > > > On Thu 04 Oct 2007, Malcolm Tredinnick wrote: > > > > On Thu, 2007-10-04 at 18:10 +0300, Peter Nixon

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Thu 04 Oct 2007, Malcolm Tredinnick wrote: > On Thu, 2007-10-04 at 18:10 +0300, Peter Nixon wrote: > > I tried to open the following ticket but it thinks my IP is a spammer, > > so I am sending to the list: > > > > http://django-rest-interface.googlecode.com/s

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Fri 05 Oct 2007, Tomas Kopecek wrote: > Peter Nixon napsal(a): > > On Thu 04 Oct 2007, James Bennett wrote: > >> On 10/4/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > >>> I tried to open the following ticket but it thinks my IP is a spammer, > >>&g

Re: Changes to request_response have broken django-rest-interface

2007-10-05 Thread Peter Nixon
On Thu 04 Oct 2007, James Bennett wrote: > On 10/4/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > I tried to open the following ticket but it thinks my IP is a spammer, > > so I am sending to the list: > > If you create an account in Trac, it won't apply spam fil

Changes to request_response have broken django-rest-interface

2007-10-04 Thread Peter Nixon
not the author of django-rest-interface but I am using it in production. Can request._load_post_and_files() be updated to support PUT also in order to fix this issue?? -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message bec

models.NullBooleanField()

2007-10-03 Thread Peter Nixon
istake) but I am not sure than Django should _ever_ trying to insert '' into a boolean field. Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django devel

Re: GSoC 2007 Status Update VIII: Django REST interface

2007-09-10 Thread Peter Nixon
IndexError: print_usage() if mode == '-g': print "Getting MAC: " + opts['-g'] GetMac(opts['-g']) elif mode == '-d': print "Deleting MAC: " + opts['-d'] DelMac(opts['-d']) elif

Re: Ticket #399 (Bigint field object needed) status

2007-07-23 Thread Peter Nixon
On Sun 22 Jul 2007, Adrian Holovaty wrote: > On 7/11/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > I have added a patch to Ticket #399 at: > > http://code.djangoproject.com/attachment/ticket/399/django-bigint-200707 > >11.patch > > A few days ago, I added a hook

Re: Ticket #399 (Bigint field object needed) status

2007-07-21 Thread Peter Nixon
; somewhere else? I wasn't sure how to implement regression tests so I left that bit out :-) -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers&quo

Re: Move form_for_instance and form_for_model into django.db.models.Model?

2007-07-13 Thread Peter Nixon
> to the form *and* figure out somewhere to call it in the model to be > sure illegal ISBNs don't get stored to the database. If I ever get > around to trying to check forms client-side, I'll need to supply that > information in a third way. (Ignore briefly the fact that cl

Re: (Un)Trac

2007-07-12 Thread Peter Nixon
On Thu 12 Jul 2007, Jeremy Dunck wrote: > On 7/12/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > Am I just being dense, or is there no way in django's trac to monitor a > > bug for changes (and receive and email when it does) or even to add a > > bug to a &qu

(Un)Trac

2007-07-12 Thread Peter Nixon
m interested in have been open for 23 months.. How do others keep track of django bugs? I am, like most IT people I am sure, mostly interrupt driven. If something/someone doesn't remind me about a problem I am likely to forget it after a few days/weeks... Regards -- Peter Nixon h

Re: Problem inspecting a (django) postgresql table

2007-07-12 Thread Peter Nixon
these patches? I have applied both to the python-django-snapshot rpms I maintain at: http://software.opensuse.org/download/devel:/languages:/python/ Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: db parameter impemtation

2007-07-12 Thread Peter Nixon
assing in the 1 > as a parameter. > > He says that he saw a query like the first case, and is wondering if > he should open a ticket about it. Yes. That was what I also understood from his questions. 1 is bad from a security and performance point of view. 2 is bett

Ticket #399 (Bigint field object needed) status

2007-07-11 Thread Peter Nixon
PostitiveBigIntegerField and deal with the MySQL incompatibilities... Please forgive any mistakes I made, I am fairly new both to django and python. Regards -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
e django unicode branch as django SVN rev 5608 and earlier work fine on SUSE 10.3 alpha Cheers -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" g

Problem inspecting a (django) postgresql table

2007-07-11 Thread Peter Nixon
rospection.py", line 35, in get_relations relations[int(row[0][1:-1]) - 1] = (int(row[1][1:-1]) - 1, row[2]) TypeError: int() argument must be a string or a number, not 'list' ie. Django doesn't know how to inspect its own tables... Cheers -- Peter Nixon http://peter

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
why this matters when the table is empty - as > shown in your example...but just to be sure) me neither :-( -- Peter Nixon http://peternixon.net/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
>>> a = Test.objects.all() >>> a Aborted testprj> Regards Peter On Wed 11 Jul 2007, Paul Bowsher wrote: > I may be blind, but I can't see anywhere you've actually specified what > the bug is. What behaviour is exhibited? > > On 7/11/07, Peter Nixon <[EMAIL P

Re: Problem in current svn TRUNK

2007-07-11 Thread Peter Nixon
Cross posted to -devel as this is definitely a bug On Wed 11 Jul 2007, Peter Nixon wrote: > On Wed 11 Jul 2007, Russell Keith-Magee wrote: > > On 7/10/07, Peter Nixon <[EMAIL PROTECTED]> wrote: > > > How can I debug this in a way that will provide the developers with