Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 1 commit
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Apr 10, 2012
Apostolos Bessas Remove the txcreatedirs command.
The command was responsible to create the storage space for uploaded
files. We are removing it as the storages app has bee nremoved, too.
28a2ef5
Showing with 0 additions and 27 deletions.
  1. +0 −27 transifex/txcommon/management/commands/txcreatedirs.py
27 transifex/txcommon/management/commands/txcreatedirs.py
View
@@ -1,27 +0,0 @@
-import os, sys
-from django.core.management.base import NoArgsCommand
-
-def transifex_paths():
- from django.conf import settings as s
- # Scratch dir
- yield s.SCRATCH_DIR
- # Msgmerge dir
- yield s.STORAGE_DIR
- # Log path
- yield s.LOG_PATH
-
-
-class Command(NoArgsCommand):
- help = 'Create required directories'
-
- requires_model_validation = True
- can_import_settings = True
-
- def handle_noargs(self, **options):
- for path in transifex_paths():
- try:
- os.makedirs(path)
- sys.stdout.write((u"Creating %s\n" % path).encode('UTF-8'))
- except OSError, e:
- sys.stdout.write((u"Error creating %s: %s\n" % (path, e.strerror)).encode('UTF-8'))
-

No commit comments for this range

Something went wrong with that request. Please try again.