• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Executing simple one-time tasks using EOF
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Executing simple one-time tasks using EOF


  • Subject: Re: Executing simple one-time tasks using EOF
  • From: Miguel Arroz <email@hidden>
  • Date: Sat, 28 Jun 2014 15:04:59 -0700

Hi,

  Can't you use Wonder migrations? I have the vague recollection I did that on a past life for doing tasks like that. AFAIK there were two methods you could define on a migration, the first before EOF loaded the models, and the second one after. But I don't touch that for quite some time now, so I may be confused.

  Regards,

Miguel Arroz

On Jun 28, 2014, at 14:48, Hugi Thordarson <email@hidden> wrote:

> Am I the only one who writes a direct action class every time I need to do EOF-related one-time tasks in my apps, such as DB cleanup, imports, exports etc?
>
> After writing my one-millionth task like this tonight I just realized how deeply, horribly wrong it is, and before I start finding better ways on my own I thought I'd hear from the community. Can anyone recommend a different way? Are people using ERXExtensions.initEOF() or ERXExtensions.initApp() for stuff like this? Or something else?
>
> Paraphrased: You have an EOModel and you need to execute a single, one-time task using the model (probably throwing the code out afterwards). What do you do?
>
> Cheers,
> - hugi
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Executing simple one-time tasks using EOF
      • From: Paul Hoadley <email@hidden>
References: 
 >Executing simple one-time tasks using EOF (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Executing simple one-time tasks using EOF
  • Next by Date: Re: Executing simple one-time tasks using EOF
  • Previous by thread: Executing simple one-time tasks using EOF
  • Next by thread: Re: Executing simple one-time tasks using EOF
  • Index(es):
    • Date
    • Thread