Package omeroweb :: Package webclient :: Module views
[hide private]
[frames] | no frames]

Module views

source code

A view functions is simply a Python function that takes a Web request and returns a Web response. This response can be the HTML contents of a Web page, or a redirect, or the 404 and 500 error, or an XML document, or an image... or anything.

Functions [hide private]
 
getShareConnection(request, share_id) source code
 
isUserConnected(f) source code
 
sessionHelper(request) source code
 
login(request) source code
 
index(request, **kwargs) source code
 
index_context(request, **kwargs) source code
 
index_last_imports(request, **kwargs) source code
 
index_most_recent(request, **kwargs) source code
 
index_tag_cloud(request, **kwargs) source code
 
change_active_group(request, **kwargs) source code
 
_session_logout(request, server_id) source code
 
logout(request, **kwargs) source code
 
load_template(request, menu, **kwargs) source code
 
load_data(request, o1_type=None, o1_id=None, o2_type=None, o2_id=None, o3_type=None, o3_id=None, **kwargs) source code
 
load_searching(request, form=None, **kwargs) source code
 
load_data_by_tag(request, o_type=None, o_id=None, **kwargs) source code
 
autocomplete_tags(request, **kwargs) source code
 
open_astex_viewer(request, obj_type, obj_id, **kwargs) source code
 
load_metadata_details(request, c_type, c_id, share_id=None, **kwargs) source code
 
load_metadata_preview(request, imageId, share_id=None, **kwargs) source code
 
load_metadata_hierarchy(request, c_type, c_id, **kwargs) source code
 
load_metadata_acquisition(request, c_type, c_id, share_id=None, **kwargs) source code
 
manage_annotation_multi(request, action=None, **kwargs) source code
 
manage_action_containers(request, action, o_type=None, o_id=None, **kwargs) source code
 
get_original_file(request, fileId, **kwargs) source code
 
image_as_map(request, imageId, **kwargs)
Converts OMERO image into mrc.map file (using tiltpicker utils) and returns the file
source code
 
archived_files(request, iid, **kwargs)
Downloads the archived file(s) as a single file or as a zip (if more than one file)
source code
 
download_annotation(request, action, iid, **kwargs) source code
 
load_public(request, share_id=None, **kwargs) source code
 
basket_action(request, action=None, **kwargs) source code
 
empty_basket(request, **kwargs) source code
 
update_basket(request, **kwargs) source code
 
manage_myaccount(request, action=None, **kwargs) source code
 
change_password(request, **kwargs) source code
 
upload_myphoto(request, action=None, **kwargs) source code
 
help(request, **kwargs) source code
 
load_calendar(request, year=None, month=None, **kwargs) source code
 
load_history(request, year, month, day, **kwargs) source code
 
getObjectUrl(conn, obj)
This provides a url to browse to the specified omero.model.ObjectI P/D/I, S/P, FileAnnotation etc.
source code
 
progress(request, **kwargs)
Refresh callbacks (delete, scripts etc) and provide json to update Activities window & Progressbar.
source code
 
status_action(request, action=None, **kwargs)
Opens the Activites window, using data from jobs in the request.session['callback'].
source code
 
load_photo(request, oid=None, **kwargs) source code
 
myphoto(request, **kwargs) source code
 
render_birds_eye_view(request, iid, size=200, share_id=None, **kwargs) source code
 
render_thumbnail(request, iid, share_id=None, **kwargs) source code
 
render_thumbnail_resize(request, size, iid, share_id=None, **kwargs) source code
 
render_image(request, iid, z, t, share_id=None, **kwargs)
Renders the image with id {{iid}} at {{z}} and {{t}} as jpeg.
source code
 
render_image_region(request, iid, z, t, server_id=None, share_id=None, _conn=None, **kwargs)
Renders the image with id {{iid}} at {{z}} and {{t}} as jpeg.
source code
 
plateGrid_json(request, pid, field=0, server_id=None, _conn=None, **kwargs)
This view is responsible for showing well data within plate
source code
 
image_viewer(request, iid, share_id=None, **kwargs)
This view is responsible for showing pixel data as images
source code
 
imageData_json(request, iid, share_id=None, **kwargs)
Get a dict with image information
source code
 
render_row_plot(request, iid, z, t, y, share_id=None, w=1, **kwargs)
Get a dict with image information
source code
 
render_col_plot(request, iid, z, t, x, share_id=None, w=1, **kwargs)
Get a dict with image information
source code
 
render_split_channel(request, iid, z, t, share_id=None, **kwargs)
Get a dict with image information
source code
 
list_scripts(request, **kwargs)
List the available scripts - Just officical scripts for now
source code
 
script_ui(request, scriptId, **kwargs)
Generates an html form for the parameters of a defined script.
source code
 
script_run(request, scriptId, **kwargs)
Runs a script using values in a POST
source code
 
spellchecker(request) source code
Variables [hide private]
  logger = logging.getLogger('views-web')
  connectors = {}
  share_connectors = {}
  GOOGLE_URL = "www.google.com"

