Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6220D979 for ; Fri, 4 Jan 2013 17:03:17 +0000 (UTC) Received: (qmail 15672 invoked by uid 500); 4 Jan 2013 17:03:17 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 15639 invoked by uid 500); 4 Jan 2013 17:03:17 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 15629 invoked by uid 99); 4 Jan 2013 17:03:17 -0000 Received: from bloodhound-vm.apache.org (HELO bloodhound-vm) (140.211.11.32) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2013 17:03:17 +0000 Received: from bloodhound-vm.apache.org (localhost [127.0.0.1]) by bloodhound-vm (Postfix) with ESMTP id 6546D8045A; Fri, 4 Jan 2013 17:03:17 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit From: "Apache Bloodhound" X-Trac-Version: 1.0 Cc: bloodhound-commits@incubator.apache.org Auto-Submitted: auto-generated X-Mailer: Trac 1.0, by Edgewall Software X-Trac-Project: Apache Bloodhound Date: Fri, 04 Jan 2013 17:03:16 -0000 Reply-To: bloodhound-dev@incubator.apache.org X-URL: https://issues.apache.org/bloodhound/ Subject: Re: [Apache Bloodhound] #336: bhdashboard.model.ModelBase insert method fails if no unique fields specified X-Trac-Ticket-URL: https://issues.apache.org/bloodhound/ticket/336#comment:1 Message-ID: <070.a72aea3463f582044323990458aa48be@incubator.apache.org> References: <055.e3502ede5892f08422a12d21295b3bb0@incubator.apache.org> X-Trac-Ticket-ID: 336 In-Reply-To: <055.e3502ede5892f08422a12d21295b3bb0@incubator.apache.org> #336: bhdashboard.model.ModelBase insert method fails if no unique fields specified ---------------------------+-------------------- Reporter: franco | Owner: nobody Type: defect | Status: new Priority: critical | Milestone: Component: multiproduct | Version: 0.3.0 Resolution: | Keywords: ---------------------------+-------------------- Comment (by franco): This [https://issues.apache.org/bloodhound/attachment/ticket/336/bloodhound_t336 attachment] is a patch that adds a test case to multiproduct.test.model module, reproducing the error Sorry not submitting a solution patch.. I have some code related to ModelBase that is not quite finished yet... in my local copy I added a first condition like this:[[BR]] {{{ elif len(self._meta['unique_fields']) \ and len(self.select(self._env, where = ... }}} Best regards, -- Ticket URL: Apache Bloodhound The Apache Bloodhound (incubating) issue tracker