Remove db requirement from constructor and add get_plural_relationship_string to relationship class.

svn: r8831
This commit is contained in:
Brian Matherly
2007-08-18 13:31:50 +00:00
parent 32f3f2c129
commit 7a72009239
20 changed files with 309 additions and 149 deletions

View File

@@ -467,9 +467,9 @@ def register_relcalc(relclass, languages):
except:
pass
def relationship_class(db):
def relationship_class():
global _relcalc_class
return _relcalc_class(db)
return _relcalc_class()
#-------------------------------------------------------------------------
#