Removed now unused method from Role Logic.
--- a/app/soc/logic/models/role.py Sun Oct 25 18:44:52 2009 -0700
+++ b/app/soc/logic/models/role.py Sun Oct 25 18:45:58 2009 -0700
@@ -71,28 +71,6 @@
self.disallow_last_resign = disallow_last_resign
-
- def getGroupEntityFromScopePath(self, group_logic, scope_path):
- """Returns a group entity by using the given scope_path.
-
- Args:
- group_logic: logic for the group which should be retrieved
- scope_path : the scope path of the entity
- """
- group_key_fields = scope_path.rsplit('/', 1)
-
- if len(group_key_fields) == 1:
- # there is only a link_id
- fields = {'link_id' : group_key_fields[0]}
- else:
- # there is a scope_path and link_id
- fields = {'scope_path' : group_key_fields[0],
- 'link_id' : group_key_fields[1]}
-
- group = group_logic.getForFields(fields, unique=True)
-
- return group
-
def _updateField(self, entity, entity_properties, name):
"""Special logic for role. If status changes to active we flush the sidebar.
"""