# HG changeset patch # User Lennard de Rijk # Date 1256521558 25200 # Node ID 6907a33ca0a23ae7a03942440709ce785bc1bb18 # Parent af30b338d191f136769e7057a9bc6cdd17500af6 Removed now unused method from Role Logic. diff -r af30b338d191 -r 6907a33ca0a2 app/soc/logic/models/role.py --- 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. """