ghorvath committed 3fc87f8

tags fixtures. fabfile updateindex createsuper. fab fix missing config bug see

Comments (0)

Files changed (2)

 from fabric.utils import error
 from contextlib import contextmanager as _contextmanager
 from sys import executable as sys_executable
+import os
 from json import load as json_load
 from functools import partial
 class CustomTask(WrappedCallableTask):
     def __init__(self, callable, *args, **kwargs):
         super(CustomTask, self).__init__(callable, *args, **kwargs)
-        env.use_ssh_config = True
+        if env.ssh_config_path and os.path.isfile(os.path.expanduser(env.ssh_config_path)):
+            env.use_ssh_config = True
         if env.host_string == 'localhost' or not env.hosts:
             env.pyexecutable = sys_executable
    = partial(custom_cd, lcd, 002)
 def collectstatic():
     manage_django('collectstatic --noinput')
+def createsuperuser():
+    manage_django('createsuperuser')
+def updateindex():
+    "updates the haystack search index"
+    manage_django('update_index')


-[{"pk": 1, "model": "freieit.tag", "fields": {"name": "Internet", "parent": []}}, {"pk": 2, "model": "freieit.tag", "fields": {"name": "Office", "parent": []}}, {"pk": 3, "model": "freieit.tag", "fields": {"name": "Multimedia", "parent": []}}, {"pk": 4, "model": "freieit.tag", "fields": {"name": "Server", "parent": []}}, {"pk": 5, "model": "freieit.tag", "fields": {"name": "Programmierung", "parent": []}}, {"pk": 6, "model": "freieit.tag", "fields": {"name": "Betriebssysteme", "parent": []}}, {"pk": 7, "model": "freieit.tag", "fields": {"name": "Privatkunden", "parent": []}}, {"pk": 8, "model": "freieit.tag", "fields": {"name": "Firmenkunden", "parent": []}}]
+[{"pk": 1, "model": "freieit.tag", "fields": {"name": "Internet", "parent": []}}, {"pk": 2, "model": "freieit.tag", "fields": {"name": "Office", "parent": []}}, {"pk": 3, "model": "freieit.tag", "fields": {"name": "Multimedia", "parent": []}}, {"pk": 4, "model": "freieit.tag", "fields": {"name": "Server", "parent": []}}, {"pk": 5, "model": "freieit.tag", "fields": {"name": "Programmierung", "parent": []}}, {"pk": 6, "model": "freieit.tag", "fields": {"name": "Betriebssysteme", "parent": []}}]