Esempio n. 1
0
def error(request):
    from views_base import base_grid
    context = {"logoScipionNormal": getResourceIcon("logo_scipion_normal"),
               "logoErrorPage":getResourceIcon("error_page"),
               }
    context = base_grid(request, context)
    return render_to_response('error.html', context)
Esempio n. 2
0
def error(request):
    from views_base import base_grid
    context = {
        "logoScipionNormal": getResourceIcon("logo_scipion_normal"),
        "logoErrorPage": getResourceIcon("error_page"),
    }
    context = base_grid(request, context)
    return render_to_response('error.html', context)
Esempio n. 3
0
def webservice_projects(request):
   
    if 'projectName' in request.session: request.session['projectName'] = ""
    if 'projectPath' in request.session: request.session['projectPath'] = ""

    context = {'projects_css': getResourceCss('projects'),
               }
    
    context = base_grid(request, context)
    return render_to_response('webservice_projects.html', context)
Esempio n. 4
0
def webservice_projects(request):

    if 'projectName' in request.session: request.session['projectName'] = ""
    if 'projectPath' in request.session: request.session['projectPath'] = ""

    context = {
        'projects_css': getResourceCss('projects'),
    }

    context = base_grid(request, context)
    return render_to_response('webservice_projects.html', context)
Esempio n. 5
0
def webservice_projects(request):
    if CTX_PROJECT_NAME in request.session:
        request.session[CTX_PROJECT_NAME] = ""
    if CTX_PROJECT_PATH in request.session:
        request.session[CTX_PROJECT_PATH] = ""
    context = {
        'projects_css': getResourceCss('projects'),
    }

    context = base_grid(request, context)
    return render_to_response('webservice_projects.html', context)
Esempio n. 6
0
def projects(request):
    from pyworkflow.utils.utils import prettyDate
    
    manager = Manager()
    projects = manager.listProjects()
    for p in projects:
        p.pTime = prettyDate(p.mTime)

    if 'projectName' in request.session: request.session['projectName'] = ""
    if 'projectPath' in request.session: request.session['projectPath'] = ""

    context = {'projects': projects,
               'projects_css': getResourceCss('projects'),
               'project_utils_js': getResourceJs('project_utils'),
               }
    
    context = base_grid(request, context)
    
    return render_to_response('projects.html', context)
Esempio n. 7
0
def projects(request):
    from pyworkflow.utils.utils import prettyDate

    manager = Manager()
    projects = manager.listProjects()
    for p in projects:
        p.pTime = prettyDate(p.mTime)

    if 'projectName' in request.session: request.session['projectName'] = ""
    if 'projectPath' in request.session: request.session['projectPath'] = ""

    context = {
        'projects': projects,
        'projects_css': getResourceCss('projects'),
        'project_utils_js': getResourceJs('project_utils'),
    }

    context = base_grid(request, context)

    return render_to_response('projects.html', context)
Esempio n. 8
0
def projects(request):
    from pyworkflow.utils.utils import prettyDate

    manager = Manager()
    projectsList = manager.listProjects()
    for p in projectsList:
        p.pTime = prettyDate(p.mTime)

    if CTX_PROJECT_NAME in request.session:
        request.session[CTX_PROJECT_NAME] = ""
    if CTX_PROJECT_PATH in request.session:
        request.session[CTX_PROJECT_PATH] = ""

    context = {
        'projects': projectsList,
        'projects_css': getResourceCss('projects'),
        'project_utils_js': getResourceJs('project_utils'),
        'workflows': json.dumps(getWorkflowsList())
    }

    context = base_grid(request, context)

    return render_to_response('projects.html', context)
Esempio n. 9
0
def workflows(request):

    workflows = getWorkflowsList()

    # Annotate existence of projects (hashed)
    manager = getServiceManager(None)

    for workflow in workflows:

        # Project for the workflow should be the hashed value
        if manager.hasProject(workflow['project']):
            workflow['exists'] = True
        else:
            workflow['exists'] = False

    context = {
        'projects_css': getResourceCss('projects'),
        'project_utils_js': getResourceJs('project_utils'),
        'workflows': workflows
    }

    context = base_grid(request, context)

    return render_to_response('workflows.html', context)