Re: [Apache Bloodhound] #201: Convert account manager plugin templates to Bootstrap

2013-04-30 Thread Apache Bloodhound
#201: Convert account manager plugin templates to Bootstrap
-+-
  Reporter:  olemis  |  Owner:  rjollos
  Type:  task| Status:  review
  Priority:  major   |  Milestone:  Release 6
 Component:  ui design   |Version:
Resolution:  |   Keywords:  AccountManagerPugin plugins
 |  bootstrap
-+-

Comment (by rjollos):

 (In [1477486])

 Refs #201: Added template for !AccountManager configuration admin panel
 (from Olemis).

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


Re: [Apache Bloodhound] #355: Run Trac test suite against product environments - after #115 #288

2013-04-30 Thread Apache Bloodhound
#355: Run Trac test suite against product environments - after #115 #288
---+
  Reporter:  olemis|  Owner:  jure
  Type:  task  | Status:  closed
  Priority:  major |  Milestone:  Release 5
 Component:  multiproduct  |Version:
Resolution:  fixed |   Keywords:  environment testing QA
---+
Changes (by jure):

 * status:  assigned = closed
 * resolution:   = fixed


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


svn commit: r1477664 - /bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py

2013-04-30 Thread andrej
Author: andrej
Date: Tue Apr 30 14:39:00 2013
New Revision: 1477664

URL: http://svn.apache.org/r1477664
Log:
adding detailed column specification functionality to bhdashboard.Model - 
towards bhrelations

Modified:
bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py

Modified: bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py?rev=1477664r1=1477663r2=1477664view=diff
==
--- bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py (original)
+++ bloodhound/trunk/bloodhound_dashboard/bhdashboard/model.py Tue Apr 30 
14:39:00 2013
@@ -46,9 +46,20 @@ class ModelBase(object):
 _meta = {'table_name':'mytable',
  'object_name':'WhatIWillCallMyselfInMessages',
  'key_fields':['id','id2'],
- 'non_key_fields':['thing','anotherthing'],
+ 'non_key_fields':[
+'thing',
+{
+name:field_name_x,
+type='int64',
+size=None,
+key_size=None,
+auto_increment=False
+}],
  'auto_inc_fields': ['id',],
  }
+key_fields and non_key_fields parameters may contain field name only (for
+text columns) or dict with detailed column specification. In case of
+detailed column specification 'name' parameter is obligatory).
 
 
 def __init__(self, env, keys=None):
@@ -61,13 +72,18 @@ class ModelBase(object):
 self._data = {}
 self._exists = False
 self._env = env
-self._all_fields = self._meta['key_fields'] + \
-   self._meta['non_key_fields']
+self._key_fields = self._get_field_names(self._meta['key_fields'])
+self._non_key_fields = self._get_field_names(
+self._meta['non_key_fields'])
+self._all_fields = self._key_fields + self._non_key_fields
+self._unique_fields = self._meta['unique_fields']
+self._auto_inc_fields = self._get_auto_inc_field_names()
+
 if keys is not None:
 self._get_row(keys)
 else:
 self._update_from_row(None)
-
+
 def update_field_dict(self, field_dict):
 Updates the object's copy of the db fields (no db transaction)
 self._data.update(field_dict)
@@ -93,7 +109,7 @@ class ModelBase(object):
 
 def _update_from_row(self, row = None):
 uses a provided database row to update the model
-fields = self._meta['key_fields']+self._meta['non_key_fields']
+fields = self._all_fields
 self._exists = row is not None
 if row is None:
 row = [None]*len(fields)
@@ -104,8 +120,8 @@ class ModelBase(object):
 def _get_row(self, keys):
 queries the database and stores the result in the model
 row = None
-where, values = fields_to_kv_str(self._meta['key_fields'], keys)
-fields = 
','.join(self._meta['key_fields']+self._meta['non_key_fields'])
+where, values = fields_to_kv_str(self._key_fields, keys)
+fields = ','.join(self._all_fields)
 sdata = {'fields':fields,
  'where':where}
 sdata.update(self._meta)
@@ -125,7 +141,7 @@ class ModelBase(object):
 Deletes the matching record from the database
 if not self._exists:
 raise TracError('%(object_name)s does not exist' % self._meta)
