Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More configuration options #150

Open
AndreasRydberg opened this issue Sep 2, 2013 · 3 comments
Open

More configuration options #150

AndreasRydberg opened this issue Sep 2, 2013 · 3 comments
Labels

Comments

@AndreasRydberg
Copy link

Hi!

  1. Is there a way to disable the delete events?
    I use S3 both as a fileserver for CloudFront and as a file backup. If a file or directory was deleted by mistake or by error on the origin server, I don't want the files to be deleted on S3 as well.
  2. Is there a way to set configuration options in config.xml?
    For example: the setting in arbitrator.py there is these lines:
if not 'DJANGO_SETTINGS_MODULE' in os.environ:
    os.environ['DJANGO_SETTINGS_MODULE'] = 'fileconveyor.django_settings'

I would like configuration options like this to be in config.xml instead of using the shell like: export DJANGO_SETTINGS_MODULE=django_settings.

Regards,
Andreas

@wimleers
Copy link
Owner

wimleers commented Sep 3, 2013

  1. That is not currently supported. Add ability to delete source files after they have been synced #100 is related — it's the inverse :)
  2. Hrm, why would you want that?

@AndreasRydberg
Copy link
Author

  1. I know that fileconveyor can delete synced files from origin server. Not what I was looking for though.
  2. Currently I have to set DJANGO_SETTINGS_MODULE from shell. I solved it by always setting it in the script file I use to start fileconveyor. But it would be nice to have all (alse general/global) settings, if there are more settings, in one place instead of spreading them out.
    But if it was set in the config.xml it could be something like:
<settings>
  <param name="DJANGO_SETTINGS_MODULE" value="django_settings" />
  <param name="another_setting" value="another_value" />
</settings>

(I have no experience with python, so please excuse any mix-up with python and django.)

@wimleers
Copy link
Owner

  1. I understand. The answer is: no, it's not yet supported. You can create a pull request to add support for this. Alternatively, you can just hack the code by commenting the code that listens for delete events. That's of course not sustainable in the long term (upgrading will be hard), but it might be a good way to see if File Conveyor can fulfill your needs.
  2. You shouldn't have to set DJANGO_SETTINGS_MODULE at all. Why do you need to set it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants