Back to index

salome-paravis  6.5.0
Classes | Functions | Variables
pythonIDL Namespace Reference

Classes

class  PythonVisitor
class  DocstringVisitor
class  ExampleVisitor

Functions

def methgrp_index
def ret_arg
def is_int
def is_boolean
def is_double
def is_string
def is_vtkPtr
def is_list
def is_any
def is_char
def error_exit
def run
def docConst
def nodeId
def docWarning
def operationToDescriptors
def typeToDescriptor
def typeAndDeclaratorToDescriptor
def skeletonModuleName
def dotName
def mangle
def fixupScopedName
def valueToString
def outputFileName
def checkStubPackage
def updateModules
def real_updateModules

Variables

list cpp_args = ["-D__OMNIIDL_PYTHON__"]
string usage_string
string pymodule_template
string file_start
string file_end
string module_start
string module_end
string import_idl_file
string open_imported_module_name
string forward_interface
string interface_class
string interface_descriptor
string callables_header
string attribute_get_descriptor
string attribute_set_descriptor
string operation_descriptor
string objref_class
string objref_inherit_init
string objref_object_init
string objref_attribute_get
string objref_attribute_set
string objref_operation
string objref_methods
string objref_register
string skeleton_class
string skeleton_methodmap
string skeleton_inheritmap
string skeleton_end
string skeleton_set_skel
string constant_at_module_scope
string constant
string typedef_header
string typedef_struct_union_header
string typedef_fixed_header
string typedef_at_module_scope
string typedef
string forward_struct_descr_at_module_scope
string forward_struct_descr
string recursive_struct_descr_at_module_scope
string recursive_struct_descr
string struct_class
string struct_class_name
string struct_class_init
string struct_init_member
string struct_descriptor_at_module_scope
string struct_register_at_module_scope
string struct_descriptor
string struct_register
string struct_module_descriptors
string exception_class
string exception_class_init
string exception_init_member
string exception_descriptor_at_module_scope
string exception_descriptor
string forward_union_descr_at_module_scope
string forward_union_descr
string recursive_union_descr_at_module_scope
string recursive_union_descr
string union_class
string union_class_name
string union_descriptor_at_module_scope
string union_register_at_module_scope
string union_descriptor
string union_register
string enum_start
string enum_item_at_module_scope
string enum_object_and_descriptor_at_module_scope
string enum_item
string enum_object_and_descriptor
string value_forward_at_module_scope
string value_class
string valueabs_class
string value_register_factory
string value_descriptor_at_module_scope
string value_objref_register
string valuebox
string example_start
string example_import_skels
string example_import
string example_classdef
string example_opdef
string example_end
dictionary imported_files = {}
dictionary exported_modules = {}
int output_inline = 0
string global_module = "_GlobalIDL"
string module_package = ""
string stub_package = ""
string stub_directory = ""
int all_factories = 0
int example_impl = 0
dictionary extern_stub_pkgs = {}
dictionary ttdMap
dictionary unsupportedMap
tuple __translate_table = string.maketrans(" -.,", "____")

Function Documentation

def pythonIDL.checkStubPackage (   package)
Check the given package name for use as a stub directory

Make sure all fragments of the package name are directories, or
create them. Make __init__.py files in all directories.

Definition at line 2641 of file pythonIDL.py.

02641 
02642 def checkStubPackage(package):
02643     """Check the given package name for use as a stub directory
02644 
02645     Make sure all fragments of the package name are directories, or
02646     create them. Make __init__.py files in all directories."""
02647 
02648     if len(package) == 0:
02649         return
02650 
02651     if package[-1] == ".":
02652         package = package[:-1]
02653 
02654     path = ""
02655     for name in string.split(package, "."):
02656         path = os.path.join(path, name)
02657         
02658         if os.path.exists(path):
02659             if not os.path.isdir(path):
02660                 error_exit('Output error: "%s" exists and is not '
02661                            'a directory.' % path)
02662         else:
02663             try:
02664                 os.mkdir(path)
02665             except:
02666                 error_exit('Cannot create directory "%s".\n' % path)
02667 
02668         initfile = os.path.join(path, "__init__.py")
02669 
02670         if os.path.exists(initfile):
02671             if not os.path.isfile(initfile):
02672                 error_exit('Output error: "%s" exists and is not a file.' %
02673                            initfile)
02674         else:
02675             try:
02676                 open(initfile, "w").write("# omniORB stub directory\n")
02677             except:
02678                 error_exit('Cannot create "%s".' % initfile)
02679 

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.docConst (   node)

Definition at line 2130 of file pythonIDL.py.

02130 
02131 def docConst(node):
02132     if isinstance(node, idlast.Const)        and \
02133        node.constKind() == idltype.tk_string and \
02134        node.identifier()[-7:] == "__doc__":
02135         return node.identifier()[:-7]
02136     else:
02137         return None

Here is the caller graph for this function:

def pythonIDL.docWarning (   node)

Definition at line 2144 of file pythonIDL.py.

02144 
02145 def docWarning(node):
02146     sys.stderr.write(main.cmdname + \
02147                      ": Warning: Constant '" + node.identifier() + "' looks "
02148                      "like a Python docstring, but there is no declaration "
02149                      "named '" + node.identifier()[:-7] + "'.\n")
    

Here is the caller graph for this function:

def pythonIDL.dotName (   scopedName,
  our_scope = [] 
)

Definition at line 2581 of file pythonIDL.py.

02581 
02582 def dotName(scopedName, our_scope=[]):
02583     if scopedName[:len(our_scope)] == our_scope:
02584         l = map(mangle, scopedName[len(our_scope):])
02585     else:
02586         l = map(mangle, scopedName)
02587     return string.join(l, ".")

Here is the caller graph for this function:

def pythonIDL.error_exit (   message)

Definition at line 796 of file pythonIDL.py.

00796 
00797 def error_exit(message):
00798     sys.stderr.write(main.cmdname + ": " + message + "\n")
00799     sys.exit(1)

Here is the caller graph for this function:

def pythonIDL.fixupScopedName (   scopedName,
  prefix = "_0_" 
)
Add a prefix and _GlobalIDL to the front of a ScopedName if necessary

Definition at line 2596 of file pythonIDL.py.

02596 
02597 def fixupScopedName(scopedName, prefix="_0_"):
02598     """Add a prefix and _GlobalIDL to the front of a ScopedName if necessary"""
02599 
02600     try:
02601         decl = idlast.findDecl([scopedName[0]])
02602     except idlast.DeclNotFound:
02603         decl = None
02604 
02605     if isinstance(decl, idlast.Module):
02606         scopedName = [prefix + mangle(scopedName[0])] + scopedName[1:]
02607     else:
02608         scopedName = [prefix + global_module] + scopedName
02609     return scopedName

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_any (   p)

