On Mar 21, 7:15 pm, Christian Benke <
benkoka...@gmail.com> wrote:
> Hu? What's your idea about?
>
> The sync will be started by user-input. It's a local webinterface used
> for publishing to a public website - when a internet connection is
> available...
You can "bootstrap" pyramid onto the command line (
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/commandline.html
)
It's a lifesaver for building maintenance scripts -- you have full
access to your pyramid environment, or can just write whatever you
need in some customized script-only logic.
you could easily use a commandline script to wrap all the rsync stuff
(via popen or whatever), then do all the post-processing ( you'd have
access to your helpers and models ). if you're doing periodic syncs,
run it through a crontab. if you're doing a web based trigger... you
could have it trigger a new subprocess ( though i'd probably `touch`
and `rm` a file to use as a semaphore to know if the process is
already running )
does that make sense ?