Package omero :: Package util :: Module import_candidates
[hide private]
[frames] | no frames]

Module import_candidates

source code

Utility method for calling the equivalent of "bin/omero import -f". Results are parsed when using as_dictionary.

Copyright 2009 Glencoe Software, Inc. All rights reserved. Use is subject to license terms supplied in LICENSE.txt

Functions [hide private]
 
_to_list(path)
Guarantees that a list of strings will be returned.
source code
 
as_stdout(path, readers="") source code
 
as_dictionary(path, readers="")
Run as_stdout, parses the output and returns a dictionary of the form:
source code

Imports: sys, os, omero, omero_ServerErrors_ice, create_path, remove_path, CLI


Function Details [hide private]

_to_list(path)

source code 

Guarantees that a list of strings will be returned. Handles unicode caused by "%s" % path.path.

as_dictionary(path, readers="")

source code 

Run as_stdout, parses the output and returns a dictionary of the form:

   {
       some_file_in_group :                 [
               some_file_in_group
               some_other_file_in_group
               ...
               last_file_in_group
           ],
       some_file_in_second_group : ...
   }