src/jukedj/models.py
def add_default_sequences(project):
    """Add or create the default sequences for the given project

    :param project: the project that needs default sequences
    :type project: :class:`muke.models.Project`
    :returns: None
    :rtype: None
    :raises: None
    """
    # create sequences for project
    seqs = [(GLOBAL_NAME, 'global sequence for project %s' % project.name),
            (RNDSEQ_NAME, 'research and development sequence for project %s' % project.name)]
    for name, desc in seqs:
        seq, created = Sequence.objects.get_or_create(name=name, project=project, defaults={'description': desc})
def add_default_sequences(project):
    # create sequences for project
    seqs = [(GLOBAL_NAME, 'global sequence for project %s' % project.name),
            (RNDSEQ_NAME, 'research and development sequence for project %s' % project.name)]
    for name, desc in seqs:
        seq, created = Sequence.objects.get_or_create(name=name, project=project, defaults={'description': desc})
def add_default_sequences ( project ) : # create sequences for project seqs = [ ( GLOBAL_NAME , 'global sequence for project %s' % project . name ) , ( RNDSEQ_NAME , 'research and development sequence for project %s' % project . name ) ] for name , desc in seqs : seq , created = Sequence . objects . get_or_create ( name = name , project = project , defaults = { 'description' : desc } )
Add or create the default sequences for the given project

    :param project: the project that needs default sequences
    :type project: :class:`muke.models.Project`
    :returns: None
    :rtype: None
    :raises: None
Add or create the default sequences for the given project