Package omeroweb :: Package webmobile :: Module webmobile_util
[hide private]
[frames] | no frames]

Module webmobile_util

source code

Classes [hide private]
  RecentEvent
Functions [hide private]
 
listMostRecentObjects(conn, limit, obj_types=None, eid=None)
Get the most recent objects supported by the timeline service: obj_types are ['Project', 'Dataset', 'Image', 'Annotation'), Specifying the number of each you want 'limit', belonging to the specified experimenter 'eid' or current Group if 'eid' is None.
source code
BlitzObjectWrapper generator
listMostRecentAnnotations(conn, limit, eid=None)
Retrieve most recent annotations available
source code
 
formatTimeAgo(eventDate)
Formats a datetime wrt 'now'.
source code
 
listCollabAnnotations(conn, myData=True, limit=10)
Lists the most recent annotations BY other users on YOUR images etc.
source code
 
listRois(conn, eid=None, limit=10)
List the most recently created ROIs, optionally filtering by owner.
source code

Imports: datetime, timedelta, reverse, omero, rlong, rint, rtime, ImageWrapper, ProjectWrapper, AnnotationWrapper, BlitzObjectWrapper, DatasetWrapper, OmeroWebGateway


Function Details [hide private]

listMostRecentAnnotations(conn, limit, eid=None)

source code 

Retrieve most recent annotations available

Returns: BlitzObjectWrapper generator
Generator yielding BlitzObjectWrapper

formatTimeAgo(eventDate)

source code 

Formats a datetime wrt 'now'. E.g. '3 hours 25 mins ago', 'Yesterday at 18:30', 'Friday 14 Jan at 10.44'

listRois(conn, eid=None, limit=10)

source code 

List the most recently created ROIs, optionally filtering by owner. Returns a list of RecentObjects wrapping the linked Images.