Definition at line 790 of file pythonIDL.py.

00790 
00791 def is_any(p):
00792     return "(type("+ret_arg(p)+") in [CORBA.Any])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_boolean (   p)

Definition at line 775 of file pythonIDL.py.

00775 
00776 def is_boolean(p):
00777     return "(type("+ret_arg(p)+") in [IntType, LongType, BooleanType])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_char (   p)

Definition at line 793 of file pythonIDL.py.

00793 
00794 def is_char(p):
00795     return "((type("+ret_arg(p)+") in [StringType]) and (len(" + ret_arg(p) + ") == 1))"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_double (   p)

Definition at line 778 of file pythonIDL.py.

00778 
00779 def is_double(p):
00780     return "(type("+ret_arg(p)+") in [IntType, LongType, FloatType])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_int (   p)

Definition at line 772 of file pythonIDL.py.

00772 
00773 def is_int(p):
00774     return "(type("+ret_arg(p)+") in [IntType, LongType])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_list (   p)

Definition at line 787 of file pythonIDL.py.

00787 
00788 def is_list(p):
00789     return "(type("+ret_arg(p)+").count('[]') > 0)"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_string (   p)

Definition at line 781 of file pythonIDL.py.

00781 
00782 def is_string(p):
00783     return "(type("+ret_arg(p)+") in [StringType])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.is_vtkPtr (   p)

Definition at line 784 of file pythonIDL.py.

00784 
00785 def is_vtkPtr(p):
00786     return "(type("+ret_arg(p)+") in [InstanceType])"

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.mangle (   name)

Definition at line 2588 of file pythonIDL.py.

02588 
02589 def mangle(name):
02590     if keyword.iskeyword(name): return "_" + name
02591 
02592     # None is a pseudo-keyword that cannot be assigned to.
02593     if name == "None": return "_None"
02594 
02595     return name

Here is the caller graph for this function:

def pythonIDL.methgrp_index (   metharr,
  opname 
)

Definition at line 762 of file pythonIDL.py.

00762 
00763 def methgrp_index(metharr,opname):
00764     for i in range(0, len(metharr)):
00765         if len(opname) > 2 and metharr[i] == opname[:-2]:
00766             return i
00767 
00768     return -1

Here is the caller graph for this function:

def pythonIDL.nodeId (   node)

Definition at line 2138 of file pythonIDL.py.

02138 
02139 def nodeId(node):
02140     if hasattr(node, "identifier"):
02141         return node.identifier()
02142     else:
02143         return None

Here is the caller graph for this function:

Return the descriptors for an operation.

Returns a tuple containing strings of (in descriptor, out
descriptor, exception map, context list, contains values)

Definition at line 2440 of file pythonIDL.py.

02440 
02441 def operationToDescriptors(op):
02442     """Return the descriptors for an operation.
02443 
02444     Returns a tuple containing strings of (in descriptor, out
02445     descriptor, exception map, context list, contains values)
02446     """
02447 
02448     indl  = []
02449     outdl = []
02450     cv    = 0
02451 
02452     if op.returnType() is not None and \
02453        op.returnType().kind() != idltype.tk_void:
02454 
02455         outdl.append(typeToDescriptor(op.returnType()))
02456         cv = idltype.containsValueType(op.returnType())
02457 
02458     # Make the lists of in and out parameters
02459     for p in op.parameters():
02460 
02461         if p.is_in():
02462             indl.append(typeToDescriptor(p.paramType()))
02463         if p.is_out():
02464             outdl.append(typeToDescriptor(p.paramType()))
02465 
02466         cv = cv or idltype.containsValueType(p.paramType())
02467 
02468     # Fudge single-item lists so that single item tuples work
02469     if len(indl)  == 1: indl.append("")
02470     if len(outdl) == 1: outdl.append("")
02471 
02472     inds = "(" + string.join(indl, ", ") + ")"
02473     if op.oneway():
02474         outds = "None"
02475     else:
02476         outds = "(" + string.join(outdl, ", ") + ")"
02477 
02478     # Exceptions
02479     excl = []
02480 
02481     for e in op.raises():
02482         sn = fixupScopedName(e.scopedName())
02483         ename = dotName(sn)
02484         edesc = dotName(sn[:-1] + [ "_d_" + sn[-1]])
02485         excl.append(ename + "._NP_RepositoryId: " + edesc)
02486 
02487     if len(excl) > 0:
02488         excs = "{" + string.join(excl, ", ") + "}"
02489     else:
02490         excs = "None"
02491 
02492     if op.contexts():
02493         ctxts = "[" + string.join(map(repr, op.contexts()), ", ") + "]"
02494     else:
02495         ctxts = None
02496 
02497     return inds, outds, excs, ctxts, cv
02498 
02499 

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.outputFileName (   idlname)

Definition at line 2637 of file pythonIDL.py.

02637 
02638 def outputFileName(idlname):
02639     global __translate_table
02640     return string.translate(os.path.basename(idlname), __translate_table)

Here is the caller graph for this function:

def pythonIDL.real_updateModules (   modules,
  pymodule 
)

Definition at line 2692 of file pythonIDL.py.

02692 
02693 def real_updateModules(modules, pymodule):
02694 
02695     for module in modules:
02696         modlist = string.split(module_package, ".") + string.split(module, ".")
02697         modpath = apply(os.path.join, modlist)
02698         modfile = os.path.join(modpath, "__init__.py")
02699         tmpfile = os.path.join(modpath, "new__init__.py")
02700 
02701         if not os.path.exists(modpath):
02702             try:
02703                 os.makedirs(modpath)
02704             except:
02705                 error_exit('Cannot create path "%s".' % modpath)
02706 
02707         # Make the __init__.py file if it does not already exist
02708         if not os.path.exists(modfile):
02709             try:
02710                 f = open(modfile, "w")
02711             except:
02712                 error_exit('Cannot create "%s".' % modfile)
02713             
02714             st = output.Stream(f, 4)
02715 
02716             st.out(pymodule_template, module=module, package=module_package)
02717 
02718             f.close()
02719             del f, st
02720 
02721         if not os.path.isfile(modfile):
02722             error_exit('Output error: "%s" exists but is not a file.' %
02723                        modfile)
02724 
02725         # Insert the import line for the current IDL file
02726         try:
02727             inf = open(modfile, "r")
02728         except:
02729             error_exit('Cannot open "%s" for reading.' % modfile)
02730 
02731         try:
02732             outf = open(tmpfile, "w")
02733         except:
02734             error_exit('Cannot open "%s" for writing.' % tmpfile)
02735 
02736         line = ""
02737         while line[:7] != "# ** 1.":
02738             line = inf.readline()
02739             if line == "":
02740                 error_exit('Output error: "%s" ended before I found a '
02741                            '"# ** 1." tag.\n'
02742                            'Have you left behind some files from a '
02743                            'different Python ORB?' % modfile)
02744                 
02745             outf.write(line)
02746             
02747         already    = 0
02748         outputline = "import " + pymodule + "\n"
02749 
02750         while line != "\n":
02751             line = inf.readline()
02752             if line == "":
02753                 error_exit('Output error: "%s" ended while I was '
02754                            'looking at imports.' % modfile)
02755 
02756             if line != "\n":
02757                 outf.write(line)
02758                 if line == outputline:
02759                     already = 1
02760 
02761         if not already:
02762             outf.write(outputline)
02763 
02764         outf.write("\n")
02765 
02766         # Output the rest of the file
02767         while line != "":
02768             line = inf.readline()
02769             outf.write(line)
02770 
02771         inf.close()
02772         outf.close()
02773 
02774         try:
02775             os.remove(modfile)
02776         except:
02777             error_exit('Cannot remove "%s".' % modfile)
02778         try:
02779             os.rename(tmpfile, modfile)
02780         except:
02781             error_exit('Cannot rename "%s" to "%s".' % (tmpfile, modfile))
02782 
02783     # Go round again, importing sub-modules from their parent modules
02784     for module in modules:
02785         modlist = string.split(module, ".")
02786 
02787         if len(modlist) == 1:
02788             continue
02789 
02790         modlist = string.split(module_package, ".") + modlist
02791         submod  = modlist[-1]
02792         modpath = apply(os.path.join, modlist[:-1])
02793         modfile = os.path.join(modpath, "__init__.py")
02794         tmpfile = os.path.join(modpath, "new__init__.py")
02795 
02796         # Insert the import line for the sub-module
02797         try:
02798             inf = open(modfile, "r")
02799         except:
02800             error_exit('Cannot open "%s" for reading.' % modfile)
02801 
02802         try:
02803             outf = open(tmpfile, "w")
02804         except:
02805             error_exit('Cannot open "%s" for writing.' % tmpfile)
02806 
02807         line = ""
02808         while line[:7] != "# ** 2.":
02809             line = inf.readline()
02810             if line == "":
02811                 error_exit('Output error: "%s" ended before I found a '
02812                            '"# ** 1." tag.\n'
02813                            'Have you left behind some files from a '
02814                            'different Python ORB?' % modfile)
02815                 
02816             outf.write(line)
02817             
02818         already    = 0
02819         outputline = "import " + submod + "\n"
02820 
02821         while line != "\n":
02822             line = inf.readline()
02823             if line == "":
02824                 error_exit('Output error: "%s" ended while I was '
02825                            'looking at imports.' % modfile)
02826 
02827             if line != "\n":
02828                 outf.write(line)
02829                 if line == outputline:
02830                     already = 1
02831 
02832         if not already:
02833             outf.write(outputline)
02834 
02835         outf.write("\n")
02836 
02837         # Output the rest of the file
02838         while line != "":
02839             line = inf.readline()
02840             outf.write(line)
02841 
02842         inf.close()
02843         outf.close()
02844 
02845         try:
02846             os.remove(modfile)
02847         except:
02848             error_exit('Cannot remove "%s".' % modfile)
02849         try:
02850             os.rename(tmpfile, modfile)
02851         except:
02852             error_exit('Cannot rename "%s" to "%s".' % (tmpfile, modfile))

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.ret_arg (   p)

Definition at line 769 of file pythonIDL.py.

00769 
00770 def ret_arg(p):
00771     return "args["+str(p)+"]"

Here is the caller graph for this function:

def pythonIDL.run (   tree,
  args 
)

Definition at line 800 of file pythonIDL.py.

00800 
00801 def run(tree, args):
00802     global main_idl_file, imported_files, exported_modules, output_inline
00803     global global_module, module_package, stub_package, stub_directory
00804     global all_factories, example_impl, extern_stub_pkgs
00805 
00806     imported_files.clear()
00807     exported_modules.clear()
00808 
00809     # Look at the args:
00810     use_stdout     = 0
00811     create_package = 1
00812     for arg in args:
00813 
00814         if arg == "stdout":
00815             use_stdout     = 1
00816             create_package = 0
00817 
00818         elif arg == "no_package":
00819             create_package = 0
00820 
00821         elif arg == "inline":
00822             output_inline = 1
00823 
00824         elif arg == "factories":
00825             all_factories = 1
00826 
00827         elif arg[:8] == "modules=":
00828             module_package = arg[8:]
00829             if module_package != "":
00830                 module_package = module_package + "."
00831 
00832         elif arg[:6] == "stubs=":
00833             stub_package   = arg[6:]
00834             stub_directory = apply(os.path.join,
00835                                    string.split(stub_package, "."))
00836             if stub_package != "":
00837                 stub_package = stub_package + "."
00838 
00839         elif arg[:8] == "package=":
00840             module_package = stub_package = arg[8:]
00841             stub_directory = apply(os.path.join,
00842                                    string.split(stub_package, "."))
00843             if module_package != "":
00844                 module_package = stub_package = module_package + "."
00845 
00846         elif arg[:7] == "global=":
00847             global_module = arg[7:]
00848             if global_module == "":
00849                 error_exit("You may not have an unnamed global module.")
00850 
00851         elif arg == "example":
00852             example_impl = 1
00853 
00854         elif arg[:7] == "extern=":
00855             f_p = string.split(arg[7:], ":", 1)
00856             if len(f_p) == 1:
00857                 extern_stub_pkgs[f_p[0]] = None
00858             else:
00859                 extern_stub_pkgs[f_p[0]] = f_p[1]
00860 
00861         else:
00862             sys.stderr.write(main.cmdname + ": Warning: Python " \
00863                              "back-end does not understand argument: " + \
00864                              arg + "\n")
00865 
00866     main_idl_file = tree.file()
00867 
00868     outpybasename = outputFileName(main_idl_file)
00869     outpymodule   = stub_package + outpybasename
00870     outpyname     = os.path.join(stub_directory, outpybasename + ".py")
00871 
00872     imported_files[outpybasename] = 1
00873 
00874     if create_package:
00875         checkStubPackage(stub_package)
00876 
00877     if use_stdout:
00878         st = output.Stream(sys.stdout, 4)
00879     else:
00880         try:
00881             st = output.Stream(open(outpyname, "w"), 4)
00882         except IOError:
00883             error_exit('Cannot open "%s" for writing.' % outpyname)
00884 
00885     st.out(file_start, filename=main_idl_file)
00886 
00887     pv = PythonVisitor(st, outpymodule)
00888     tree.accept(pv)
00889 
00890     dv = DocstringVisitor(st)
00891     tree.accept(dv)
00892     dv.output()
00893 
00894     exports = exported_modules.keys()
00895     exports.sort()
00896     export_list = map(lambda s: '"' + module_package + s + '"', exports)
00897     if len(export_list) == 1: export_list.append("")
00898     export_string = string.join(export_list, ", ")
00899 
00900     st.out(file_end, export_string=export_string)
00901 
00902     if create_package:
00903         updateModules(exports, outpymodule)
00904 
00905     if example_impl:
00906         implname = os.path.join(stub_directory, outpybasename + "_example.py")
00907         exst = output.Stream(open(implname, "w"), 4)
00908         exst.out(example_start, filename=main_idl_file)
00909         for mod in exports:
00910             exst.out(example_import, module=mod)
00911         exst.out(example_import_skels)
00912         for mod in exports:
00913             exst.out(example_import, module=skeletonModuleName(mod))
00914 
00915         ev = ExampleVisitor(exst)
00916         tree.accept(ev)
00917 
00918         exst.out(example_end, ifname=ev.first)
00919 

