wip: Per-domain policy support

* The domain edition form was converted to a "TabsForm"
* New events added : "ExtraDomainForm" and "FillDomainInstances"
* Creation and modification of policies work

see #260
This commit is contained in:
Antoine Nguyen
2012-06-07 09:31:51 +02:00
parent 069f90a1bd
commit 4f9bc5ea27
10 changed files with 174 additions and 66 deletions
+3
View File
@@ -42,6 +42,9 @@ events = [
"ExtraAccountForm",
"CheckExtraAccountForm",
"FillAccountInstances",
"ExtraDomainForm",
"FillDomainInstances",
"GetExtraRoles",
+1 -5
View File
@@ -28,14 +28,10 @@ class Column:
def __unicode__(self):
try:
label = getattr(self, "label")
except KeyError:
except AttributeError:
label = getattr(self, "name")
return _(label)
def __str__(self):
return self.__unicode__()
class SelectionColumn(Column):
"""Specific column: selection