Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #5006 (closed)

Opened 13 years ago

Closed 13 years ago

MOVIE: Blitz gateway intro

Reported by: wmoore Owned by: wmoore
Priority: major Milestone: OMERO-Beta4.3
Component: Documentation Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description (last modified by wmoore)

Cover stuff from PythonClientBeginners, OmeroPy/Gateway

  • Python API (OmeroWeb diagram)
  • Blitz is wrapper, lazy loading, designed for Web
  • Epydoc
  • Access to services conn.getSession().getAdminService() #4909
  • Stand-alone Blitz client
    • Connect
    • List Projects, Datasets, Image
    • Save Images to disk (PIL)
  • Can be ported to Python scripts (see another movie)
  • OmeroWeb in different movie
>>> from omero.gateway import BlitzGateway
>>> conn = BlitzGateway('root', 'omero', port=4064, host='localhost')
>>> conn.connect()
True
>>> dir(conn)

>>> for p in conn.listProjects():
...     print p.id, p.name
...     for d in p.listChildren():
...             print "    ", d.id, d.name
... 

>>> d = conn.getObject("Dataset", 351)
>>> d
<_DatasetWrapper id=351>
>>> d._obj

>>> for i in d.listChildren():
...     print i.id, i.name
... 
>>> i = conn.getObject("Image", 13151)
>>> i
<_ImageWrapper id=13151>
>>> i.getSizeZ()
16
>>> i.getSizeT()
1
>>> img = i.renderImage(8, 0)
>>> print img
<PIL.JpegImagePlugin.JpegImageFile instance at 0x1d7c968>
>>> img.show()
>>> 

Briefly show web:

  • Goto webtest/dataset/351
  • Show webtest/views.py - conn.getObject("Dataset", id)
  • Show templates/webtest/dataset.html

Change History (6)

comment:1 Changed 13 years ago by wmoore

  • Description modified (diff)
  • Summary changed from Blitz gateway movie to MOVIE: Blitz gateway intro

comment:2 Changed 13 years ago by wmoore

  • Sprint changed from 2011-05-05 (11) to 2011-06-02 (13)

comment:3 Changed 13 years ago by jburel

  • Sprint changed from 2011-06-02 (13) to 2011-06-16 (14)

Moved from sprint 2011-06-02 (13)

comment:4 Changed 13 years ago by wmoore

  • Sprint 2011-06-16 (14) deleted

comment:5 Changed 13 years ago by wmoore

  • Description modified (diff)

comment:6 Changed 13 years ago by wmoore

  • Remaining Time changed from 1 to 0
  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.69289 sec.)

We're Hiring!