[Apache Bloodhound] Batch modify: #444, #463, #487, #562, #567, #583, #624, #387, #416, #424, #453, #501, #508, #539, #545, #552, #575, #578, #584, #587, #598, #613

2013-08-08 Thread Apache Bloodhound
Batch modification to #444, #463, #487, #562, #567, #583, #624, #387, #416, 
#424, #453, #501, #508, #539, #545, #552, #575, #578, #584, #587, #598, #613 by 
rjollos:
milestone to Release 8

Comment:
Moving tickets forward to proceed with [milestone:Release 7].

-- 
Tickets URL: 
https://issues.apache.org/bloodhound/query?id=444%2C463%2C487%2C562%2C567%2C583%2C624%2C387%2C416%2C424%2C453%2C501%2C508%2C539%2C545%2C552%2C575%2C578%2C584%2C587%2C598%2C613
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1511628 - /bloodhound/trunk/bloodhound_multiproduct/tests/env.py

2013-08-08 Thread rjollos
Author: rjollos
Date: Thu Aug  8 09:02:33 2013
New Revision: 1511628

URL: http://svn.apache.org/r1511628
Log:
`multiproduct.env.ProductEnvironment`: Add unit test for `path` attribute 
laziness. Refs #595.

Modified:
bloodhound/trunk/bloodhound_multiproduct/tests/env.py

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/env.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/env.py?rev=1511628r1=1511627r2=1511628view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/env.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/env.py Thu Aug  8 09:02:33 
2013
@@ -494,6 +494,10 @@ class ProductEnvApiTestCase(Multiproduct
 abs_href = self.product_env.abs_href
 self.assertIs(abs_href, self.product_env.abs_href)
 
+def test_path_is_lazy(self):
+path = self.product_env.path
+self.assertIs(path, self.product_env.path)
+
 def test_path(self):
 Testing env.path
 self.assertEqual(self.product_env.path,




svn commit: r1511640 - in /bloodhound/trunk/bloodhound_multiproduct: multiproduct/env.py tests/env.py

2013-08-08 Thread rjollos
Author: rjollos
Date: Thu Aug  8 09:13:49 2013
New Revision: 1511640

URL: http://svn.apache.org/r1511640
Log:
`multiproduct.env.ProductEnvironment`: Refactoring - Access path value in 
SplitResult object by attribute (available since Python 2.5) rather than index, 
to improve code clarity.

Added tests for `href` attribute. Refs #595.

Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
bloodhound/trunk/bloodhound_multiproduct/tests/env.py

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py?rev=1511640r1=1511639r2=1511640view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py Thu Aug  8 
09:13:49 2013
@@ -857,7 +857,7 @@ class ProductEnvironment(Component, Comp
 @lazy
 def href(self):
 The application root path
-return Href(urlsplit(self.abs_href.base)[2])
+return Href(urlsplit(self.abs_href.base).path)
 
 @lazy
 def abs_href(self):

Modified: bloodhound/trunk/bloodhound_multiproduct/tests/env.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/tests/env.py?rev=1511640r1=1511639r2=1511640view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/tests/env.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/tests/env.py Thu Aug  8 09:13:49 
2013
@@ -594,12 +594,15 @@ class ProductEnvHrefTestCase(Multiproduc
 def test_href_subdomain(self):
 Test product sub domain base URL
 
+self.assertEqual('/', self.product_env.href())
 self.assertEqual('http://tp1.domain.tld', self.product_env.abs_href())
 
 @product_base_url('/path/to/bloodhound/$(prefix)s')
 def test_href_sibling_paths(self):
 Test product base URL at sibling paths
 
+self.assertEqual('/trac.cgi/path/to/bloodhound/tp1',
+ self.product_env.href())
 
self.assertEqual('http://globalenv.com/trac.cgi/path/to/bloodhound/tp1',
  self.product_env.abs_href())
 
@@ -607,6 +610,7 @@ class ProductEnvHrefTestCase(Multiproduc
 def test_href_inherit_sibling_paths(self):
 Test product base URL at sibling paths inheriting configuration.
 
+self.assertEqual('/trac.cgi/env/tp1', self.product_env.href())
 self.assertEqual('http://globalenv.com/trac.cgi/env/tp1',
  self.product_env.abs_href())
 
@@ -614,6 +618,7 @@ class ProductEnvHrefTestCase(Multiproduc
 def test_href_default(self):
 Test product base URL is to a default
 
+self.assertEqual('/trac.cgi/products/tp1', self.product_env.href())
 self.assertEqual('http://globalenv.com/trac.cgi/products/tp1',
  self.product_env.abs_href())
 
@@ -621,6 +626,7 @@ class ProductEnvHrefTestCase(Multiproduc
 def test_href_embed(self):
 Test default product base URL /products/prefix
 
+self.assertEqual('/trac.cgi/products/tp1', self.product_env.href())
 self.assertEqual('http://globalenv.com/trac.cgi/products/tp1',
  self.product_env.abs_href())
 
@@ -628,6 +634,7 @@ class ProductEnvHrefTestCase(Multiproduc
 def test_href_complex(self):
 Test complex product base URL
 
+self.assertEqual('/bh/tp1', self.product_env.href())
 self.assertEqual('http://env.tld/bh/tp1', self.product_env.abs_href())
 
 @product_base_url('http://$(prefix)s.$(envname)s.tld/')
@@ -638,10 +645,12 @@ class ProductEnvHrefTestCase(Multiproduc
 
 # Global URLs
 self.assertEqual('http://globalenv.com/trac.cgi', self.env.base_url)
+self.assertEqual('/trac.cgi', self.env.href())
 self.assertEqual('http://globalenv.com/trac.cgi', self.env.abs_href())
 
 # Product URLs
 self.assertEqual('', self.product_env.base_url)
+self.assertEqual('/', self.product_env.href())
 self.assertEqual('http://tp1.env.tld', self.product_env.abs_href())
 
 @product_base_url('http://$(prefix)s.$(envname)s.tld/')
@@ -655,6 +664,7 @@ class ProductEnvHrefTestCase(Multiproduc
 self.product_env.config.save()
 
 self.assertEqual('http://productenv.com', self.product_env.base_url)
+self.assertEqual('/', self.product_env.href())
 self.assertEqual('http://productenv.com', self.product_env.abs_href())
 
 @product_base_url('http://$(prefix)s.$(envname)s.tld/')
@@ -668,6 +678,7 @@ class ProductEnvHrefTestCase(Multiproduc
 self.product_env.config.save()
 
 self.assertEqual('', self.product_env.base_url)
+self.assertEqual('/', self.product_env.href())
 

Re: [Apache Bloodhound] #595: Refactor multiproduct.env.ProductEnvironment to remove private caching variables

2013-08-08 Thread Apache Bloodhound
#595: Refactor multiproduct.env.ProductEnvironment to remove private caching
variables
---+--
  Reporter:  rjollos   |  Owner:  rjollos
  Type:  enhancement   | Status:  closed
  Priority:  minor |  Milestone:  Release 7
 Component:  multiproduct  |Version:
Resolution:  fixed |   Keywords:  environment lazy
---+--
Changes (by rjollos):

 * status:  accepted = closed
 * resolution:   = fixed


Comment:

 Changes are similar to [t 11863:11867].

 
 (In [1511622])

 `multiproduct.env.ProductEnvironment`: Removed private `_href` variable,
 made unnecessary by use of `lazy` decorator. Refs #595.

 
 (In [1511625])

 `multiproduct.env.ProductEnvironment`: Removed private `_abs_href`
 attribute, made unnecessary by use of `lazy` decorator. Refs #595.

 -
 (In [1511628])

 `multiproduct.env.ProductEnvironment`: Add unit test for `path` attribute
 laziness.  Refs #595.

 -
 (In [1511640])

 `multiproduct.env.ProductEnvironment`: Refactoring - Access `path` value
 in `SplitResult` object by attribute (available since Python 2.5) rather
 than index, to improve code clarity.

 Added tests for `href` attribute. Refs #595.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/595#comment:2
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #594: TracError: KeyError: 'SCRIPT_NAME'

2013-08-08 Thread Apache Bloodhound
#594: TracError: KeyError: 'SCRIPT_NAME'
---+-
  Reporter:  tim   |  Owner:
  Type:  defect| Status:  review
  Priority:  critical  |  Milestone:  Release 7
 Component:  multiproduct  |Version:  0.6.0
Resolution:|   Keywords:  wsgi, hooks
---+-

Comment (by rjollos):

 Since the patches in #592 have been applied, will we still need
 [attachment: t594_r1503620_hooks_safe_script_name.diff] to resolve this
 ticket?

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/594#comment:20
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #588: Integrate duplicate relations to ticket workflow

2013-08-08 Thread Apache Bloodhound
#588: Integrate duplicate relations to ticket workflow
--+---
  Reporter:  astaric  |  Owner:  astaric
  Type:  enhancement  | Status:  accepted
  Priority:  major|  Milestone:  Release 7
 Component:  relations|Version:
Resolution:   |   Keywords:
--+---

Comment (by rjollos):

 Should this ticket be closed for [milestone:Release 7]? It appears the
 main goals have been accomplished, but I just wanted to check to be sure.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/588#comment:12
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #602: Allow product to be selected from the new ticket form

2013-08-08 Thread Apache Bloodhound
#602: Allow product to be selected from the new ticket form
---+---
  Reporter:  ogaerick  |  Owner:  nobody
  Type:  enhancement   | Status:  new
  Priority:  critical  |  Milestone:  Release 8
 Component:  multiproduct  |Version:  0.6.0
Resolution:|   Keywords:
---+---
Changes (by rjollos):

 * milestone:   = Release 8


-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/602#comment:9
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1511771 - in /bloodhound/trunk: bloodhound_dashboard/bhdashboard/widgets/ bloodhound_multiproduct/ bloodhound_multiproduct/multiproduct/ bloodhound_multiproduct/multiproduct/ticket/ blood

2013-08-08 Thread matevz
Author: matevz
Date: Thu Aug  8 13:19:01 2013
New Revision: 1511771

URL: http://svn.apache.org/r1511771
Log:
#596 - pagination on /dashboard confused

Added:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/batch.py
Modified:
bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py
bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/query.py
bloodhound/trunk/bloodhound_multiproduct/setup.py
bloodhound/trunk/bloodhound_multiproduct/tests/product-query-link-tests.txt
bloodhound/trunk/bloodhound_multiproduct/tests/wikisyntax.py
bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
bloodhound/trunk/trac/trac/ticket/tests/query.py

Modified: bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py?rev=1511771r1=1511770r2=1511771view=diff
==
--- bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py 
(original)
+++ bloodhound/trunk/bloodhound_dashboard/bhdashboard/widgets/query.py Thu Aug  
8 13:19:01 2013
@@ -42,7 +42,6 @@ from bhdashboard.util import WidgetBase,
   trac_tags
 
 from multiproduct.env import ProductEnvironment
-from multiproduct.ticket.query import ProductQueryModule
 
 class TicketQueryWidget(WidgetBase):
 Display tickets matching a TracQuery using a grid
@@ -94,12 +93,11 @@ class TicketQueryWidget(WidgetBase):
 more_link_href = req.href('query', args)
 args.update({'page' : page, 'max': maxrows})
 
-qrymdl = self.env[QueryModule
-if isinstance(self.env, ProductEnvironment)
-else ProductQueryModule]
+qrymdl = self.env[QueryModule]
 if qrymdl is None :
 raise TracError('Query module not available (disabled?)')
-data = qrymdl.process_request(fakereq)[1]
+
+data = qrymdl.process_request(fakereq, self.env)[1]
 except TracError, exc:
 if data is not None:
 exc.title = data.get('title', 'TracQuery')

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py?rev=1511771r1=1511770r2=1511771view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/env.py Thu Aug  8 
13:19:01 2013
@@ -892,6 +892,10 @@ class ProductEnvironment(Component, Comp
 # Multi-product API extensions
 
 @classmethod
+def lookup_global_env(cls, env):
+return env.parent if isinstance(env, ProductEnvironment) else env
+
+@classmethod
 def lookup_env(cls, env, prefix=None, name=None):
 Instantiate environment according to product prefix or name
 

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py?rev=1511771r1=1511770r2=1511771view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py Thu Aug  8 
13:19:01 2013
@@ -20,6 +20,8 @@
 import multiproduct.env
 import multiproduct.dbcursor
 import multiproduct.versioncontrol
+import multiproduct.ticket.query
+import multiproduct.ticket.batch
 
 import re
 
@@ -31,7 +33,7 @@ from trac.web.main import RequestWithSes
 
 PRODUCT_RE = re.compile(r'^/products(?:/(?Ppid[^/]*)(?Ppathinfo.*))?')
 REDIRECT_DEFAULT_RE = \
-re.compile(r'^/(?Psectionmilestone|roadmap|query|report|newticket|'
+re.compile(r'^/(?Psectionmilestone|roadmap|report|newticket|'
r'ticket|qct|timeline|diff|batchmodify|search|'
r'(raw-|zip-)?attachment/(ticket|milestone))(?Ppathinfo.*)')
 

Added: bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/batch.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/batch.py?rev=1511771view=auto
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/batch.py 
(added)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/ticket/batch.py Thu 
Aug  8 13:19:01 2013
@@ -0,0 +1,40 @@
+from trac.ticket.batch import BatchModifyModule
+from trac.util.translation import _
+from trac.web.chrome import add_script_data
+from multiproduct.env import ProductEnvironment
+
+
+class ProductBatchModifyModule(BatchModifyModule):
+def 

Re: [Apache Bloodhound] #596: pagination on /dashboard confused

2013-08-08 Thread Apache Bloodhound
#596: pagination on /dashboard confused
+
  Reporter:  tim|  Owner:  olemis
  Type:  defect | Status:  review
  Priority:  major  |  Milestone:
 Component:  dashboard  |Version:  0.6.0
Resolution: |   Keywords:
+
Changes (by matevzb):

 * status:  assigned = review
 * owner:  matevzb = olemis


Comment:

 Fixed in r1511771. Still not perfect, but global and scoped queries now
 return correct results. Product queries now return an extra 'product'
 column in all scopes, so trac tests were adjusted as well. This will
 likely be reverted for 1.0, once we fix the 'default product' issues.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/596#comment:9
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #594: TracError: KeyError: 'SCRIPT_NAME'

2013-08-08 Thread Apache Bloodhound
#594: TracError: KeyError: 'SCRIPT_NAME'
---+-
  Reporter:  tim   |  Owner:
  Type:  defect| Status:  review
  Priority:  critical  |  Milestone:  Release 7
 Component:  multiproduct  |Version:  0.6.0
Resolution:|   Keywords:  wsgi, hooks
---+-

Comment (by olemis):

 Replying to [comment:20 rjollos]:
  Since the patches in #592 have been applied, will we still need
 [attachment: t594_r1503620_hooks_safe_script_name.diff] to resolve this
 ticket?

 yes

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/594#comment:21
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


[Apache Bloodhound] New user registration: ChrisHarris

2013-08-08 Thread Apache Bloodhound
New user registration for user ChrisHarris

--
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker



[Apache Bloodhound] #626: Installation displays as Trac instead of Bloodhound

2013-08-08 Thread Apache Bloodhound
#626: Installation displays as Trac instead of Bloodhound
--+-
  Reporter:  ChrisHarris  |Owner:
  Type:  defect   |   Status:  new
  Priority:  major|  Version:  0.6.0
Resolution:   |
--+-
 I'm running 0.6.0 on Windows 7 Professional with PostgreSQL 9.2 back end
 and Apache web server as a front end.

 Yesterday, I noticed that you had released version 0.6.0.  One of the
 download links (the one that I used) directs you to a download of 0.5.3,
 which I successfully installed using the same platform, back end, and
 front end.

 So, today I tried installing 0.6.0.  I followed the exact steps as I had
 for 0.5.3, however, instead of displaying the Apache Bloodhound skin, I
 see the Trac skin.  In other words, it looks as though I installed Trac,
 not Apache Bloodhound.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/626
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #627: pip install -r requirements.txt step fails

2013-08-08 Thread Apache Bloodhound
#627: pip install -r requirements.txt step fails
--+
  Reporter:  ChrisHarris  |  Owner:  nobody
  Type:  defect   | Status:  new
  Priority:  major|  Milestone:
 Component:  installer|Version:  0.6.0
Resolution:   |   Keywords:
--+
Changes (by olemis):

 * owner:   = nobody
 * component:   = installer


-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/627#comment:1
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #627: pip install -r requirements.txt step fails

2013-08-08 Thread Apache Bloodhound
#627: pip install -r requirements.txt step fails
--+
  Reporter:  ChrisHarris  |  Owner:  nobody
  Type:  defect   | Status:  new
  Priority:  major|  Milestone:
 Component:  installer|Version:  0.6.0
Resolution:   |   Keywords:
--+

Comment (by rjollos):

 Replying to [ticket:627 ChrisHarris]:
  With bloodhound virtual environment enabled, pip install -r
 requirements.txt consistently fails during installation.

 What error message do you see when it fails?

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/627#comment:2
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #626: Installation displays as Trac instead of Bloodhound

2013-08-08 Thread Apache Bloodhound
#626: Installation displays as Trac instead of Bloodhound
--+
  Reporter:  ChrisHarris  |  Owner:  nobody
  Type:  defect   | Status:  closed
  Priority:  major|  Milestone:
 Component:  dashboard|Version:  0.6.0
Resolution:  invalid  |   Keywords:
--+

Comment (by rjollos):

 If you encounter this error again, we'll need to see the logs (see
 TracLogging for information on how to enable logging).

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/626#comment:3
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1512107 - in /bloodhound/branches/bep_0007_embeddable_objects: bloodhound_embedding_plugin/ bloodhound_embedding_plugin/bhembedding/ bloodhound_embedding_plugin/bhembedding/htdocs/ bloodh

2013-08-08 Thread ahorincar
Author: ahorincar
Date: Fri Aug  9 00:02:55 2013
New Revision: 1512107

URL: http://svn.apache.org/r1512107
Log:
Added bootstrap modal to bh_ticket and modified the templates in bhembedding

Added:

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/embedding.css
Modified:

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/api.py

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/templates/bh_emb_milestone.html

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/templates/bh_emb_product.html

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/templates/bh_emb_ticket.html

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/setup.py

bloodhound/branches/bep_0007_embeddable_objects/bloodhound_theme/bhtheme/templates/bh_ticket.html

Modified: 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/api.py
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/api.py?rev=1512107r1=1512106r2=1512107view=diff
==
--- 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/api.py
 (original)
+++ 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/api.py
 Fri Aug  9 00:02:55 2013
@@ -1,5 +1,6 @@
 import re
 import pkg_resources
+from datetime import datetime, date, time
 
 from trac.core import *
 from trac.web.chrome import ITemplateProvider
@@ -61,22 +62,22 @@ class EmbeddingSystem(Component):
 # IRequestHandler methods
 
 def match_request(self, req):
-if re.match(r'/api/ticket/([0-9]+)$', req.path_info):
-match = re.match(r'/api/(ticket)/([0-9]+)$', req.path_info)
+if re.match(r'/embed/ticket/([0-9]+)$', req.path_info):
+match = re.match(r'/embed/(ticket)/([0-9]+)$', req.path_info)
 req.args['name'] = match.group(1)
 req.args['id'] = match.group(2)
 return True
-elif re.match(r'/api/milestone/(.+)$', req.path_info):
-match = re.match(r'/api/(milestone)/(.+)$', req.path_info)
+elif re.match(r'/embed/milestone/(.+)$', req.path_info):
+match = re.match(r'/embed/(milestone)/(.+)$', req.path_info)
 req.args['name'] = match.group(1)
 req.args['id'] = match.group(2)
 return True
-elif re.match(r'/api/products/(.+)$', req.path_info):
-match = re.match(r'/api/(products)/(.+)$', req.path_info)
+elif re.match(r'/embed/products/(.+)$', req.path_info):
+match = re.match(r'/embed/(products)/(.+)$', req.path_info)
 req.args['name'] = match.group(1)
 req.args['id'] = match.group(2)
 return True
-elif req.path_info == '/api/query':
+elif req.path_info == '/embed/query':
 req.args['name'] = 'query'
 return True
 
@@ -95,7 +96,11 @@ class EmbeddingSystem(Component):
 if log[2] == 'comment' and log[4]:
 comm_num += 1
 
+# print LAST LOG
+# print last_log
 ticket = Ticket(self.env, id)
+changetime = ticket['changetime']
+c_time = changetime.strftime(%H:%M:%S, %Y-%m-%d )
 
 data = {'ticket': ticket,
 'comm_num': comm_num,
@@ -166,4 +171,5 @@ class EmbeddingSystem(Component):
 return [resource_filename('bhembedding', 'templates')]
 
 def get_htdocs_dirs(self):
-return []
+resource_filename = pkg_resources.resource_filename
+return [('embedding', resource_filename('bhembedding', 'htdocs'))]

Added: 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/embedding.css
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/embedding.css?rev=1512107view=auto
==
--- 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/embedding.css
 (added)
+++ 
bloodhound/branches/bep_0007_embeddable_objects/bloodhound_embedding_plugin/bhembedding/htdocs/embedding.css
 Fri Aug  9 00:02:55 2013
@@ -0,0 +1,14 @@
+.properties {
+  color: rgb(120, 120, 120);
+  width: 35%;
+}
+
+.table th, .table td {
+ border-top: none;
+ }
+
+.table th {
+  width: 250px;
+  padding-left: 0px;
+}
+

Modified: 

Re: [Apache Bloodhound] #510: Update templates for changes in AccountManager 0.5

2013-08-08 Thread Apache Bloodhound
#510: Update templates for changes in AccountManager 0.5
--+--
  Reporter:  rjollos  |  Owner:  rjollos
  Type:  enhancement  | Status:  new
  Priority:  major|  Milestone:
 Component:  plugins  |Version:
Resolution:   |   Keywords:  AccountManager plugins bootstrap
--+--
Changes (by rjollos):

 * keywords:  AccountManagerPugin plugins bootstrap = AccountManager
 plugins bootstrap


-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/510#comment:2
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


[Apache Bloodhound] #628: Allow subscribing to mailing lists from the registration page

2013-08-08 Thread Apache Bloodhound
#628: Allow subscribing to mailing lists from the registration page
+-
 Reporter:  rjollos |  Owner:  rjollos
 Type:  enhancement | Status:  new
 Priority:  major   |  Milestone:
Component:  siteadmin   |Version:
 Keywords:  AccountManager  |
+-
 It was discussed on the [http://markmail.org/thread/tz5pj4fthxn4dnza
 mailing list] that it would be useful to allow users to subscribe to the
 mailing lists at the time they register for an account on i.a.o. This will
 be implemented as a plugin for th:AccountManagerPlugin (extending
 `IAccountRegistrationInspector`) that provides checkboxes on the
 registration page for subscribing to user@ and dev@.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/628
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #621: Ticket version indicator missing

2013-08-08 Thread Apache Bloodhound
#621: Ticket version indicator missing
+
  Reporter:  olemis |  Owner:  rjollos
  Type:  defect | Status:  closed
  Priority:  trivial|  Milestone:  Release 7
 Component:  ui design  |Version:  0.6.0
Resolution:  fixed  |   Keywords:  ticket version label indicator
+

Comment (by rjollos):

 Make rendered ticket version less prominent. Refs #621.

 This is a follow-on to [1511585,1511586]. Suggested by Olemis.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/621#comment:8
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1512120 - /bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html

2013-08-08 Thread rjollos
Author: rjollos
Date: Fri Aug  9 01:09:04 2013
New Revision: 1512120

URL: http://svn.apache.org/r1512120
Log:
Make rendered ticket version less prominent. Refs #621.

This is a follow-on to [1511585,1511586]. Suggested by Olemis.

Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html?rev=1512120r1=1512119r2=1512120view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html 
(original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket.html Fri Aug  
9 01:09:04 2013
@@ -330,16 +330,16 @@
 py:when test=t.exists
   a href=${href.ticket(t.id)}
   i18n:msg=idTicket #${t.id}/a
-  py:if test=version is not None
+  small py:if=version is not None
 py:choose test=
   py:when test=version == 0
-i18n:msgat a href=#comment:descriptionInitial 
Version/a/i18n:msg
+i18n:msgat a href=#comment:description 
class=mutedInitial Version/a/i18n:msg
   /py:when
   py:otherwise
-i18n:msg params=versionat a 
href=#comment:$versionVersion $version/a/i18n:msg
+i18n:msg params=versionat a href=#comment:$version 
class=mutedVersion $version/a/i18n:msg
   /py:otherwise
 /py:choose
-  /py:if mdash;
+  /small mdash;
 /py:when
 py:otherwise
   New Ticket smallspan py:if=preview_mode and t.type 
class=status(${t.type})/span/small




Re: [Apache Bloodhound] #594: TracError: KeyError: 'SCRIPT_NAME'

2013-08-08 Thread Apache Bloodhound
#594: TracError: KeyError: 'SCRIPT_NAME'
---+-
  Reporter:  tim   |  Owner:  rjollos
  Type:  defect| Status:  review
  Priority:  critical  |  Milestone:  Release 7
 Component:  multiproduct  |Version:  0.6.0
Resolution:|   Keywords:  wsgi, hooks
---+-
Changes (by rjollos):

 * owner:   = rjollos


Comment:

 I'll apply to patch and close this ticket for [milestone:Release 7]. If
 we have any related issues with the next release, please create a new
 ticket.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/594#comment:22
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1512122 - /bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py

2013-08-08 Thread rjollos
Author: rjollos
Date: Fri Aug  9 01:25:55 2013
New Revision: 1512122

URL: http://svn.apache.org/r1512122
Log:
Ensure `SCRIPT_NAME` var is set. Refs #594.

Patch by Olemis.

Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py?rev=1512122r1=1512121r2=1512122view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py Fri Aug  9 
01:25:55 2013
@@ -40,6 +40,8 @@ REDIRECT_DEFAULT_RE = \
 
 class MultiProductEnvironmentFactory(EnvironmentFactoryBase):
 def open_environment(self, environ, env_path, global_env, use_cache=False):
+environ.setdefault('SCRIPT_NAME', '')  # bh:ticket:594
+
 env = pid = None
 path_info = environ.get('PATH_INFO')
 if not path_info:




Re: [Apache Bloodhound] #594: TracError: KeyError: 'SCRIPT_NAME'

2013-08-08 Thread Apache Bloodhound
#594: TracError: KeyError: 'SCRIPT_NAME'
---+-
  Reporter:  tim   |  Owner:  rjollos
  Type:  defect| Status:  closed
  Priority:  critical  |  Milestone:  Release 7
 Component:  multiproduct  |Version:  0.6.0
Resolution:  fixed |   Keywords:  wsgi, hooks
---+-
Changes (by rjollos):

 * status:  review = closed
 * resolution:   = fixed


Comment:

 (In [1512122])

 Ensure `SCRIPT_NAME` var is set. Refs #594.

 Patch by Olemis.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/594#comment:23
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #582: Relations widget component is displayed separate from Relations plugin on Plugin admin panel

2013-08-08 Thread Apache Bloodhound
#582: Relations widget component is displayed separate from Relations plugin on
Plugin admin panel
+---
  Reporter:  rjollos|  Owner:  rjollos
  Type:  defect | Status:  closed
  Priority:  minor  |  Milestone:  Release 7
 Component:  relations  |Version:  0.5.3
Resolution:  fixed  |   Keywords:
+---
Changes (by rjollos):

 * owner:  nobody = rjollos


-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/582#comment:3
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #217: Make Bloodhound's layout responsive

2013-08-08 Thread Apache Bloodhound
#217: Make Bloodhound's layout responsive
-+-
  Reporter:  jdreimann   |  Owner:  matevzb
  Type:  | Status:  closed
  enhancement|  Milestone:  Release 5
  Priority:  major   |Version:
 Component:  ui design   |   Keywords:  ui, responsive, bootstrap, mobile,
Resolution:  fixed   |  tablet, desktop
-+-

Comment (by rjollos):

 While working on #271, I noticed that in [1442158] the `#content` id was
 moved from the first nested div on the rendered page to the div that
 encloses the ticket properties. The convention in Trac is to have
 `#content` on the outermost div in the template. Examples:
  *
 
[http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/ticket/templates/ticket.html?marks=121#L116
 ticket.html]
  *
 
[http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/wiki/templates/wiki_view.html?marks=30#L29
 wiki_view.html]
  *
 
[http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/search/templates/search.html?marks=24#L23
 search.html]
  *
 
[http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/ticket/templates/roadmap.html?marks=14#L13
 roadmap.html]

 [[Image(TicketPage.png)]]

 [[Image(MilestonePage.png)]]

 In the two images, the div with the `#content` id is highlighted.

 Keeping `#content` on the outermost div of each template makes some CSS
 more convenient. It seems to be okay to move it to the enclosing div on
 the ticket page, but I just wanted to check to be sure before making the
 change.

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/217#comment:19
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1512127 - /bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css

2013-08-08 Thread rjollos
Author: rjollos
Date: Fri Aug  9 02:29:12 2013
New Revision: 1512127

URL: http://svn.apache.org/r1512127
Log:
Monospace font for textarea inputs. Refs #271.

Patch by James (mudri).

Modified:
bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1512127r1=1512126r2=1512127view=diff
==
--- bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Fri Aug  9 
02:29:12 2013
@@ -388,6 +388,10 @@ h1, h2, h3, h4 {
  margin: 0.5em;
 }
 
+#content textarea, .popover-content textarea {
+ font-family: monospace;
+}
+
 /* copied from bootstrap for appropriate focus/unfocused state for 
contenteditable*/
 [contenteditable=true] {
  border-radius: 4px 4px 4px 4px;




Re: [Apache Bloodhound] #271: Monospace font family for text area inputs

2013-08-08 Thread Apache Bloodhound
#271: Monospace font family for text area inputs
--+-
  Reporter:  olemis   |  Owner:  mudri
  Type:  enhancement  | Status:  assigned
  Priority:  trivial  |  Milestone:  Release 7
 Component:  ui design|Version:
Resolution:   |   Keywords:  css starter
--+-
Changes (by rjollos):

 * milestone:   = Release 7


Comment:

 Your suggested change looks good. Waiting for feedback on
 comment:19:ticket:217 before work on this ticket can be concluded.

 
 (In [1512127])

 Monospace font for textarea inputs. Refs #271.

 Patch by James (mudri).

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/271#comment:5
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


Re: [Apache Bloodhound] #621: Ticket version indicator missing

2013-08-08 Thread Apache Bloodhound
#621: Ticket version indicator missing
+
  Reporter:  olemis |  Owner:  rjollos
  Type:  defect | Status:  closed
  Priority:  trivial|  Milestone:  Release 7
 Component:  ui design  |Version:  0.6.0
Resolution:  fixed  |   Keywords:  ticket version label indicator
+

Comment (by olemis):

 Replying to [comment:9 rjollos]:
 [...]
 
  Bloodhound does not disable or hide the //Modify ticket// button when
 viewing a version of a ticket, but the button is non-functional. I propose
 that we just hide the button when viewing a version of a ticket.

 +
 and should be asserted in a functional test case ;)

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/621#comment:10
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker