Package omero :: Package gateway
[hide private]
[frames] | no frames]

Package gateway

source code

Submodules [hide private]

Classes [hide private]
  NoProxies
  _BlitzGateway
ICE_CONFIG - Defines the path to the Ice configuration
  BlitzGateway
ICE_CONFIG - Defines the path to the Ice configuration
  ProxyObjectWrapper
  BlitzObjectWrapper
Object wrapper class.
  AnnotationWrapper
omero_model_AnnotationI class wrapper extends BlitzObjectWrapper.
  TimestampAnnotationWrapper
omero_model_TimestampAnnotatio class wrapper extends AnnotationWrapper.
  BooleanAnnotationWrapper
omero_model_BooleanAnnotationI class wrapper extends AnnotationWrapper.
  CommentAnnotationWrapper
omero_model_CommentAnnotationI class wrapper extends AnnotationWrapper.
  LongAnnotationWrapper
omero_model_LongAnnotationI class wrapper extends AnnotationWrapper.
  _ExperimenterWrapper
omero_model_ExperimenterI class wrapper extends BlitzObjectWrapper.
  ExperimenterWrapper
omero_model_ExperimenterI class wrapper extends BlitzObjectWrapper.
  _ExperimenterGroupWrapper
omero_model_ExperimenterGroupI class wrapper extends BlitzObjectWrapper.
  ExperimenterGroupWrapper
omero_model_ExperimenterGroupI class wrapper extends BlitzObjectWrapper.
  DetailsWrapper
omero_model_DetailsI class wrapper extends BlitzObjectWrapper.
  ColorHolder
Stores color internally as (R,G,B,A) and allows setting and getting in multiple formats
  ChannelWrapper
omero_model_ChannelI class wrapper extends BlitzObjectWrapper.
  _ImageWrapper
omero_model_ImageI class wrapper extends BlitzObjectWrapper.
  ImageWrapper
omero_model_ImageI class wrapper extends BlitzObjectWrapper.
  _DatasetWrapper
omero_model_DatasetI class wrapper extends BlitzObjectWrapper.
  DatasetWrapper
omero_model_DatasetI class wrapper extends BlitzObjectWrapper.
  _ProjectWrapper
omero_model_ProjectI class wrapper extends BlitzObjectWrapper.
  ProjectWrapper
omero_model_ProjectI class wrapper extends BlitzObjectWrapper.
Functions [hide private]
 
timeit(func)
Measures the execution time of a function using time.time() and the a @ function decorator.
source code
 
omero_type(val)
Converts rtypes from static factory methods:
source code
 
safeCallWrap(self, attr, f)
Captures called function.
source code
 
splitHTMLColor(color)
splits an hex stream of characters into an array of bytes in format (R,G,B,A).
source code
 
assert_re(func) source code
 
assert_pixels(func) source code
Variables [hide private]
  THISPATH = os.path.dirname(os.path.abspath(__file__))
  logger = logging.getLogger('blitz_gateway')

Imports: logging, os, sys, IntType, LongType, ListType, TupleType, UnicodeType, StringType, StringTypes, datetime, omero, Ice, Glacier2, traceback, time, array, Image, ImageDraw, ImageFont, StringIO, sqrt, rstring, rint, rlong, rbool, rtime, omero_Constants_ice, omero_ROMIO_ice, TimestampAnnotationI, BooleanAnnotationI, CommentAnnotationI, LongAnnotationI


Function Details [hide private]

timeit(func)

source code 

Measures the execution time of a function using time.time() and the a @ function decorator.

Parameters:
  • func - function
Returns:
wrapped

omero_type(val)

source code 

Converts rtypes from static factory methods:

  • StringType to rstring
  • UnicodeType to rstring
  • IntType to rint
  • LongType to rlong

elswere return the argument itself

Parameters:
  • val - value
Returns:
matched RType or value

safeCallWrap(self, attr, f)

source code 

Captures called function. Throws an exception.

splitHTMLColor(color)

source code 

splits an hex stream of characters into an array of bytes in format (R,G,B,A).

  • abc -> (0xAA, 0xBB, 0xCC, 0xFF)
  • abcd -> (0xAA, 0xBB, 0xCC, 0xDD)
  • abbccd -> (0xAB, 0xBC, 0xCD, 0xFF)
  • abbccdde -> (0xAB, 0xBC, 0xCD, 0xDE)