Imports: sys, copy, re, os, calendar, cStringIO, datetime, httplib, Ice, locale, logging, traceback, shutil, zipfile, glob, time, start_new_thread, omero_version, omero, settings, SessionStore, template_loader, cache, HttpResponse, HttpResponseRedirect, HttpResponseServerError, render_to_response, Context, simplejson, page_not_found, server_error, debug, reverse, _, smart_str, FileWrapper, OmeroWebGateway, string_to_dict, HttpJavascriptRedirect, HttpJavascriptResponse, HttpLoginRedirect, _formatReport, _purgeCallback, ShareForm, BasketShareForm, ShareCommentForm, ContainerForm, ContainerNameForm, ContainerDescriptionForm, CommentAnnotationForm, TagAnnotationForm, UploadFileForm, UsersForm, ActiveGroupForm, HistoryTypeForm, MetadataFilterForm, MetadataDetectorForm, MetadataChannelForm, MetadataEnvironmentForm, MetadataObjectiveForm, MetadataObjectiveSettingsForm, MetadataStageLabelForm, MetadataLightSourceForm, MetadataDichroicForm, MetadataMicroscopeForm, TagListForm, FileListForm, TagFilterForm, MultiAnnotationForm, WellIndexForm, BaseController, BaseIndex, BaseBasket, BaseContainer, BaseHelp, BaseCalendar, BaseImpexp, BaseSearch, BaseShare, MyAccountForm, UploadPhotoForm, LoginForm, ChangePassword, BaseExperimenter, BaseUploadFile, _checkVersion, _isServerOn, toBoolean, upgradeCheck, getBlitzConnection, webgateway_views, handlerInternalError


Function Details [hide private]

index(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

index_context(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

index_last_imports(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

index_most_recent(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

index_tag_cloud(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

change_active_group(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

logout(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_template(request, menu, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_data(request, o1_type=None, o1_id=None, o2_type=None, o2_id=None, o3_type=None, o3_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_searching(request, form=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_data_by_tag(request, o_type=None, o_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

autocomplete_tags(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

open_astex_viewer(request, obj_type, obj_id, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_metadata_details(request, c_type, c_id, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_metadata_preview(request, imageId, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_metadata_hierarchy(request, c_type, c_id, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_metadata_acquisition(request, c_type, c_id, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

manage_annotation_multi(request, action=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

manage_action_containers(request, action, o_type=None, o_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

get_original_file(request, fileId, **kwargs)

source code 
Decorators:
  • @isUserConnected

image_as_map(request, imageId, **kwargs)

source code 

Converts OMERO image into mrc.map file (using tiltpicker utils) and returns the file

Decorators:
  • @isUserConnected

archived_files(request, iid, **kwargs)

source code 

Downloads the archived file(s) as a single file or as a zip (if more than one file)

Decorators:
  • @isUserConnected

download_annotation(request, action, iid, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_public(request, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

basket_action(request, action=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

empty_basket(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

update_basket(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

manage_myaccount(request, action=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

change_password(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

upload_myphoto(request, action=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

help(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_calendar(request, year=None, month=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

load_history(request, year, month, day, **kwargs)

source code 
Decorators:
  • @isUserConnected

getObjectUrl(conn, obj)

source code 

This provides a url to browse to the specified omero.model.ObjectI P/D/I, S/P, FileAnnotation etc. used to display results from the scripting service E.g webclient/userdata/?path=project=1|dataset=5|image=12601:selected If the object is a file annotation, try to browse to the parent P/D/I

progress(request, **kwargs)

source code 

Refresh callbacks (delete, scripts etc) and provide json to update Activities window & Progressbar. The returned json contains details for ALL callbacks in web session, regardless of their status. We also add counts of jobs, failures and 'in progress' to update status bar.

Decorators:
  • @isUserConnected

status_action(request, action=None, **kwargs)

source code 

Opens the Activites window, using data from jobs in the request.session['callback']. Once this window is open, AJAX calls are used to poll the request.session['callback'] and update the page

If the above 'action' == 'clean' then we clear jobs from request.session['callback'] either a single job (if 'jobKey' is specified in POST) or all jobs (apart from those in progress)

Decorators:
  • @isUserConnected

load_photo(request, oid=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

myphoto(request, **kwargs)

source code 
Decorators:
  • @isUserConnected

render_birds_eye_view(request, iid, size=200, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

render_thumbnail(request, iid, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

render_thumbnail_resize(request, size, iid, share_id=None, **kwargs)

source code 
Decorators:
  • @isUserConnected

render_image(request, iid, z, t, share_id=None, **kwargs)

source code 
Renders the image with id {{iid}} at {{z}} and {{t}} as jpeg.
    Many options are available from the request dict.
I am assuming a single Pixels object on image with id='iid'. May be wrong 

Decorators:
  • @isUserConnected

render_image_region(request, iid, z, t, server_id=None, share_id=None, _conn=None, **kwargs)

source code 
Renders the image with id {{iid}} at {{z}} and {{t}} as jpeg.
    Many options are available from the request dict.
I am assuming a single Pixels object on image with id='iid'. May be wrong 

Decorators:
  • @isUserConnected

plateGrid_json(request, pid, field=0, server_id=None, _conn=None, **kwargs)

source code 

This view is responsible for showing well data within plate

Decorators:
  • @isUserConnected

image_viewer(request, iid, share_id=None, **kwargs)

source code 

This view is responsible for showing pixel data as images

Decorators:
  • @isUserConnected

imageData_json(request, iid, share_id=None, **kwargs)

source code 

Get a dict with image information

Decorators:
  • @isUserConnected

render_row_plot(request, iid, z, t, y, share_id=None, w=1, **kwargs)

source code 

Get a dict with image information

Decorators:
  • @isUserConnected

render_col_plot(request, iid, z, t, x, share_id=None, w=1, **kwargs)

source code 

Get a dict with image information

Decorators:
  • @isUserConnected

render_split_channel(request, iid, z, t, share_id=None, **kwargs)

source code 

Get a dict with image information

Decorators:
  • @isUserConnected

list_scripts(request, **kwargs)

source code 

List the available scripts - Just officical scripts for now

Decorators:
  • @isUserConnected

script_ui(request, scriptId, **kwargs)

source code 

Generates an html form for the parameters of a defined script.

Decorators:
  • @isUserConnected

script_run(request, scriptId, **kwargs)

source code 

Runs a script using values in a POST

Decorators:
  • @isUserConnected