svn commit: r1573476 - /bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py

2014-03-02 Thread rjollos
Author: rjollos
Date: Mon Mar  3 07:58:49 2014
New Revision: 1573476

URL: http://svn.apache.org/r1573476
Log:
0.8dev: Do not crash if product names or invalid prefix set in product column. 
Refs #709.

Patch by Olemis Lang.

Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py?rev=1573476&r1=1573475&r2=1573476&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py 
(original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py Mon 
Mar  3 07:58:49 2014
@@ -72,9 +72,13 @@ class ProductQuery(Query):
 return self.cols
 
 def _get_ticket_href(self, prefix, tid):
-env = lookup_product_env(self.env, prefix)
-href = resolve_product_href(env, self.env)
-return href.ticket(tid)
+try:
+env = lookup_product_env(self.env, prefix)
+except LookupError:
+return '#invalid-product-' + prefix
+else:
+href = resolve_product_href(env, self.env)
+return href.ticket(tid)
 
 def get_href(self, href, id=None, order=None, desc=None, format=None,
  max=None, page=None):




[Apache Bloodhound] #774: Date entry nearly impossible in administration of versions and milestones

2014-03-02 Thread Apache Bloodhound
#774: Date entry nearly impossible in administration of versions and milestones
--+
 Reporter:  hb|  Owner:  nobody
 Type:  defect| Status:  new
 Priority:  major |  Milestone:
Component:  projectadmin  |Version:  0.7.0
 Keywords:|
--+
 When in the admin section .../products/%40/admin/ticket/milestones or
 versions, and clicking on the date field, a calendar pops up.
 * that calendar is overlaid on top of the date text field
 * that calendar is behind the product selection bar.

 This has been reproduced in FF and Chrome, latest versions

 See attached file.

 The result is:
 * It is not possible to select a day from the first 2 weeks of the month
 displayed
 * it is not possible to bypass that by entering a date in the text field,
 as that field is hidden as well.

 Only workarounds possible:
 * click in the textfield where one wants to make a change, and type
 'blindly'.
 * change the zoom level to 50% or 250%, to make use of the errors in the
 CSS that do not anchor the calendar the same way as the main content,
 thereby moving the calendar alongside the main content.

 Neither of them is really acceptable.

 side note:
 And once entry is done there, one has to restart apache to let BH take the
 changes into account. That is the subject of another ticket.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


[Apache Bloodhound] New user registration: hb

2014-03-02 Thread Apache Bloodhound
New user registration for user hb

--
Apache Bloodhound 
The Apache Bloodhound issue tracker



Re: [Apache Bloodhound] #724: Sub-query links in ticket group stats widget

2014-03-02 Thread Apache Bloodhound
#724: Sub-query links in ticket group stats widget
-+-
  Reporter:  olemis  |  Owner:  nobody
  Type:  | Status:  new
  enhancement|  Milestone:
  Priority:  trivial |Version:  0.7.0
 Component:  dashboard   |   Keywords:  milestone product dashboard,
Resolution:  |  starter
-+-

Comment (by rjollos):

 I don't see the `TicketGroupStatsWidget` being utilized anywhere in
 Bloodhound. Am I overlooking something?

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #727: Handle long free text entries in sending qct fields to newticket interface

2014-03-02 Thread Apache Bloodhound
#727: Handle long free text entries in sending qct fields to newticket interface
--+---
  Reporter:  gjm  |  Owner:  antony
  Type:  enhancement  | Status:  accepted
  Priority:  major|  Milestone:  Release 8
 Component:  dashboard|Version:
Resolution:   |   Keywords:
--+---

Comment (by rjollos):

 (In [1573459])

 0.8dev: Fixed regression in r1570616: the product at scope is no longer
 the default selection. Refs #727.

 The code in `theme.py` was also refactored to simplify preparation of the
 `options` dictionary.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #727: Handle long free text entries in sending qct fields to newticket interface

2014-03-02 Thread Apache Bloodhound
#727: Handle long free text entries in sending qct fields to newticket interface
--+---
  Reporter:  gjm  |  Owner:  antony
  Type:  enhancement  | Status:  accepted
  Priority:  major|  Milestone:  Release 8
 Component:  dashboard|Version:
Resolution:   |   Keywords:
--+---

Comment (by rjollos):

 Sorry that I didn't get to review this sooner. There is a regressions in
 r1570616: the product at scope is no longer the default selection.

 The best way I could see to fix this is with some refactoring, so I hope
 it doesn't seem like I'm trying to hijack your ticket, but since we are
 nearing a release it's probably easiest if I just push the fix and ask for
 feedback (particularly testing).

 What do you think about having the //More fields// link visible but
 disabled, rather than initially hidden? Actually, the only case that it
 will be hidden on page load is at global scope when `[ticket]
 default_product` hasn't been set, so it's probably not worth spending too
 much time refining.

 Minor things:
  * Python source code should wrap on 79 characters. Additional style
 guidelines that we follow can be found at trac:TracDev/CodingStyle.
  * !JavaScript code uses two-space indentation.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


svn commit: r1573459 - in /bloodhound/trunk/bloodhound_theme/bhtheme: htdocs/bloodhound.css templates/bloodhound_theme.html theme.py

2014-03-02 Thread rjollos
Author: rjollos
Date: Mon Mar  3 07:07:53 2014
New Revision: 1573459

URL: http://svn.apache.org/r1573459
Log:
0.8dev: Fixed regression in r1570616: the product at scope is no longer the 
default selection. Refs #727.

The code in `theme.py` was also refactored to simplify preparation of the 
`options` dictionary.

Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1573459&r1=1573458&r2=1573459&view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Mon Mar  3 
07:07:53 2014
@@ -343,7 +343,7 @@ ol.arabic { list-style-type: decimal
  margin-bottom: 5px;
 }
 #qct-more {
-visibility: hidden;
+ visibility: hidden;
 }
 
 /*

Modified: 
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1573459&r1=1573458&r2=1573459&view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html 
(original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html 
Mon Mar  3 07:07:53 2014
@@ -117,13 +117,15 @@
   
   
 
+class="input-block-level" data-field="${field.name}"
+data-optional="${'true' if field.optional else 
'false'}">
   ${'' if field.optional else 
'Choose...'}
-  
   http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1573459&r1=1573458&r2=1573459&view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Mar  3 07:07:53 2014
@@ -47,7 +47,6 @@ from bhdashboard.web_ui import Dashboard
 from bhdashboard import wiki
 
 from multiproduct.env import ProductEnvironment
-from multiproduct.model import Product
 from multiproduct.web_ui import PRODUCT_RE, ProductModule
 from bhtheme.translation import _, add_domain
 
@@ -532,7 +531,7 @@ class QuickCreateTicketDialog(Component)
 locale_dir = pkg_resources.resource_filename(__name__, 'locale')
 add_domain(self.env.path, locale_dir)
 super(QuickCreateTicketDialog, self).__init__(*args, **kwargs)
-
+
 # IRequestFilter(Interface):
 
 def pre_process_request(self, req, handler):
@@ -556,26 +555,31 @@ class QuickCreateTicketDialog(Component)
 dum_req.perm = req.perm
 ticket = Ticket(self.env)
 tm._populate(dum_req, ticket, False)
-all_fields = dict([f['name'], 
self.add_prod_new_ticket_url(dum_req, f)]
+all_fields = dict([f['name'], f]
   for f in tm._prepare_fields(dum_req, ticket)
   if f['type'] == 'select')
 
 product_field = all_fields.get('product')
 if product_field:
-# Filter out products for which user doesn't have TICKET_CREATE
-product_field['options'] = \
-[prefix for prefix in product_field['options']
- if req.perm.has_permission('TICKET_CREATE',
-Neighborhood('product', 
prefix['value'])
-.child(None, None))]
-
+# When at product scope, set the default selection to the
+# product at current scope. When at global scope the default
+# selection is determined by [ticket] default_product
 if self.env.product and \
 self.env.product.prefix in product_field['options']:
 product_field['value'] = self.env.product.prefix
-product_field['options_desc'] = [
-ProductEnvironment.lookup_env(self.env, 
p['value']).product.name
-for p in product_field['options']
-]
+# Transform the options field to dictionary of product
+# attributes and filter out products for which user doesn't
+#  have TICKET_CREATE permission
+product_field['options'] = [
+dict(value=p,
+ new_ticket_url=dum_req.href.products(p, 'newticket'),
+ description=ProductEnvir

svn commit: r1573456 - /bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js

2014-03-02 Thread rjollos
Author: rjollos
Date: Mon Mar  3 06:30:20 2014
New Revision: 1573456

URL: http://svn.apache.org/r1573456
Log:
0.8dev: Reformat file to fix style and indentation.

Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js?rev=1573456&r1=1573455&r2=1573456&view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/js/theme.js Mon Mar  3 
06:30:20 2014
@@ -1,286 +1,289 @@
 /*
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
-*/
-
-$( function () {
-var qct_result = {};
-var qct_timeout = null;
-var grayed_out_controls = '#content, [role*="application"], #vc-summary, 
#inplace-propertyform, #attachments, .activityfeed, #help';
-
-
-// Do not close dropdown menu if user interacts with form controls
-$('.dropdown-menu input, .dropdown-menu label, .dropdown-menu select' +
-', .dropdown-menu textarea').click(function (e) { e.stopPropagation(); 
});
-
-function qct_inline_close()
-{
-  $(grayed_out_controls).css('opacity', '');
-  $('form:not("#qct-inline-form") :input').removeAttr('disabled');
-  if ($('#qct-inline').is(':visible'))
-  {
-$('#qct-inline').hide({'duration': 400});
-  }
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
+$(function() {
+  var qct_result = {};
+  var qct_timeout = null;
+  var grayed_out_controls = '#content, [role*="application"], #vc-summary, 
#inplace-propertyform, #attachments, .activityfeed, #help';
+
+
+  // Do not close dropdown menu if user interacts with form controls
+  $('.dropdown-menu input, .dropdown-menu label, .dropdown-menu select' +
+', .dropdown-menu textarea').click(function(e) {
+e.stopPropagation();
+  });
+
+  function qct_inline_close() {
+$(grayed_out_controls).css('opacity', '');
+$('form:not("#qct-inline-form") :input').removeAttr('disabled');
+if ($('#qct-inline').is(':visible')) {
+  $('#qct-inline').hide({'duration': 400});
 }
+  }
 
-// If the window is resized, close the inline form + re-enable
-// all other forms to prevent undesirable behaviour. For example,
-// resizing the window to a -desktop size when inline form is
-// shown would result in the form disappearing (ok), but all other
-// forms would still be disabled (not ok).
-// NOTE - currently disabled due to certain phones resizing the
-// window when the form controls are focused (e.g. input)
-/*
-$(window).resize(function() {
-  qct_inline_close();
-});
-*/
+  // If the window is resized, close the inline form + re-enable
+  // all other forms to prevent undesirable behaviour. For example,
+  // resizing the window to a -desktop size when inline form is
+  // shown would result in the form disappearing (ok), but all other
+  // forms would still be disabled (not ok).
+  // NOTE - currently disabled due to certain phones resizing the
+  // window when the form controls are focused (e.g. input)
+  /*
+   $(window).resize(function() {
+   qct_inline_close();
+   });
+   */
+
+  function checkSelections() {
+return $.inArray('', $('#qct-box 
select[data-optional=false]').map(function() {
+  return $(this).val();
+})) == -1;
+  }
 
-function checkSelecti

Re: [Apache Bloodhound] #708: Use index column to update PostgreSQL sequence

2014-03-02 Thread Apache Bloodhound
#708: Use index column to update PostgreSQL sequence
+
  Reporter:  olemis |  Owner:  olemis
  Type:  defect | Status:  closed
  Priority:  critical   |  Milestone:  Release 8
 Component:  trac core  |Version:
Resolution:  fixed  |   Keywords:  postgresql db, upgrade
+
Changes (by rjollos):

 * owner:  rjollos => olemis


-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #660: Integrate changes from Trac 1.0.2

2014-03-02 Thread Apache Bloodhound
#660: Integrate changes from Trac 1.0.2
+
  Reporter:  rjollos|  Owner:  rjollos
  Type:  defect | Status:  new
  Priority:  major  |  Milestone:  Release 9
 Component:  trac core  |Version:
Resolution: |   Keywords:  trac-1.0.2
+
Description changed by rjollos:

Old description:

> When Trac 1.0.2 is released, a number of changes will need to be made to
> the templates, and even some commits to the copy of Trac rolled back.
> This ticket will track the required changes:
>
> Tickets tracking template changes needed for 1.0.2:
> [[TicketQuery(keywords~=trac-1.0.2)]]
>
> Changesets that need to be rolled back on the trunk:
>  *
> [http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/trac/trac/config.py?r1=1420073&r2=1438019&pathrev=1438019&diff_format=h
> r1438019] (see #115 and t:#11023)

New description:

 When Trac 1.0.2 is released, a number of changes will need to be made to
 the templates, and even some commits to the copy of Trac rolled back. This
 ticket will track the required changes:

 Tickets tracking template changes needed for 1.0.2:
 [[TicketQuery(keywords~=trac-1.0.2)]]

 Changesets that need to be rolled back on the trunk:
  *
 
[http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/trac/trac/config.py?r1=1420073&r2=1438019&pathrev=1438019&diff_format=h
 r1438019] (see #115 and t:#11023)
  * [1573440], when trac:#11512 is integrated.

--

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #708: Use index column to update PostgreSQL sequence

2014-03-02 Thread Apache Bloodhound
#708: Use index column to update PostgreSQL sequence
+
  Reporter:  olemis |  Owner:  rjollos
  Type:  defect | Status:  closed
  Priority:  critical   |  Milestone:  Release 8
 Component:  trac core  |Version:
Resolution:  fixed  |   Keywords:  postgresql db, upgrade
+
Changes (by rjollos):

 * status:  review => closed
 * resolution:   => fixed


Comment:

 (In [1573440])

 0.8dev: Use column name for determining the MAX value when updating the
 sequence. Refs #708.

 Patch by Olemis Lang. This change will be reverted when trac:#11512 is
 merged.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


svn commit: r1573440 - /bloodhound/trunk/trac/trac/db/postgres_backend.py

2014-03-02 Thread rjollos
Author: rjollos
Date: Mon Mar  3 04:28:51 2014
New Revision: 1573440

URL: http://svn.apache.org/r1573440
Log:
0.8dev: Use column name for determining the MAX value when updating the 
sequence. Refs #708.

Patch by Olemis Lang. This change will be reverted when trac:#11512 is merged.

Modified:
bloodhound/trunk/trac/trac/db/postgres_backend.py

Modified: bloodhound/trunk/trac/trac/db/postgres_backend.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/trac/trac/db/postgres_backend.py?rev=1573440&r1=1573439&r2=1573440&view=diff
==
--- bloodhound/trunk/trac/trac/db/postgres_backend.py (original)
+++ bloodhound/trunk/trac/trac/db/postgres_backend.py Mon Mar  3 04:28:51 2014
@@ -255,8 +255,8 @@ class PostgreSQLConnection(ConnectionWra
 
 def update_sequence(self, cursor, table, column='id'):
 cursor.execute("""
-SELECT setval('"%s_%s_seq"', (SELECT MAX(id) FROM %s))
-""" % (table, column, table))
+SELECT setval('"%s_%s_seq"', (SELECT MAX(%s) FROM %s))
+""" % (table, column, column, table))
 
 def cursor(self):
 return IterableCursor(self.cnx.cursor(), self.log)




Re: [Apache Bloodhound] #487: Test case `test_rss_conversion` in Trac core is failing

2014-03-02 Thread Apache Bloodhound
#487: Test case `test_rss_conversion` in Trac core is failing
-+--
  Reporter:  rjollos |  Owner:  nobody
  Type:  defect  | Status:  closed
  Priority:  minor   |  Milestone:
 Component:  trac core   |Version:
Resolution:  worksforme  |   Keywords:  unittest
-+--
Changes (by rjollos):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Release 8 =>


Comment:

 The test case is no longer failing on the trunk at r1573278:
 {{{#!sh
 $ PYTHONPATH=. python -m trac.ticket.tests.conversion
 
 --
 Ran 4 tests in 0.180s

 OK
 }}}

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


svn commit: r1573278 - in /bloodhound/trunk/bloodhound_multiproduct/tests: admin/__init__.py db/__init__.py mimeview/__init__.py ticket/__init__.py versioncontrol/__init__.py web/__init__.py wiki/__in

2014-03-02 Thread rjollos
Author: rjollos
Date: Sun Mar  2 10:31:18 2014
New Revision: 1573278

URL: http://svn.apache.org/r1573278
Log:
0.8dev: Package tests can be executed using `__init__` in the module path.
For example: $ PYTHONPATH=. python -m tests.wiki.__init__

Modified:
bloodhound/trunk/bloodhound_multiproduct/tests/admin/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/db/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/mimeview/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/ticket/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/versioncontrol/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/web/__init__.py
bloodhound/trunk/bloodhound_multiproduct/tests/wiki/__init__.py

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/admin/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/admin/__init__.py?rev=1573278&r1=1573277&r2=1573278&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/admin/__init__.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/admin/__init__.py Sun Mar  2 
10:31:18 2014
@@ -17,9 +17,13 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-"""Tests for Apache(TM) Bloodhound's administration in product environments"""
-
+import unittest
 from tests import TestLoader
 
+
 def test_suite():
-return TestLoader().discover_package(__name__, pattern='*.py')
+return TestLoader().discover_package(__package__, pattern='*.py')
+
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/db/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/db/__init__.py?rev=1573278&r1=1573277&r2=1573278&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/db/__init__.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/db/__init__.py Sun Mar  2 
10:31:18 2014
@@ -17,7 +17,13 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+import unittest
 from tests import TestLoader
 
+
 def test_suite():
-return TestLoader().discover_package(__name__, pattern='*.py')
+return TestLoader().discover_package(__package__, pattern='*.py')
+
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/mimeview/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/mimeview/__init__.py?rev=1573278&r1=1573277&r2=1573278&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/mimeview/__init__.py 
(original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/mimeview/__init__.py Sun Mar 
 2 10:31:18 2014
@@ -17,9 +17,13 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-"""Tests for Apache(TM) Bloodhound's MIME API in product environments"""
-
+import unittest
 from tests import TestLoader
 
+
 def test_suite():
-return TestLoader().discover_package(__name__, pattern='*.py')
+return TestLoader().discover_package(__package__, pattern='*.py')
+
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/ticket/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/ticket/__init__.py?rev=1573278&r1=1573277&r2=1573278&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/ticket/__init__.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/ticket/__init__.py Sun Mar  
2 10:31:18 2014
@@ -17,9 +17,13 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
-"""Tests for Apache(TM) Bloodhound's tickets in product environments"""
-
+import unittest
 from tests import TestLoader
 
+
 def test_suite():
-return TestLoader().discover_package(__name__, pattern='*.py')
+return TestLoader().discover_package(__package__, pattern='*.py')
+
+
+if __name__ == '__main__':
+unittest.main(defaultTest='test_suite')

Modified: 
bloodhound/trunk/bloodhound_multiproduct/tests/versioncontrol/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/versioncontrol/__init__.py?rev=1573278&r1=1573277&r2=1573278&view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/versioncontrol/__init__.py 
(original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/versioncontrol/__init__.py 
Sun Mar  2 10:31:18 2014
@@ -17,9 +17,13 @@
 #  specific language governi

Re: [Apache Bloodhound] #771: Improve test case coverage for trac-admin command

2014-03-02 Thread Apache Bloodhound
#771: Improve test case coverage for trac-admin command
---+
  Reporter:  rjollos   |  Owner:  nobody
  Type:  defect| Status:  new
  Priority:  major |  Milestone:  Release 9
 Component:  multiproduct  |Version:
Resolution:|   Keywords:  trac-1.0.2
---+

Comment (by rjollos):

 Replying to [comment:3 olemis]:
 > Read below , there's something wrong and code in /trunk is different to
 what's been suggested in submitted patches .

 There is nothing wrong. I modified the patches before committing and
 created this ticket for future work that will make give the tests better
 coverage. The attached patch is work in progress, and issues such as the
 ambiguity with `config` being both product and global scope still need to
 be worked out.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #772: Many multiproduct test modules can't be executed in isolation

2014-03-02 Thread Apache Bloodhound
#772: Many multiproduct test modules can't be executed in isolation
---+
  Reporter:  rjollos   |  Owner:  olemis
  Type:  defect| Status:  new
  Priority:  major |  Milestone:
 Component:  multiproduct  |Version:
Resolution:|   Keywords:
---+
Changes (by rjollos):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 The issue with executing the attachment tests was due to Babel 1.3.
 However, the `upgrade` tests should be fixed.

-- 
Ticket URL: 
Apache Bloodhound 
The Apache Bloodhound issue tracker