Get the head of a directorship

        Arguments:
        val -- the cn of the directorship
337585
def get_directorship_heads(self, val):
        

        __ldap_group_ou__ = "cn=groups,cn=accounts,dc=csh,dc=rit,dc=edu"

        res = self.__con__.search_s(
                __ldap_group_ou__,
                ldap.SCOPE_SUBTREE,
                "(cn=eboard-%s)" % val,
                ['member'])

        ret = []
        for member in res[0][1]['member']:
            try:
                ret.append(member.decode('utf-8'))
            except UnicodeDecodeError:
                ret.append(member)
            except KeyError:
                continue

        return [CSHMember(self,
                dn.split('=')[1].split(',')[0],
                True)
                for dn in ret]
1334192
private Set<Role> getOtherRolesArg(Object[] arguments) {
        if (arguments.length <= NEW_ROLES_INDEX) {
            log.error("Illegal number of args: " + arguments.length);
        }

        Set<Role> roles = new HashSet<Role>();
        Object[] rolesArray = (Object[]) arguments[NEW_ROLES_INDEX];
        if (null != rolesArray && rolesArray.length > 0) {
            for (Object role : rolesArray) {
                roles.add((Role) role);
            }
        }

        return roles;
    }
913326
def contributors(options = {})
      raise ArgumentError, 'You must provide a :cid option' if options[:cid].nil? || options[:cid].empty?
      options.merge!({:method => 'candContrib'})
      self.class.get("/", :query => options)
    end
372796
def head(self, path, query=None, data=None, redirects=True):
        
        return self.request('HEAD', path, query, None, redirects)
1140116
def staff_member(view_func):
    

    @functools.wraps(view_func, assigned=available_attrs(view_func))
    def dec(request, *args, **kwargs):
        if request.user.is_staff:
            return view_func(request, *args, **kwargs)
        raise PermissionDenied(_("You haven't permissions to do this action."))
    return dec
1112112
function(val) {
			if (typeof val !== 'undefined' && this._end !== val) {
				this.parent._updateSource(val, this._positions.end, this._positions.end + this._end.length);
				this._end = val;
			}
			
			return this._end;
		}
1317567
def __get_supervisor(self):
        
        options = supervisorctl.ClientOptions()
        options.realize(args=['-c', self.supervisord_conf_path])
        return supervisorctl.Controller(options).get_supervisor()
134748
def head(self, n):
        
        return DataAccessObject({k: self.dict[k][:n] for k in self.dict})
977076
def on_command_control(self, val_id):
        
        data = "control,controlId=1|" + val_id
        return self._basic_post(url='commandControlPublic', data=data)
209332
def can_into(self, val: str) -> bool:
        """"""
        return val in self.paths or (self.param and self.param_name == val)
493665
def identifier_director(**kwargs):
    """"""
    qualifier = kwargs.get('qualifier', '')
    content = kwargs.get('content', '')
    if qualifier == 'ISBN':
        return CitationISBN(content=content)
    elif qualifier == 'ISSN':
        return CitationISSN(content=content)
    elif qualifier == 'DOI':
        return CitationDOI(content=content)
    elif qualifier == 'REP-NO':
        return CitationTechnicalReportNumber(content=content)
    else:
        return None
213728
public <V extends Val> V returning(V val) {
    if (val instanceof ValFrame)
      _ses.addRefCnt(val.getFrame(), 1);
    return val;
  }
827797
def identifier_director(**kwargs):
    """"""
    ark = kwargs.get('ark', None)
    qualifier = kwargs.get('qualifier', None)
    content = kwargs.get('content', '')

    # See if the ark and domain name were given.
    if ark:
        content = 'http://digital.library.unt.edu/%s' % ark
    elif qualifier:
        content = '%s: %s' % (qualifier, content)
    return ETD_MSIdentifier(content=content)
1313163
def head(path, options = {}, &block)
      ensure_method_maintained_across_redirects options
      perform_request Net::HTTP::Head, path, options, &block
    end
102367
def set_projection(self, val):
        
        knownproj = ["SIN", "ZEA", "TAN", "NCP", "AIT", "ZEA"]  # etc
        assert val.upper() in knownproj
        self._coord["projection"] = val.upper()
434999
def _head(self, client_kwargs):
        
        with _handle_oss_error():
            bucket = self._get_bucket(client_kwargs)

            # Object
            if 'key' in client_kwargs:
                return bucket.head_object(
                    key=client_kwargs['key']).headers

            # Bucket
            return bucket.get_bucket_info().headers
823924
def role(self):
        ''''''
        from ambry.valuetype.core import ROLE

        if not self.valuetype_class:
            return ''

        role = self.valuetype_class.role
        if role == ROLE.UNKNOWN:
            vt_code = self.valuetype_class.vt_code

            if len(vt_code) == 1 or vt_code[1] == '/':
                return vt_code[0]
            else:
                return ''

        return role