Here is the call graph for this function:

Convert a scoped name string into the corresponding skeleton
module name. e.g. M1.M2.I -> M1__POA.M2.I

Definition at line 2574 of file pythonIDL.py.

02574 
02575 def skeletonModuleName(mname):
02576     """Convert a scoped name string into the corresponding skeleton
02577 module name. e.g. M1.M2.I -> M1__POA.M2.I"""
02578     l = string.split(mname, ".")
02579     l[0] = l[0] + "__POA"
02580     return string.join(l, ".")

Here is the caller graph for this function:

def pythonIDL.typeAndDeclaratorToDescriptor (   tspec,
  decl,
  from_scope,
  is_typedef = 0 
)

Definition at line 2563 of file pythonIDL.py.

02563 
02564 def typeAndDeclaratorToDescriptor(tspec, decl, from_scope, is_typedef=0):
02565     desc = typeToDescriptor(tspec, from_scope, is_typedef)
02566 
02567     if len(decl.sizes()) > 0:
02568         sizes = decl.sizes()[:]
02569         sizes.reverse()
02570         for size in sizes:
02571             desc = "(omniORB.tcInternal.tv_array, " + \
02572                    desc + ", " + str(size) + ")"
02573     return desc

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.typeToDescriptor (   tspec,
  from_scope = [],
  is_typedef = 0 
)

Definition at line 2522 of file pythonIDL.py.

02522 
02523 def typeToDescriptor(tspec, from_scope=[], is_typedef=0):
02524     if hasattr(tspec, "python_desc"):
02525         return tspec.python_desc
02526 
02527     if ttdMap.has_key(tspec.kind()):
02528         tspec.python_desc = ttdMap[tspec.kind()]
02529         return tspec.python_desc
02530 
02531     if unsupportedMap.has_key(tspec.kind()):
02532         error_exit("omniORBpy does not support the %s type." %
02533                    unsupportedMap[tspec.kind()])
02534 
02535     if tspec.kind() == idltype.tk_string:
02536         ret = "(omniORB.tcInternal.tv_string," + str(tspec.bound()) + ")"
02537 
02538     elif tspec.kind() == idltype.tk_wstring:
02539         ret = "(omniORB.tcInternal.tv_wstring," + str(tspec.bound()) + ")"
02540 
02541     elif tspec.kind() == idltype.tk_sequence:
02542         ret = "(omniORB.tcInternal.tv_sequence, " + \
02543               typeToDescriptor(tspec.seqType(), from_scope) + \
02544               ", " + str(tspec.bound()) + ")"
02545 
02546     elif tspec.kind() == idltype.tk_fixed:
02547         ret = "(omniORB.tcInternal.tv_fixed, " + \
02548               str(tspec.digits()) + ", " + str(tspec.scale()) + ")"
02549 
02550     elif tspec.kind() == idltype.tk_alias:
02551         sn = fixupScopedName(tspec.scopedName())
02552         if is_typedef:
02553             return 'omniORB.typeCodeMapping["%s"]._d' % tspec.decl().repoId()
02554         else:
02555             return 'omniORB.typeMapping["%s"]' % tspec.decl().repoId()
02556 
02557     else:
02558         ret = 'omniORB.typeMapping["%s"]' % tspec.decl().repoId()
02559 
02560     tspec.python_desc = ret
02561     return ret
02562 

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.updateModules (   modules,
  pymodule 
)
Create or update the Python modules corresponding to the IDL
module names

Definition at line 2680 of file pythonIDL.py.

02680 
02681 def updateModules(modules, pymodule):
02682     """Create or update the Python modules corresponding to the IDL
02683     module names"""
02684 
02685     checkStubPackage(module_package)
02686 
02687     poamodules = map(skeletonModuleName, modules)
02688 
02689     real_updateModules(modules,    pymodule)
02690     real_updateModules(poamodules, pymodule)
02691 

Here is the call graph for this function:

Here is the caller graph for this function:

def pythonIDL.valueToString (   val,
  kind,
  scope = [] 
)

Definition at line 2610 of file pythonIDL.py.

02610 
02611 def valueToString(val, kind, scope=[]):
02612     if kind == idltype.tk_enum:
02613         return dotName(fixupScopedName(val.scopedName()), scope)
02614 
02615     elif kind in [idltype.tk_string, idltype.tk_char]:
02616         return '"' + idlutil.escapifyString(val) + '"'
02617 
02618     elif kind == idltype.tk_wstring:
02619         return 'u"' + idlutil.escapifyWString(val) + '"'
02620 
02621     elif kind == idltype.tk_wchar:
02622         return 'u"' + idlutil.escapifyWString([val]) + '"'
02623 
02624     elif kind == idltype.tk_long and val == -2147483647 - 1:
02625         return "-2147483647 - 1"
02626 
02627     elif kind in [idltype.tk_float, idltype.tk_double, idltype.tk_longdouble]:
02628         return idlutil.reprFloat(val)
02629 
02630     elif kind == idltype.tk_fixed:
02631         return "CORBA.fixed('" + val + "')"
02632 
02633     else:
02634         return str(val)

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

