Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Syncing files between local and remote pyramid-app - anything built-in?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Christian Benke  
View profile   Translate to Translated (View Original)
 More options Mar 21, 9:12 am
From: Christian Benke <benkoka...@gmail.com>
Date: Thu, 21 Mar 2013 14:12:41 +0100
Local: Thurs, Mar 21 2013 9:12 am
Subject: Syncing files between local and remote pyramid-app - anything built-in?
Hello!

I want to sync data(JPG-files and JSON) between a local and a remote
Pyramid-app. Is there any built-in capability for that in Pyramid?
Otherwise i'd use the python-requests HTTP library. All comments are
appreciated!

Best regards,
Christian

--
Central Asia by bike, starting May 2013 - http://poab.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options Mar 21, 5:41 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Thu, 21 Mar 2013 14:41:31 -0700 (PDT)
Local: Thurs, Mar 21 2013 5:41 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?
what about using `rsync` on the command line ?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Whit Morriss  
View profile  
 More options Mar 21, 5:42 pm
From: Whit Morriss <w...@surveymonkey.com>
Date: Thu, 21 Mar 2013 21:42:48 +0000
Local: Thurs, Mar 21 2013 5:42 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?
or git + rsync if you need a history.

d. "whit" morriss
Platform Codemonkey
w...@surveymonkey.com

On Mar 21, 2013, at 4:41 PM, Jonathan Vanasco <jonat...@findmeon.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options Mar 21, 5:55 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Thu, 21 Mar 2013 14:55:54 -0700 (PDT)
Local: Thurs, Mar 21 2013 5:55 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?

On Mar 21, 5:42 pm, Whit Morriss <w...@surveymonkey.com> wrote:

> or git + rsync if you need a history.

that's really smart!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Benke  
View profile  
 More options Mar 21, 6:08 pm
From: Christian Benke <benkoka...@gmail.com>
Date: Thu, 21 Mar 2013 23:08:28 +0100
Local: Thurs, Mar 21 2013 6:08 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?
On 21 March 2013 22:41, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> what about using `rsync` on the command line ?

I'm considering it, probably a mix of binary via rsync and json via
POST. I need to parse that data on the remote end, so some kind of
feedback/callback if everything went fine would be nice. But that's
only really necessary for the json-part, not for the binaries.

Looks like i'll stick with python-requests then. The WebOb-docs are
down unfortunately...

Best regards,
Christian


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options Mar 21, 6:26 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Thu, 21 Mar 2013 15:26:29 -0700 (PDT)
Local: Thurs, Mar 21 2013 6:26 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?
you could do a command-line pyramid tool that runs on a crontab and
wraps the rsync + cleanup routines.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Benke  
View profile  
 More options Mar 21, 7:15 pm
From: Christian Benke <benkoka...@gmail.com>
Date: Fri, 22 Mar 2013 00:15:12 +0100
Local: Thurs, Mar 21 2013 7:15 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?

> you could do a command-line pyramid tool that runs on a crontab and
> wraps the rsync + cleanup routines.

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile   Translate to Translated (View Original)
 More options Mar 21, 7:29 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Thu, 21 Mar 2013 16:29:59 -0700 (PDT)
Local: Thurs, Mar 21 2013 7:29 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?

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/com...
)

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 ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christian Benke  
View profile  
 More options Mar 21, 7:55 pm
From: Christian Benke <benkoka...@gmail.com>
Date: Fri, 22 Mar 2013 00:55:55 +0100
Local: Thurs, Mar 21 2013 7:55 pm
Subject: Re: Syncing files between local and remote pyramid-app - anything built-in?

> 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 ?

Ah, yes it does!

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »