Commits

Olemis Lang committed 2dd8f9e

BH Multiproduct #288 #355 : Default product prefix = '' (biz ... now in the right patch)

Comments (0)

Files changed (2)

t288/t288_r1438538_sql_translate_global_env.diff

 # Parent 4d127778e6c908571732fd628a7dac5c27595356
 BH Multiproduct #288 : SQL translate global environment
 
+diff -r 4d127778e6c9 bloodhound_dashboard/bhdashboard/model.py
+--- a/bloodhound_dashboard/bhdashboard/model.py	Fri Jan 25 14:31:29 2013 +0000
++++ b/bloodhound_dashboard/bhdashboard/model.py	Tue Jan 29 19:47:18 2013 -0500
+@@ -158,7 +158,7 @@
+                             sdata)
+             
+         for key in self._meta['key_fields']:
+-            if not self._data[key]:
++            if self._data[key] is None:
+                 sdata = {'key':key}
+                 sdata.update(self._meta)
+                 raise TracError('%(key)s required for %(object_name)s' %
 diff -r 4d127778e6c9 bloodhound_multiproduct/multiproduct/dbcursor.py
 --- a/bloodhound_multiproduct/multiproduct/dbcursor.py	Fri Jan 25 14:31:29 2013 +0000
-+++ b/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Jan 29 19:10:14 2013 -0500
++++ b/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Jan 29 19:47:18 2013 -0500
+@@ -35,7 +35,7 @@
+                ]
+ TRANSLATE_TABLES = ['ticket', 'enum', 'component', 'milestone', 'version', 'permission', 'wiki']
+ PRODUCT_COLUMN = 'product'
+-DEFAULT_PRODUCT = 'default'
++DEFAULT_PRODUCT = ''
+ 
+ class BloodhoundIterableCursor(trac.db.util.IterableCursor):
+     __slots__ = trac.db.util.IterableCursor.__slots__ + ['_translator']
 @@ -72,6 +72,54 @@
      def set_env(cls, env):
          cls._tls.env = env
  
 diff -r 4d127778e6c9 bloodhound_multiproduct/multiproduct/env.py
 --- a/bloodhound_multiproduct/multiproduct/env.py	Fri Jan 25 14:31:29 2013 +0000
-+++ b/bloodhound_multiproduct/multiproduct/env.py	Tue Jan 29 19:10:14 2013 -0500
++++ b/bloodhound_multiproduct/multiproduct/env.py	Tue Jan 29 19:47:18 2013 -0500
 @@ -31,8 +31,9 @@
  
  from multiproduct.api import MultiProductSystem

t355/t355_r1437383_trac_test_ticket_api.diff

 # Parent 0de7786532d2b3a31d46b7e5d023858dd3c342be
 BH Multiproduct #355 : Rewrite Trac test cases for ticket API so as to run them against product environments
 
-diff -r 0de7786532d2 bloodhound_dashboard/bhdashboard/model.py
---- a/bloodhound_dashboard/bhdashboard/model.py	Tue Jan 29 19:10:17 2013 -0500
-+++ b/bloodhound_dashboard/bhdashboard/model.py	Tue Jan 29 19:33:08 2013 -0500
-@@ -158,7 +158,7 @@
-                             sdata)
-             
-         for key in self._meta['key_fields']:
--            if not self._data[key]:
-+            if self._data[key] is None:
-                 sdata = {'key':key}
-                 sdata.update(self._meta)
-                 raise TracError('%(key)s required for %(object_name)s' %
-diff -r 0de7786532d2 bloodhound_multiproduct/multiproduct/dbcursor.py
---- a/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Jan 29 19:10:17 2013 -0500
-+++ b/bloodhound_multiproduct/multiproduct/dbcursor.py	Tue Jan 29 19:33:08 2013 -0500
-@@ -35,7 +35,7 @@
-                ]
- TRANSLATE_TABLES = ['ticket', 'enum', 'component', 'milestone', 'version', 'permission', 'wiki']
- PRODUCT_COLUMN = 'product'
--DEFAULT_PRODUCT = 'default'
-+DEFAULT_PRODUCT = ''
- 
- class BloodhoundIterableCursor(trac.db.util.IterableCursor):
-     __slots__ = trac.db.util.IterableCursor.__slots__ + ['_translator']
 diff -r 0de7786532d2 bloodhound_multiproduct/tests/ticket/__init__.py
 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
 +++ b/bloodhound_multiproduct/tests/ticket/__init__.py	Tue Jan 29 19:33:08 2013 -0500
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.