tuple pythonIDL.__translate_table = string.maketrans(" -.,", "____")

Definition at line 2635 of file pythonIDL.py.

Definition at line 758 of file pythonIDL.py.

Initial value:
00001 """\
00002 @ifid@._d__get_@attr@ = ((),(@descr@,),None)"""

Definition at line 333 of file pythonIDL.py.

Initial value:
00001 """\
00002 @ifid@._d__set_@attr@ = ((@descr@,),(),None)"""

Definition at line 336 of file pythonIDL.py.

Initial value:
00001 """
00002 # @ifid@ operations and attributes"""

Definition at line 330 of file pythonIDL.py.

Initial value:
00001 """\
00002 @cname@ = @value@"""

Definition at line 401 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@.@cname@ = @value@"""

Definition at line 398 of file pythonIDL.py.

list pythonIDL.cpp_args = ["-D__OMNIIDL_PYTHON__"]

Definition at line 234 of file pythonIDL.py.

Initial value:
00001 """\
00002 @eitem@ = omniORB.EnumItem("@item@", @eval@)"""

Definition at line 603 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@.@eitem@ = omniORB.EnumItem("@item@", @eval@)"""

Definition at line 593 of file pythonIDL.py.

Initial value:
00001 """\
00002 @ename@ = omniORB.Enum("@repoId@", (@eitems@,))
00003 
00004 _d_@ename@  = (omniORB.tcInternal.tv_enum, @ename@._NP_RepositoryId, "@ename@", @ename@._items)
00005 _tc_@ename@ = omniORB.tcInternal.createTypeCode(_d_@ename@)
00006 omniORB.registerType(@ename@._NP_RepositoryId, _d_@ename@, _tc_@ename@)"""

Definition at line 606 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@.@ename@ = omniORB.Enum("@repoId@", (@eitems@,))
00003 
00004 _0_@modname@._d_@ename@  = (omniORB.tcInternal.tv_enum, _0_@modname@.@ename@._NP_RepositoryId, "@ename@", _0_@modname@.@ename@._items)
00005 _0_@modname@._tc_@ename@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@ename@)
00006 omniORB.registerType(_0_@modname@.@ename@._NP_RepositoryId, _0_@modname@._d_@ename@, _0_@modname@._tc_@ename@)"""

Definition at line 596 of file pythonIDL.py.

Initial value:
00001 """
00002 # enum @ename@\
00003 """

Definition at line 589 of file pythonIDL.py.

Initial value:
00001 """
00002 
00003 # Implementation of interface @ccname@
00004 
00005 class @ifname@_i (@skname@):
00006 @inheritance_note@
00007     def __init__(self):
00008         # Initialise member variables here
00009         pass
00010 """

Definition at line 699 of file pythonIDL.py.

Initial value:
00001 """
00002 if __name__ == "__main__":
00003     import sys
00004     
00005     # Initialise the ORB
00006     orb = CORBA.ORB_init(sys.argv)
00007     
00008     # As an example, we activate an object in the Root POA
00009     poa = orb.resolve_initial_references("RootPOA")
00010 
00011     # Create an instance of a servant class
00012     servant = @ifname@_i()
00013 
00014     # Activate it in the Root POA
00015     poa.activate_object(servant)
00016 
00017     # Get the object reference to the object
00018     objref = servant._this()
00019     
00020     # Print a stringified IOR for it
00021     print orb.object_to_string(objref)
00022 
00023     # Activate the Root POA's manager
00024     poa._get_the_POAManager().activate()
00025 
00026     # Run the ORB, blocking this thread
00027     orb.run()
00028 """

Definition at line 718 of file pythonIDL.py.

Definition at line 759 of file pythonIDL.py.

Initial value:
00001 """\
00002 import @module@"""

Definition at line 696 of file pythonIDL.py.

Initial value:
00001 """
00002 # Import the Python Skeleton modules so skeleton base classes are available.
00003 """

Definition at line 692 of file pythonIDL.py.

Initial value:
00001 """\
00002     # @signature@
00003     def @opname@(self@args@):
00004         raise CORBA.NO_IMPLEMENT(0, CORBA.COMPLETED_NO)
00005         # *** Implement me
00006         # Must return: @returnspec@
00007 """

Definition at line 710 of file pythonIDL.py.

Initial value:
00001 """\
00002 #!/usr/bin/env python
00003 
00004 # Python example implementations generated from @filename@
00005 
00006 import CORBA, PortableServer
00007 
00008 # Import the Python stub modules so type definitions are available.
00009 """

Definition at line 682 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # exception @sname@
00004 _0_@scopedname@ = omniORB.newEmptyClass()
00005 class @sname@ (CORBA.UserException):
00006     _NP_RepositoryId = "@repoId@"
00007 """

Definition at line 498 of file pythonIDL.py.

Initial value:
00001 """\
00002     def __init__(self@mnames@):
00003         CORBA.UserException.__init__(self@mnames@)"""

Definition at line 506 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 _d_@sname@  = (omniORB.tcInternal.tv_except, @sname@, @sname@._NP_RepositoryId, "@sname@"@mdescs@)
00004 _tc_@sname@ = omniORB.tcInternal.createTypeCode(_d_@sname@)
00005 omniORB.registerType(@sname@._NP_RepositoryId, _d_@sname@, _tc_@sname@)"""

Definition at line 521 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 _0_@modname@.@sname@ = @sname@
00004 _0_@modname@._d_@sname@  = (omniORB.tcInternal.tv_except, @sname@, @sname@._NP_RepositoryId, "@sname@"@mdescs@)
00005 _0_@modname@._tc_@sname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@sname@)
00006 omniORB.registerType(@sname@._NP_RepositoryId, _0_@modname@._d_@sname@, _0_@modname@._tc_@sname@)
00007 del @sname@"""

Definition at line 513 of file pythonIDL.py.

Initial value:
00001 """\
00002         self.@mname@ = @mname@"""

Definition at line 510 of file pythonIDL.py.

dictionary pythonIDL.exported_modules = {}

Definition at line 750 of file pythonIDL.py.

dictionary pythonIDL.extern_stub_pkgs = {}

Definition at line 760 of file pythonIDL.py.

Initial value:
00001 """\
00002 _exported_modules = ( @export_string@)
00003 
00004 # The end."""