-where, values = fields_to_kv_str(self._meta['key_fields'], self._data)
+where, values = fields_to_kv_str(self._key_fields, self._data)
 sdata = {'where': where}
 sdata.update(self._meta)
 sql = DELETE FROM %(table_name)s
@@ -144,33 +160,29 @@ class ModelBase(object):
 sdata = None
 if self._exists or len(self.select(self._env, where =
 dict([(k,self._data[k])
-  for k in self._meta['key_fields']]))):
+  for k in self._key_fields]))):
 sdata = {'keys':','.join([%s='%s' % (k, self._data[k])
- for k in self._meta['key_fields']])}
-elif self._meta['unique_fields'] and len(self.select(self._env, where =
+ for k in self._key_fields])}
+elif self._unique_fields and len(self.select(self._env, where =
 dict([(k,self._data[k])
-  for k in self._meta['unique_fields']]))):
+  for k in self._unique_fields]))):
 sdata = {'keys':','.join([%s='%s' % (k, self._data[k])
- for k in self._meta['unique_fields']])}
+ for k in self._unique_fields])}
 if sdata:
 

svn commit: r1477673 - in /bloodhound/trunk/bloodhound_relations/bhrelations: api.py db_default.py

2013-04-30 Thread andrej
Author: andrej
Date: Tue Apr 30 14:50:40 2013
New Revision: 1477673

URL: http://svn.apache.org/r1477673
Log:
fixing forgotten increment of bhrelations db_version - towards BPE-0006

Modified:
bloodhound/trunk/bloodhound_relations/bhrelations/api.py
bloodhound/trunk/bloodhound_relations/bhrelations/db_default.py

Modified: bloodhound/trunk/bloodhound_relations/bhrelations/api.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/api.py?rev=1477673r1=1477672r2=1477673view=diff
==
--- bloodhound/trunk/bloodhound_relations/bhrelations/api.py (original)
+++ bloodhound/trunk/bloodhound_relations/bhrelations/api.py Tue Apr 30 
14:50:40 2013
@@ -64,7 +64,7 @@ class EnvironmentSetup(Component):
 with self.env.db_direct_transaction as db:
 if db_installed_version  1:
 self._initialize_db(db)
-self._update_db_version(db, 1)
+self._update_db_version(db, db_default.DB_VERSION)
 #add upgrade logic later if needed
 
 def _get_version(self):

Modified: bloodhound/trunk/bloodhound_relations/bhrelations/db_default.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_relations/bhrelations/db_default.py?rev=1477673r1=1477672r2=1477673view=diff
==
--- bloodhound/trunk/bloodhound_relations/bhrelations/db_default.py (original)
+++ bloodhound/trunk/bloodhound_relations/bhrelations/db_default.py Tue Apr 30 
14:50:40 2013
@@ -20,7 +20,7 @@
 from bhrelations.model import Relation
 
 DB_SYSTEM_KEY = 'bhrelations'
-DB_VERSION = 1
+DB_VERSION = 2
 
 SCHEMA = [mcls._get_schema() for mcls in (Relation, )]
 




[Apache Bloodhound] BloodhoundContactInfo modified

2013-04-30 Thread Apache Bloodhound
Page BloodhoundContactInfo was changed by jdreimann
Diff URL: 
https://issues.apache.org/bloodhound/wiki/BloodhoundContactInfo?action=diffversion=2
Revision 2
Comment: Made email addresses more clear.
Changes:
---8--8--8--8--8--8--8--8
Index: BloodhoundContactInfo
=
--- BloodhoundContactInfo (version: 1)
+++ BloodhoundContactInfo (version: 2)
@@ -4,7 +4,7 @@
 
 ||= Channel =||= Details =||
 |---
-||[mailto:u...@bloodhound.apache.org user@]||\
+||[mailto:u...@bloodhound.apache.org u...@bloodhound.apache.org]||\
 {{{#!td
   {{{#!th align=left
   Purpose:
@@ -35,7 +35,7 @@
   }}}
 }}}
 |---
-||[mailto:d...@bloodhound.apache.org dev@]||\
+||[mailto:d...@bloodhound.apache.org d...@bloodhound.apache.org]||\
 {{{#!td
   {{{#!th align=left
   Purpose:
@@ -66,7 +66,7 @@
   }}}
 }}}
 |---
-||[mailto:commits@bloodhound.apache.org commits@]||\
+||[mailto:commits@bloodhound.apache.org commits@bloodhound.apache.org]||\
 {{{#!td
   {{{#!th align=left
   Purpose:
@@ -97,7 +97,7 @@
   }}}
 }}}
 |---
-||[mailto:priv...@bloodhound.apache.org private@]||\
+||[mailto:priv...@bloodhound.apache.org priv...@bloodhound.apache.org]||\
 {{{#!td
   {{{#!th align=left
   Purpose:
---8--8--8--8--8--8--8--8

--
Page URL: https://issues.apache.org/bloodhound/wiki/BloodhoundContactInfo
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker

This is an automated message. Someone added your email address to be
notified of changes on 'BloodhoundContactInfo' page.
If it was not you, please report to .


[Apache Bloodhound] #511: Fix MySQL installation

2013-04-30 Thread Apache Bloodhound
#511: Fix MySQL installation
-+---
  Reporter:  gjm |Owner:
  Type:  defect  |   Status:  new
  Priority:  major   |  Version:
Resolution:  |
-+---
 Get MySQL support back into line - mostly quoting issues

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


Re: [Apache Bloodhound] #511: Fix MySQL installation

2013-04-30 Thread Apache Bloodhound
#511: Fix MySQL installation
---+---
  Reporter:  gjm   |  Owner:  gjm
  Type:  defect| Status:  accepted
  Priority:  major |  Milestone:  Release 6
 Component:  multiproduct  |Version:
Resolution:|   Keywords:
---+---
Changes (by gjm):

 * owner:   = gjm
 * status:  new = accepted
 * component:   = multiproduct
 * milestone:   = Release 6


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


Re: [Apache Bloodhound] #511: Fix MySQL installation

2013-04-30 Thread Apache Bloodhound
#511: Fix MySQL installation
---+---
  Reporter:  gjm   |  Owner:  gjm
  Type:  defect| Status:  accepted
  Priority:  major |  Milestone:  Release 6
 Component:  multiproduct  |Version:
Resolution:|   Keywords:
---+---

Comment (by gjm):

 r1477751 makes sure that the quoting rules of the database backend for
 column names is corrected in the {{{ModelBase}}} class

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


Re: [Apache Bloodhound] #512: TypeError when commenting on tickets

2013-04-30 Thread Apache Bloodhound
#512: TypeError when commenting on tickets
---+---
  Reporter:  gjm   |  Owner:  gjm
  Type:  defect| Status:  accepted
  Priority:  critical  |  Milestone:  Release 6
 Component:  multiproduct  |Version:
Resolution:|   Keywords:
---+---
Changes (by gjm):

 * status:  new = accepted
 * priority:  major = critical
 * component:   = multiproduct
 * owner:   = gjm
 * milestone:   = Release 6


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


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

2013-04-30 Thread gjm
Author: gjm
Date: Tue Apr 30 18:45:35 2013
New Revision: 143

URL: http://svn.apache.org/r143
Log:
storing super on the ProductizedHref as a workaround for TypeError on 
attempting to call a super() method - #512

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=143r1=142r2=143view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/hooks.py Tue Apr 30 
18:45:35 2013
@@ -84,7 +84,8 @@ class ProductizedHref(Href):
'img/',
]
 def __init__(self, global_href, base):
-super(ProductizedHref, self).__init__(base)
+self.super = super(ProductizedHref, self)
+self.super.__init__(base)
 self._global_href = global_href
 
 def __call__(self, *args, **kwargs):
@@ -93,7 +94,7 @@ class ProductizedHref(Href):
(len(args) == 1 and args[0] == 'admin') or \
filter(lambda x: args[0].startswith(x), self.STATIC_PREFIXES):
 return self._global_href(*args, **kwargs)
-return super(ProductizedHref, self).__call__(*args, **kwargs)
+return self.super.__call__(*args, **kwargs)
 
 class ProductRequestWithSession(RequestWithSession):
 def __init__(self, env, environ, start_response):




[Apache Bloodhound] New user registration: bogdan.antohi

2013-04-30 Thread Apache Bloodhound
New user registration for user bogdan.antohi

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