equal
deleted
inserted
replaced
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
21 '"Sverre Rabbelier" <sverre@rabbelier.nl>', |
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
23 ] |
23 ] |
24 |
24 |
25 |
25 |
26 from soc.logic.helper import request |
|
27 from soc.logic.models import base |
26 from soc.logic.models import base |
28 |
27 |
29 import soc.models.role |
28 import soc.models.role |
30 |
29 |
31 |
30 |
38 """Defines the name, key_name and model for this entity. |
37 """Defines the name, key_name and model for this entity. |
39 """ |
38 """ |
40 |
39 |
41 super(Logic, self).__init__(model, base_model=base_model, |
40 super(Logic, self).__init__(model, base_model=base_model, |
42 scope_logic=scope_logic) |
41 scope_logic=scope_logic) |
43 |
|
44 def _onCreate(self, entity): |
|
45 """Will remove any outstanding requests for the new role entity. |
|
46 """ |
|
47 |
|
48 request.removeRequestForRole(entity) |
|
49 |
42 |
50 |
43 |
51 logic = Logic() |
44 logic = Logic() |