Definition at line 274 of file pythonIDL.py.

Initial value:
00001 """\
00002 # Python stubs generated by omniidl from @filename@
00003 
00004 import omniORB, _omnipy
00005 from types import *
00006 from omniORB import CORBA, PortableServer
00007 _0_CORBA = CORBA
00008 
00009 _omnipy.checkVersion(3,0, __file__)
00010 """

Definition at line 263 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # @abstract@interface @ifid@;
00004 _0_@modname@._d_@ifid@ = (omniORB.tcInternal.@tvkind@, "@repoId@", "@ifid@")
00005 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@ifid@"""

Definition at line 303 of file pythonIDL.py.

Initial value:
00001 """
00002 # Forward struct @sname@
00003 _d_@sname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _d_@sname@"""

Definition at line 442 of file pythonIDL.py.

Initial value:
00001 """
00002 # Forward struct @sname@
00003 _0_@modname@._d_@sname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@sname@"""

Definition at line 437 of file pythonIDL.py.

Initial value:
00001 """
00002 # Forward union @uname@
00003 _d_@uname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _d_@uname@"""

Definition at line 532 of file pythonIDL.py.

Initial value:
00001 """
00002 # Forward union @uname@
00003 _0_@modname@._d_@uname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@uname@"""

Definition at line 527 of file pythonIDL.py.

string pythonIDL.global_module = "_GlobalIDL"

Definition at line 754 of file pythonIDL.py.

Initial value:
00001 """\
00002 # #include "@idlfile@"
00003 import @ifilename@"""

Definition at line 295 of file pythonIDL.py.

dictionary pythonIDL.imported_files = {}

Definition at line 749 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # @abstract@interface @ifid@
00004 _0_@modname@._d_@ifid@ = (omniORB.tcInternal.@tvkind@, "@repoId@", "@ifid@")
00005 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@ifid@
00006 _0_@modname@.@ifid@ = omniORB.newEmptyClass()
00007 class @ifid@ @inherits@:
00008     _NP_RepositoryId = _0_@modname@._d_@ifid@[1]
00009 
00010     def __init__(self, *args, **kw):
00011         raise RuntimeError("Cannot construct objects of this type.")
00012 
00013     _nil = CORBA.Object._nil
00014 """

Definition at line 310 of file pythonIDL.py.

Initial value:
00001 """
00002 _0_@modname@.@ifid@ = @ifid@
00003 _0_@modname@._tc_@ifid@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@ifid@)
00004 omniORB.registerType(@ifid@._NP_RepositoryId, _0_@modname@._d_@ifid@, _0_@modname@._tc_@ifid@)"""

Definition at line 325 of file pythonIDL.py.

Initial value:
00001 """
00002 #
00003 # End of module "@sname@"
00004 #
00005 __name__ = "@package@@modname@"
00006 """

Definition at line 288 of file pythonIDL.py.

Definition at line 755 of file pythonIDL.py.

Initial value:
00001 """
00002 #
00003 # Start of module "@sname@"
00004 #
00005 __name__ = "@package@@sname@"
00006 _0_@sname@ = omniORB.openModule("@package@@sname@", r"@filename@")
00007 _0_@s_sname@ = omniORB.openModule("@package@@s_sname@", r"@filename@")
00008 """

Definition at line 279 of file pythonIDL.py.

Initial value:
00001 """
00002     def _get_@attr@(self, *args):
00003         return _omnipy.invoke(self, "_get_@attr@", _0_@modname@.@ifid@._d__get_@attr@, args)"""

Definition at line 356 of file pythonIDL.py.

Initial value:
00001 """
00002     def _set_@attr@(self, *args):
00003         return _omnipy.invoke(self, "_set_@attr@", _0_@modname@.@ifid@._d__set_@attr@, args)"""

Definition at line 359 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # @ifid@ object reference
00004 class _objref_@ifid@ (@inherits@):
00005     _NP_RepositoryId = @ifid@._NP_RepositoryId
00006 
00007     def __init__(self):"""

Definition at line 342 of file pythonIDL.py.

Initial value:
00001 """\
00002         @inclass@.__init__(self)"""

Definition at line 350 of file pythonIDL.py.

Initial value:
00001 """
00002     __methods__ = @methods@"""

Definition at line 365 of file pythonIDL.py.

Initial value:
00001 """\
00002         CORBA.Object.__init__(self)"""

Definition at line 353 of file pythonIDL.py.

Initial value:
00001 """
00002     def @opname@(self, *args):
00003         return _omnipy.invoke(self, "@r_opname@", _0_@modname@.@ifid@._d_@opname@, args)"""

Definition at line 362 of file pythonIDL.py.

Initial value:
00001 """
00002 omniORB.registerObjref(@ifid@._NP_RepositoryId, _objref_@ifid@)
00003 _0_@modname@._objref_@ifid@ = _objref_@ifid@
00004 del @ifid@, _objref_@ifid@"""

Definition at line 368 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@imodname@ = omniORB.openModule("@package@@imodname@")
00003 _0_@s_imodname@ = omniORB.openModule("@package@@s_imodname@")"""

Definition at line 299 of file pythonIDL.py.

Initial value:
00001 """\
00002 @ifid@._d_@opname@ = (@inds@, @outds@, @excs@@options@)"""

Definition at line 339 of file pythonIDL.py.

Definition at line 753 of file pythonIDL.py.

Initial value:
00001 """\
00002 # DO NOT EDIT THIS FILE!
00003 #
00004 # Python module @module@ generated by omniidl
00005 
00006 import omniORB
00007 omniORB.updateModule("@package@@module@")
00008 
00009 # ** 1. Stub files contributing to this module
00010 
00011 # ** 2. Sub-modules
00012 
00013 # ** 3. End"""

Definition at line 249 of file pythonIDL.py.

Initial value:
00001 """
00002 # Recursive struct @sname@
00003 _d_@sname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 _0_@scope@._d_@sname@ = _d_@sname@
00005 omniORB.typeMapping["@repoId@"] = _d_@sname@"""

Definition at line 452 of file pythonIDL.py.

Initial value:
00001 """
00002 # Recursive struct @sname@
00003 _0_@modname@._d_@sname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@sname@"""

Definition at line 447 of file pythonIDL.py.

Initial value:
00001 """
00002 # Recursive union @uname@
00003 _d_@uname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 _0_@scope@._d_@uname@ = _d_@uname@
00005 omniORB.typeMapping["@repoId@"] = _d_@uname@"""

