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.
|
|
|
login(request)
Webclient Login - Also can be used by other Apps to log in to OMERO. |
source code
|
|
|
|
|
feed(request,
conn=None,
**kwargs)
Viewing this page doesn't perform any action. |
source code
|
|
|
|
|
|
|
|
|
change_active_group(request,
conn=None,
url=None,
**kwargs)
Simply changes the request.session['active_group'] which is then used
by the @login_required decorator to configure conn for any
group-based queries. |
source code
|
|
|
switch_active_group(request,
active_group=None)
Simply changes the request.session['active_group'] which is then used
by the @login_required decorator to configure conn for any
group-based queries. |
source code
|
|
|
logout(request,
conn=None,
**kwargs)
Logout of the session and redirects to the homepage (will redirect to
login first) |
source code
|
|
|
load_template(request,
menu,
conn=None,
url=None,
**kwargs)
This view handles most of the top-level pages, as specified by 'menu'
E.g. |
source code
|
|
|
load_data(request,
o1_type=None,
o1_id=None,
o2_type=None,
o2_id=None,
o3_type=None,
o3_id=None,
conn=None,
**kwargs)
This loads data for the tree, via AJAX calls. |
source code
|
|
|
load_chgrp_target(request,
group_id,
target_type,
conn=None,
**kwargs)
Loads a tree for user to pick target Project, Dataset or Screen |
source code
|
|
|
|
|
|
|
open_astex_viewer(request,
obj_type,
obj_id,
conn=None,
**kwargs)
Opens the Open Astex Viewer applet, to display volume masks in a couple of formats:
- mrc.map files that are attached to images. |
source code
|
|
|
load_metadata_details(request,
c_type,
c_id,
conn=None,
share_id=None,
**kwargs)
This page is the right-hand panel 'general metadata', first tab only. |
source code
|
|
|
|
|
|
|
|
|
|
|
getIds(request)
Used by forms to indicate the currently selected objects prepared
above |
source code
|
|
|
|
|
annotate_file(request,
conn=None,
**kwargs)
On 'POST', This handles attaching an existing file-annotation(s)
and/or upload of a new file to one or more objects Otherwise it
generates the form for choosing file-annotations & local files. |
source code
|
|
|
annotate_comment(request,
conn=None,
**kwargs)
Handle adding Comments to one or more objects Unbound instance of
Comment form not available. |
source code
|
|
|
annotate_tags(request,
conn=None,
**kwargs)
This handles creation AND submission of Tags form, adding new AND/OR
existing tags to one or more objects |
source code
|
|
|
|
|
|
|
|
|
image_as_map(request,
imageId,
conn=None,
**kwargs)
Converts OMERO image into mrc.map file (using tiltpicker utils) and
returns the file |
source code
|
|
|
|
|
|
|
load_public(request,
share_id=None,
conn=None,
**kwargs)
Loads data for the tree in the 'public' main page. |
source code
|
|
|
basket_action(request,
action=None,
conn=None,
**kwargs)
Various actions for creating a 'share' or 'discussion' (no images). |
source code
|
|
|
|
|
|
|
load_calendar(request,
year=None,
month=None,
conn=None,
**kwargs)
Loads the calendar which is displayed in the left panel of the
history page. |
source code
|
|
|
load_history(request,
year,
month,
day,
conn=None,
**kwargs)
The data for a particular date that is loaded into the center panel |
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
|
|
|
activities(request,
conn=None,
**kwargs)
This refreshes callback handles (delete, scripts, chgrp etc) and
provides html to update Activities window & Progressbar. |
source code
|
|
|
activities_update(request,
action,
**kwargs)
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) |
source code
|
|
|
avatar(request,
oid=None,
conn=None,
**kwargs)
Returns the experimenter's photo |
source code
|
|
|
image_viewer(request,
iid,
share_id=None,
**kwargs)
Delegates to webgateway, using share connection if appropriate |
source code
|
|
|
|
|
script_ui(request,
scriptId,
conn=None,
**kwargs)
Generates an html form for the parameters of a defined script. |
source code
|
|
|
|
|
chgrp(request,
conn=None,
**kwargs)
Moves data to a new group, using the chgrp queue. |
source code
|
|
|
|
|
ome_tiff_script(request,
imageId,
conn=None,
**kwargs)
Uses the scripting service (Batch Image Export script) to generate
OME-TIFF for an image and attach this as a file annotation to the
image. |
source code
|
|
|
run_script(request,
conn,
sId,
inputMap,
scriptName='Script')
Starts running a script, adding details to the request.session so
that it shows up in the webclient Activities panel and results are
available there etc. |
source code
|
|
|
ome_tiff_info(request,
imageId,
conn=None,
**kwargs)
Query to see if we have an OME-TIFF attached to the image (assume
only 1, since Batch Image Export will delete old ones) |
source code
|
|