Doug, can you remove this person from the list? Every time I reply to the
list I get a message like this back and it's getting rather annoying.
---------- Forwarded message ----------
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: May 25, 2007 1:27 PM
Subject: RE: Re: [Reactor for CF] MG:Unity + Reactor
To: [EMAIL PROTECTED]
MDaemon has identified your message as spam. It will not be delivered.
From : [EMAIL PROTECTED]
To : [EMAIL PROTECTED]
Subject : [***SPAM*** Score/Req: 02.09/02.00] Re: [Reactor for CF]
MG:Unity + Reactor
Message-ID: <[EMAIL PROTECTED]>
Yes, hits=2.1 required=2.0 tests=BAYES_44,FROM_ENDS_IN_NUMS, HTML_MESSAGE
autolearn=no version=2.64
**
* 1.0 FROM_ENDS_IN_NUMS From: ends in numbers * 0.1 HTML_MESSAGE BODY:
HTML included in message * 1.0 BAYES_44 BODY: Bayesian spam probability is
44 to 50% * [score: 0.4656]
: Message contains [1] file attachments
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Return-path: <[EMAIL PROTECTED]>
Received: from mail.alagad.com (mail.alagad.com [67.59.176.106])
by spleti.net (merlin.spleti.net)
(MDaemon.PRO.v7.2.3.R)
with ESMTP id md50000351005.msg
for <[EMAIL PROTECTED]>; Fri, 25 May 2007 19:26:54 +0200
X-MDSPF-Result: (none)
Received-SPF: none (merlin.spleti.net: [EMAIL PROTECTED] does not
designate permitted sender hosts)
x-spf-client=MDaemon.PRO.v7.2.3.R
receiver=merlin.spleti.net
client-ip=67.59.176.106
envelope-from=<[EMAIL PROTECTED]>
helo=mail.alagad.com
Received: from an-out-0708.google.com [209.85.132.244] by mail.alagad.com with
SMTP;
Fri, 25 May 2007 13:28:09 -0400
Received: by an-out-0708.google.com with SMTP id c28so259646ana
for <[email protected]>; Fri, 25 May 2007 10:24:19 -0700
(PDT)
Received: by 10.100.229.12 with SMTP id b12mr2904689anh.1180113858802;
Fri, 25 May 2007 10:24:18 -0700 (PDT)
Received: by 10.100.33.20 with HTTP; Fri, 25 May 2007 10:24:18 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
d=gmail.com; s=beta;
h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
b=Zd3EVuidirn/2n0n9ALZc1a3nAHK3aLHQ92gasw/65iUqfci+bF8RxAwJJAd65jYCw3NNSErOwZX3jH3YJfAKKmCCvv9rki8n89IQLAjOmcZOM+vMpjhFiDm6rHTVW9kcaqZGMnN2BSpSJqRKgFqoAQdx0ywBLmUu5d2RDzwdF4=
DomainKey-Signature: a=rsa-sha1; c=nofws;
d=gmail.com; s=beta;
h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
b=V186XX2lKr6OnzHmMzUaVlMy1m+EC4ExcHTGJTpawn2t4mLqam7mJXY/+ctbYzo5vNteAhbjuEsmkQ4APx1R6WwI2zX6xn00b4hit0ytn7AZd6oOtBHke2sB24m7ICldQoMBG/YMQZ/Fsejv26dHCOyAPy3j72S+c3YK7ZPhBA0=
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 25 May 2007 13:24:18 -0400
From: "Brian Kotek" <[EMAIL PROTECTED]>
To: [email protected]
Subject: [***SPAM*** Score/Req: 02.09/02.00] Re: [Reactor for CF] MG:Unity +
Reactor
In-Reply-To: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_Part_45772_26684226.1180113858754"
References: <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
reply-to: [email protected]
precedence: list
sender: [EMAIL PROTECTED]
X-Lookup-Warning: MAIL lookup on [EMAIL PROTECTED] does not match 67.59.176.106
X-MDRcpt-To: [EMAIL PROTECTED]
X-Rcpt-To: [EMAIL PROTECTED]
X-MDRemoteIP: 67.59.176.106
X-Return-Path: [EMAIL PROTECTED]
X-MDaemon-Deliver-To: [EMAIL PROTECTED]
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11)
X-Spam-Report:
* 1.0 FROM_ENDS_IN_NUMS From: ends in numbers
* 0.1 HTML_MESSAGE BODY: HTML included in message
* 1.0 BAYES_44 BODY: Bayesian spam probability is 44 to 50%
* [score: 0.4656]
X-Spam-Status: Yes, hits=2.1 required=2.0 tests=BAYES_44,FROM_ENDS_IN_NUMS,
HTML_MESSAGE autolearn=no version=2.64
X-Spam-Level: **
X-Spam-Processed: merlin.spleti.net, Fri, 25 May 2007 19:26:58 +0200
This is a multi-part message in MIME format.
------=_Part_45772_26684226.1180113858754
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Great writeup Doug. I just had one bit of advice (I added a comment but I'll
post it here too):
Doug, very nice summary. One thing I would do though (as Adam mentioned) is
not have database query logic in the Validator. Just grab an instance of the
proper Reactor gateways and check for dups either using the gateway methods
(in this case it's a simple getByFields call) or using a custom Gateway
method. In either case, keep the queries where they belong, in DAOs or
Gateways, not in the Validator. Otherwise, great writeup!
On 5/25/07, Doug Boude <[EMAIL PROTECTED]> wrote:
>
> Hi Doug (great name, by the way). Since you opted to enforce your
> email value's uniqueness via database rules, I'm not sure if the
> following blog post is totally relevant to you, but since I recently
> had to do the exact same thing that you're describing, thought I'd
> take the time to share how I approached and solved it.
>
>
> http://www.dougboude.com/blog/1/2007/05/Custom-Validation-with-Generic-Commit-a-ModelGlue-Case-Study.cfm
>
> Doug :0)
>
> On 5/24/07, Doug Arthur <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm using MG:Unity + Reactor. I'm using a modelglue.GenericCommit and I
> have
> > a unique index so the database cannot have multiple email addresses of
> the
> > same. How can I get validation to work rather than it throwing a hard
> error?
> > Does reactor not catch this in validation? I think it would be nice, if
> > nothing more to check the SQL error that is thrown back for "Cannot
> insert
> > duplicate key". I'm using the validation structure for when users don't
> > enter a value in a non-null field, or enter an incorrect data type
> and/or
> > length.
> >
> >
> > Thanks,
> > - Doug
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> --
> > -- --
> > Reactor for ColdFusion Mailing List
> > [EMAIL PROTECTED]
> > Archives at:
> > http://www.mail-archive.com/reactor%40doughughes.net/
> > -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> --
> > -- --
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [EMAIL PROTECTED]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
>
>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
------=_Part_45772_26684226.1180113858754
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Great writeup Doug. I just had one bit of advice (I added a comment but
I'll post it here too):<br><br>Doug, very nice summary. One thing I would
do though (as Adam
mentioned) is not have database query logic in the Validator. Just grab
an instance of the proper Reactor gateways and check for dups either
using the gateway methods (in this case it's a simple getByFields call)
or using a custom Gateway method. In either case, keep the queries
where they belong, in DAOs or Gateways, not in the Validator.
Otherwise, great writeup!<br><br><div><span class="gmail_quote">On 5/25/07, <b
class="gmail_sendername">Doug Boude</b> <<a href="mailto:[EMAIL
PROTECTED]">[EMAIL PROTECTED]</a>> wrote:</span><blockquote
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin:
0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Doug (great name, by the way). Since you opted to enforce your<br>email
value's uniqueness via database rules, I'm not sure if the<br>following
blog post is totally relevant to you, but since I recently<br>had to do the
exact same thing that you're describing, thought I'd
<br>take the time to share how I approached and solved it.<br><br><a
href="http://www.dougboude.com/blog/1/2007/05/Custom-Validation-with-Generic-Commit-a-ModelGlue-Case-Study.cfm">http://www.dougboude.com/blog/1/2007/05/Custom-Validation-with-Generic-Commit-a-ModelGlue-Case-Study.cfm
</a><br><br>Doug :0)<br><br>On 5/24/07, Doug Arthur <<a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>> wrote:<br>>
Hi,<br>><br>> I'm using MG:Unity + Reactor. I'm using a
modelglue.GenericCommit
and I have<br>> a unique index so the database cannot have multiple email
addresses of the<br>> same. How can I get validation to work rather than it
throwing a hard error?<br>> Does reactor not catch this in validation? I
think it would be nice, if
<br>> nothing more to check the SQL error that is thrown back for
"Cannot insert<br>> duplicate key". I'm using the validation
structure for when users don't<br>> enter a value in a non-null field,
or enter an incorrect data type and/or
<br>> length.<br>><br>><br>> Thanks,<br>> - Doug<br>> -- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --<br>> --
--<br>> Reactor for ColdFusion Mailing List<br>> <a href="mailto:[EMAIL
PROTECTED]">
[EMAIL PROTECTED]</a><br>> Archives at:<br>> <a
href="http://www.mail-archive.com/reactor%40doughughes.net/">http://www.mail-archive.com/reactor%40doughughes.net/</a><br>>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
<br>> -- --<br><br><br>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- -- -- -- -- -- -- --<br>Reactor for ColdFusion Mailing List<br><a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a><br>Archives at:
<a
href="http://www.mail-archive.com/reactor%40doughughes.net/">http://www.mail-archive.com/reactor%40doughughes.net/</a><br>--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
--<br><br></blockquote>
</div><br>
<br />-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- -- --<br />Reactor for ColdFusion Mailing List<br />[EMAIL PROTECTED]<br
/>Archives at: http://www.mail-archive.com/reactor%40doughughes.net/<br />-- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
------=_Part_45772_26684226.1180113858754--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[EMAIL PROTECTED]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --