ndio/remote/ndingest.py
def project_dict(self, project_name, token_name, public):
        """
        Genarate the project dictionary.
        """
        project_dict = {}
        project_dict['project_name'] = project_name
        if token_name is not None:
            if token_name == '':
                project_dict['token_name'] = project_name
            else:
                project_dict['token_name'] = token_name
        else:
            project_dict['token_name'] = project_name

        if public is not None:
            project_dict['public'] = public
        return project_dict
def project_dict(self, project_name, token_name, public):
        """
        Genarate the project dictionary.
        """
        project_dict = {}
        project_dict['project_name'] = project_name
        if token_name is not None:
            if token_name == '':
                project_dict['token_name'] = project_name
            else:
                project_dict['token_name'] = token_name
        else:
            project_dict['token_name'] = project_name

        if public is not None:
            project_dict['public'] = public
        return project_dict
def project_dict ( self , project_name , token_name , public ) : project_dict = { } project_dict [ 'project_name' ] = project_name if token_name is not None : if token_name == '' : project_dict [ 'token_name' ] = project_name else : project_dict [ 'token_name' ] = token_name else : project_dict [ 'token_name' ] = project_name if public is not None : project_dict [ 'public' ] = public return project_dict
Genarate the project dictionary.
Genarate the project dictionary .