On 10/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Jon Rosebaugh wrote: > > On 10/12/06, [EMAIL PROTECTED] > > <[EMAIL PROTECTED]> wrote: > > > Hi, I'm new to python and I am trying to implement a website which > > > parses newsgroups for cooking recipes. > > > > My recommendation would be to write a separate script (not directly > > using Pylons) that parses the newsgroups and adds the recipes to the > > database. You could then have this script running in a cronjob, and > > the Pylons app could handle reading the recipes from the database. > > Ok, that is a solution for me. > > I'd like to use the pylons framework for this task, especially the > model, in order to avoid code duplication (that is the reason > why I implemented the task by a controller). > > So, how do I have to proceed ?
Is the script going to be called from the local machine or a remote machine? If from a remote machine, you'll probably want to use HTTP auth. If from a local machine, it'd be fun to try to use paste.auth.fixture so that you can use the Web application without even using the Web server. A third option, consider using your models defined your Web app even from outside that Web app. (Just my mostly useless $0.02.) Happy Hacking! -jj -- The one who gets the last laugh isn't the one who did the laughing, but rather the one who did the writing. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss -~----------~----~----~----~------~----~------~--~---