Definition at line 542 of file pythonIDL.py.

Initial value:
00001 """
00002 # Recursive union @uname@
00003 _0_@modname@._d_@uname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@uname@"""

Definition at line 537 of file pythonIDL.py.

Initial value:
00001 """
00002 # @ifid@ skeleton
00003 __name__ = "@package@@s_modname@"
00004 class @ifid@ (@inherits@):
00005     _NP_RepositoryId = _0_@modname@.@ifid@._NP_RepositoryId
00006 """

Definition at line 373 of file pythonIDL.py.

Initial value:
00001 """
00002 @ifid@._omni_skeleton = @ifid@
00003 _0_@s_modname@.@ifid@ = @ifid@
00004 omniORB.registerSkeleton(@ifid@._NP_RepositoryId, @ifid@)
00005 del @ifid@
00006 __name__ = "@package@@modname@"\
00007 """

Definition at line 386 of file pythonIDL.py.

Initial value:
00001 """\
00002     _omni_op_d.update(@inheritclass@._omni_op_d)"""

Definition at line 383 of file pythonIDL.py.

Initial value:
00001 """
00002     _omni_op_d = @methodmap@"""

Definition at line 380 of file pythonIDL.py.

Initial value:
00001 """
00002 @ifid@._omni_skeleton = @ifid@
00003 """

Definition at line 394 of file pythonIDL.py.

Initial value:
00001 """
00002 # struct @sname@
00003 _0_@scopedname@ = omniORB.newEmptyClass()
00004 class @sname@ (omniORB.StructBase):
00005     _NP_RepositoryId = "@repoId@"
00006 """

Definition at line 458 of file pythonIDL.py.

Initial value:
00001 """\
00002     def __init__(self@mnames@):"""

Definition at line 469 of file pythonIDL.py.

Initial value:
00001 """\
00002     _NP_ClassName = "@cname@"
00003 """

Definition at line 465 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 _d_@sname@  = _0_@scope@._d_@sname@ = (omniORB.tcInternal.tv_struct, @sname@, @sname@._NP_RepositoryId, "@sname@"@mdescs@)"""

Definition at line 485 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 _0_@modname@.@sname@ = @sname@
00004 _0_@modname@._d_@sname@  = (omniORB.tcInternal.tv_struct, @sname@, @sname@._NP_RepositoryId, "@sname@"@mdescs@)"""

Definition at line 475 of file pythonIDL.py.

Initial value:
00001 """\
00002         self.@mname@ = @mname@"""

Definition at line 472 of file pythonIDL.py.

Initial value:
00001 """
00002 _0_@modname@._d_@sname@  = _d_@sname@
00003 _0_@modname@._tc_@sname@ = _tc_@sname@
00004 del @sname@, _d_@sname@, _tc_@sname@"""

Definition at line 493 of file pythonIDL.py.

Initial value:
00001 """\
00002 _tc_@sname@ = omniORB.tcInternal.createTypeCode(_d_@sname@)
00003 omniORB.registerType(@sname@._NP_RepositoryId, _d_@sname@, _tc_@sname@)"""

Definition at line 489 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@._tc_@sname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@sname@)
00003 omniORB.registerType(@sname@._NP_RepositoryId, _0_@modname@._d_@sname@, _0_@modname@._tc_@sname@)
00004 del @sname@"""

Definition at line 480 of file pythonIDL.py.

Definition at line 757 of file pythonIDL.py.

Definition at line 756 of file pythonIDL.py.

dictionary pythonIDL.ttdMap
Initial value:
00001 {
00002     idltype.tk_short:      "omniORB.tcInternal.tv_short",
00003     idltype.tk_long:       "omniORB.tcInternal.tv_long",
00004     idltype.tk_ushort:     "omniORB.tcInternal.tv_ushort",
00005     idltype.tk_ulong:      "omniORB.tcInternal.tv_ulong",
00006     idltype.tk_float:      "omniORB.tcInternal.tv_float",
00007     idltype.tk_double:     "omniORB.tcInternal.tv_double",
00008     idltype.tk_boolean:    "omniORB.tcInternal.tv_boolean",
00009     idltype.tk_char:       "omniORB.tcInternal.tv_char",
00010     idltype.tk_octet:      "omniORB.tcInternal.tv_octet",
00011     idltype.tk_any:        "omniORB.tcInternal.tv_any",
00012     idltype.tk_TypeCode:   "omniORB.tcInternal.tv_TypeCode",
00013     idltype.tk_Principal:  "omniORB.tcInternal.tv_Principal",
00014     idltype.tk_longlong:   "omniORB.tcInternal.tv_longlong",
00015     idltype.tk_ulonglong:  "omniORB.tcInternal.tv_ulonglong",
00016     idltype.tk_wchar:      "omniORB.tcInternal.tv_wchar"
00017 }

Definition at line 2500 of file pythonIDL.py.

Initial value:
00001 """\
00002 _d_@tdname@  = @desc@
00003 _ad_@tdname@ = (omniORB.tcInternal.tv_alias, @tdname@._NP_RepositoryId, "@tdname@", @tddesc@)
00004 _tc_@tdname@ = omniORB.tcInternal.createTypeCode(_ad_@tdname@)
00005 omniORB.registerType(@tdname@._NP_RepositoryId, _ad_@tdname@, _tc_@tdname@)"""

Definition at line 431 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@.@tdname@ = @tdname@
00003 _0_@modname@._d_@tdname@  = @desc@
00004 _0_@modname@._ad_@tdname@ = (omniORB.tcInternal.tv_alias, @tdname@._NP_RepositoryId, "@tdname@", @tddesc@)
00005 _0_@modname@._tc_@tdname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._ad_@tdname@)
00006 omniORB.registerType(@tdname@._NP_RepositoryId, _0_@modname@._ad_@tdname@, _0_@modname@._tc_@tdname@)
00007 del @tdname@"""

Definition at line 423 of file pythonIDL.py.

Initial value:
00001 """\
00002 # typedef ... @tdname@
00003 @tdname@ = omniORB.fixedConstructor("@repoId@", @digits@, @scale@)"""

Definition at line 419 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # typedef ... @tdname@
00004 class @tdname@:
00005     _NP_RepositoryId = "@repoId@"
00006     def __init__(self, *args, **kw):
00007         raise RuntimeError("Cannot construct objects of this type.")"""

Definition at line 404 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # typedef ... @tdname@
00004 class @tdname@ (@parent@):
00005     _NP_RepositoryId = "@repoId@"
00006 """

Definition at line 412 of file pythonIDL.py.

