As some may know the lovely US gov't has put new laws in place limiting the sale of Psuedoephedrine. Right now I am in the process of reworking the original application into Model Glue framework also using Coldspring. So here is my question:
Right now the Application merrily has transaction and transaction detail objects (among others). Each detail is added through an AJAX call to the server. My thought right now is to put the code that determines if the current detail can be added to the transaction into an aspect. The idea being that the core objects do not change and the transaction object can continue to happily append details, telling to persist ect. The aspect would "sniff" the detail and if the detail can not be saved due to legal limitation (too many grams of PSE or too many packages per day) the aspect throws an error OverLimit and the application deals with it. My concern is that by through the error I will end of having to deal with that in the transaction object thus changing it anyway. Maybe that's an OK thing but I need someone else to tell me that, or maybe some different suggestions. I just need a reality check from people that have probably been doing this more than me.
Adam Haskell
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
- [CFCDev] Aspect or not? Adam Haskell
- RE: [CFCDev] Aspect or not? Peter Bell
- Re: [CFCDev] Aspect or not? Adam Haskell
- RE: [CFCDev] Aspect or not? Peter Bell
- Re: [CFCDev] Aspect or not? Dave Ross
- RE: [CFCDev] Aspect or not? Peter Bell
- Re: [CFCDev] Aspect or not? Dave Ross
- RE: [CFCDev] Aspect or not? Peter Bell
- Re: [CFCDev] Aspect or not? Adam Haskell
- Re: [CFCDev] Aspect or not? Dave Ross
- RE: [CFCDev] Aspect or not? Peter Bell
