Permalink
Browse files

Corrected stupid mistake with rpc.py. Added uslogging app.

  • Loading branch information...
1 parent b1cca44 commit d5f846ea4baee3fccaac76a14f8777e07ffa3db0 @aduston aduston committed Apr 20, 2011
No changes.
View
@@ -0,0 +1,3 @@
+from django import forms
+
+# place form definition here
View
@@ -0,0 +1,3 @@
+from django.db import models
+
+# Create your models here.
View
@@ -0,0 +1,3 @@
+from django.conf.urls.defaults import *
+
+# place app url patterns here
View
@@ -0,0 +1 @@
+# Create your views here.
View
@@ -178,7 +178,6 @@ def start_editing(self, request, video_id,
draft = self._get_draft_for_editing(
request, language, base_language)
- self._log_call('start_editing', locals())
subtitles = self._subtitles_dict(draft)
return_dict = { "can_edit" : True,
"draft_pk" : draft.pk,
View
@@ -0,0 +1,17 @@
+from django.conf import settings
+
+USLOGGING_DATABASE = getattr(settings, 'USLOGGING_DATABASE', None)
+
+class UnisubsRouter(object):
+ def db_for_write(self, model, **hints):
+ if model._meta.app_label in ['sentry', 'uslogging'] :
+ return USLOGGING_DATABASE
+
+ def db_for_read(self, model, **hints):
+ return self.db_for_write(model, **hints)
+
+ def allow_syncdb(self, db, model):
+ if not USLOGGING_DATABASE:
+ return None
+ if model._meta.app_label in ['sentry', 'uslogging'] and db != USLOGGING_DATABASE:
+ return False

0 comments on commit d5f846e

Please sign in to comment.