Initial value:
00001 """
00002 # union @uname@
00003 _0_@scopedname@ = omniORB.newEmptyClass()
00004 class @uname@ (omniORB.Union):
00005     _NP_RepositoryId = "@repoId@"\
00006 """

Definition at line 548 of file pythonIDL.py.

Initial value:
00001 """\
00002     _NP_ClassName = "@cname@"
00003 """

Definition at line 555 of file pythonIDL.py.

Initial value:
00001 """
00002 @uname@._m_to_d = {@m_to_d@}
00003 @uname@._d_to_m = {@d_to_m@}
00004 @uname@._def_m  = @def_m@
00005 @uname@._def_d  = @def_d@
00006 
00007 _m_@uname@  = (@m_un@,)
00008 _d_@uname@  = _0_@scope@._d_@uname@ = (omniORB.tcInternal.tv_union, @uname@, @uname@._NP_RepositoryId, "@uname@", @stype@, @defpos@, _m_@uname@, @m_def@, {@d_map@})"""

Definition at line 575 of file pythonIDL.py.

Initial value:
00001 """
00002 _0_@modname@.@uname@ = @uname@
00003 
00004 @uname@._m_to_d = {@m_to_d@}
00005 @uname@._d_to_m = {@d_to_m@}
00006 @uname@._def_m  = @def_m@
00007 @uname@._def_d  = @def_d@
00008 
00009 _0_@modname@._m_@uname@  = (@m_un@,)
00010 _0_@modname@._d_@uname@  = (omniORB.tcInternal.tv_union, @uname@, @uname@._NP_RepositoryId, "@uname@", @stype@, @defpos@, _0_@modname@._m_@uname@, @m_def@, {@d_map@})"""

Definition at line 559 of file pythonIDL.py.

Initial value:
00001 """\
00002 _tc_@uname@ = omniORB.tcInternal.createTypeCode(_d_@uname@)
00003 omniORB.registerType(@uname@._NP_RepositoryId, _d_@uname@, _tc_@uname@)"""

Definition at line 584 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@._tc_@uname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@uname@)
00003 omniORB.registerType(@uname@._NP_RepositoryId, _0_@modname@._d_@uname@, _0_@modname@._tc_@uname@)
00004 del @uname@"""

Definition at line 570 of file pythonIDL.py.

Initial value:
00001 {
00002     idltype.tk_longdouble: "long double",
00003 }

Definition at line 2518 of file pythonIDL.py.

Initial value:
00001 """\
00002   -Wbstdout       Send generated stubs to stdout rather than a file
00003   -Wbinline       Output stubs for #included files in line with the main file
00004   -Wbfactories    Register value factories for all valuetypes
00005   -Wbpackage=p    Put both Python modules and stub files in package p
00006   -Wbmodules=p    Put Python modules in package p
00007   -Wbstubs=p      Put stub files in package p
00008   -Wbextern=f:p   Assume Python stub file for file f is in package p.
00009   -Wbglobal=g     Module to use for global IDL scope (default _GlobalIDL)"""

Definition at line 235 of file pythonIDL.py.

Initial value:
00001 """
00002 # valuetype @vname@
00003 _0_@modname@._d_@vname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@vname@
00005 _0_@modname@.@vname@ = omniORB.newEmptyClass()
00006 
00007 class @vname@ (@inherits@):
00008     _NP_RepositoryId = "@repoId@"
00009 
00010     def __init__(self, *args, **kwargs):
00011         if args:
00012             if len(args) != @arglen@:
00013                 raise TypeError("@vname@() takes @arglen@ argument@s@ "
00014                                 "(%d given)" % len(args))
00015             @set_args@
00016         if kwargs:
00017             self.__dict__.update(kwargs)
00018 """

Definition at line 620 of file pythonIDL.py.

Initial value:
00001 """\
00002 _0_@modname@.@vname@ = @vname@
00003 _0_@modname@._d_@vname@  = (omniORB.tcInternal.tv_value, @vname@, @vname@._NP_RepositoryId, "@vname@", @modifier@, @tbaseids@, @basedesc@, @mdescs@)
00004 _0_@modname@._tc_@vname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@vname@)
00005 omniORB.registerType(@vname@._NP_RepositoryId, _0_@modname@._d_@vname@, _0_@modname@._tc_@vname@)
00006 del @vname@
00007 """

Definition at line 651 of file pythonIDL.py.

Initial value:
00001 """\
00002 # forward valuetype @vname@
00003 _0_@modname@._d_@vname@ = (omniORB.tcInternal.tv__indirect, ["@repoId@"])
00004 omniORB.typeMapping["@repoId@"] = _0_@modname@._d_@vname@
00005 """

Definition at line 614 of file pythonIDL.py.

Initial value:
00001 """
00002 omniORB.registerObjref(@ifid@._NP_RepositoryId, _objref_@ifid@)
00003 _0_@modname@._objref_@ifid@ = _objref_@ifid@
00004 del _objref_@ifid@"""

Definition at line 659 of file pythonIDL.py.

Initial value:
00001 """\
00002 omniORB.registerValueFactory(@vname@._NP_RepositoryId, @vname@)
00003 """

Definition at line 647 of file pythonIDL.py.

Initial value:
00001 """\
00002 class @vname@ (@inherits@):
00003     _NP_RepositoryId = "@repoId@"
00004 
00005     def __init__(self, *args, **kwargs):
00006         raise RuntimeError("Cannot construct objects of this type.")
00007 """

Definition at line 639 of file pythonIDL.py.

Initial value:
00001 """\
00002 
00003 # valuebox @boxname@
00004 class @boxname@:
00005     _NP_RepositoryId = "@repoId@"
00006     def __init__(self, *args, **kw):
00007         raise RuntimeError("Cannot construct objects of this type.")
00008 
00009 _0_@modname@.@boxname@ = @boxname@
00010 _0_@modname@._d_@boxname@  = (omniORB.tcInternal.tv_value_box, @boxname@, @boxname@._NP_RepositoryId, "@boxname@", @boxdesc@)
00011 _0_@modname@._tc_@boxname@ = omniORB.tcInternal.createTypeCode(_0_@modname@._d_@boxname@)
00012 omniORB.registerType(@boxname@._NP_RepositoryId, _0_@modname@._d_@boxname@, _0_@modname@._tc_@boxname@)
00013 omniORB.registerValueFactory(@boxname@._NP_RepositoryId, @boxname@)
00014 del @boxname@
00015 """

Definition at line 665 of file pythonIDL.py.