[Pkg-corba-commits] r147 - in /trunk/python-omniorb: ./ contrib/RPMs/ debian/ mk/ modules/ omniidl_be/ python/omniORB/

flub-guest at users.alioth.debian.org flub-guest at users.alioth.debian.org
Wed Mar 26 22:26:17 UTC 2008


Author: flub-guest
Date: Wed Mar 26 22:26:17 2008
New Revision: 147

URL: http://svn.debian.org/wsvn/pkg-corba/?sc=1&rev=147
Log:
Upgrade to 3.2.

Added:
    trunk/python-omniorb/THIS_IS_OMNIORBPY_3_2
      - copied unchanged from r146, branches/upstream/python-omniorb/current/THIS_IS_OMNIORBPY_3_2
    trunk/python-omniorb/bugfixes-31.xml
      - copied unchanged from r146, branches/upstream/python-omniorb/current/bugfixes-31.xml
Removed:
    trunk/python-omniorb/THIS_IS_OMNIORBPY_3_0
Modified:
    trunk/python-omniorb/README.txt
    trunk/python-omniorb/ReleaseNotes.txt
    trunk/python-omniorb/configure
    trunk/python-omniorb/configure.ac
    trunk/python-omniorb/contrib/RPMs/omniORBpy.spec
    trunk/python-omniorb/contrib/RPMs/omniORBpy_new.spec
    trunk/python-omniorb/debian/changelog
    trunk/python-omniorb/mk/version.mk
    trunk/python-omniorb/modules/pyServant.cc
    trunk/python-omniorb/omniidl_be/python.py
    trunk/python-omniorb/python/omniORB/__init__.py
    trunk/python-omniorb/update.log

Modified: trunk/python-omniorb/README.txt
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/README.txt?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/README.txt (original)
+++ trunk/python-omniorb/README.txt Wed Mar 26 22:26:17 2008
@@ -1,7 +1,7 @@
 omniORBpy 3
 ===========
 
-This is omniORBpy 3.1.
+This is omniORBpy 3.2.
 
 omniORBpy is a robust high-performance CORBA ORB for Python.
 

Modified: trunk/python-omniorb/ReleaseNotes.txt
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/ReleaseNotes.txt?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/ReleaseNotes.txt (original)
+++ trunk/python-omniorb/ReleaseNotes.txt Wed Mar 26 22:26:17 2008
@@ -1,10 +1,16 @@
 RELEASE NOTES
 =============
 
-This is omniORBpy 3.1.
+This is omniORBpy 3.2.
 
 See README.txt for building instructions.
 See the documentation in the doc directory for more information.
+
+
+Changes since omniORBpy 3.1
+---------------------------
+
+ - Bug fixes. See bugfixes-31.xml.
 
 
 Changes since omniORBpy 3.0

Modified: trunk/python-omniorb/configure
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/configure?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/configure (original)
+++ trunk/python-omniorb/configure Wed Mar 26 22:26:17 2008
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for omniORBpy 3.1.
+# Generated by GNU Autoconf 2.59 for omniORBpy 3.2.
 #
 # Report bugs to <bugs at omniorb-support.com>.
 #
@@ -269,8 +269,8 @@
 # Identity of this package.
 PACKAGE_NAME='omniORBpy'
 PACKAGE_TARNAME='omniorbpy'
-PACKAGE_VERSION='3.1'
-PACKAGE_STRING='omniORBpy 3.1'
+PACKAGE_VERSION='3.2'
+PACKAGE_STRING='omniORBpy 3.2'
 PACKAGE_BUGREPORT='bugs at omniorb-support.com'
 
 ac_unique_file="python/omniORB/CORBA.py"
@@ -751,7 +751,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures omniORBpy 3.1 to adapt to many kinds of systems.
+\`configure' configures omniORBpy 3.2 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -812,7 +812,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of omniORBpy 3.1:";;
+     short | recursive ) echo "Configuration of omniORBpy 3.2:";;
    esac
   cat <<\_ACEOF
 
@@ -932,7 +932,7 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-omniORBpy configure 3.1
+omniORBpy configure 3.2
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -946,7 +946,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by omniORBpy $as_me 3.1, which was
+It was created by omniORBpy $as_me 3.2, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -4065,7 +4065,7 @@
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by omniORBpy $as_me 3.1, which was
+This file was extended by omniORBpy $as_me 3.2, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -4120,7 +4120,7 @@
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-omniORBpy config.status 3.1
+omniORBpy config.status 3.2
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 

Modified: trunk/python-omniorb/configure.ac
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/configure.ac?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/configure.ac (original)
+++ trunk/python-omniorb/configure.ac Wed Mar 26 22:26:17 2008
@@ -1,5 +1,5 @@
 dnl -*- M4 -*-
-AC_INIT(omniORBpy, 3.1, bugs at omniorb-support.com)
+AC_INIT(omniORBpy, 3.2, bugs at omniorb-support.com)
 
 AC_PREREQ(2.52)
 AC_CONFIG_SRCDIR(python/omniORB/CORBA.py)

Modified: trunk/python-omniorb/contrib/RPMs/omniORBpy.spec
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/contrib/RPMs/omniORBpy.spec?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/contrib/RPMs/omniORBpy.spec (original)
+++ trunk/python-omniorb/contrib/RPMs/omniORBpy.spec Wed Mar 26 22:26:17 2008
@@ -1,6 +1,6 @@
 Summary:  Python Language Mapping for omniORB
 Name:     omniORBpy
-Version:  3.1
+Version:  3.2
 Release:  1
 License:  GPL / LGPL
 Group:    System/Libraries

Modified: trunk/python-omniorb/contrib/RPMs/omniORBpy_new.spec
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/contrib/RPMs/omniORBpy_new.spec?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/contrib/RPMs/omniORBpy_new.spec (original)
+++ trunk/python-omniorb/contrib/RPMs/omniORBpy_new.spec Wed Mar 26 22:26:17 2008
@@ -4,7 +4,7 @@
 
 Summary:   Python Language Mapping for omniORB
 Name:      %{_name}
-Version:   3.1
+Version:   3.2
 Release:   1
 License:   GPL / LGPL
 Group:     System/Libraries

Modified: trunk/python-omniorb/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/debian/changelog?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/debian/changelog (original)
+++ trunk/python-omniorb/debian/changelog Wed Mar 26 22:26:17 2008
@@ -1,13 +1,14 @@
-python-omniorb (3.1-2) UNRELEASED; urgency=low
+python-omniorb (3.2-1) UNRELEASED; urgency=low
 
   [ Floris Bruynooghe ]
   * Add debian/watch file.
+  * New upstream release.
 
   [ Thomas Girard ]
   * Ignore failure of pycentral workaround for #452227 now that it is fixed.
     Thanks to Matthias Klose for reporting this. Closes: #472020.
 
- -- Thomas Girard <thomas.g.girard at free.fr>  Sat, 22 Mar 2008 09:59:47 +0000
+ -- Floris Bruynooghe <floris.bruynooghe at gmail.com>  Wed, 26 Mar 2008 22:17:38 +0000
 
 python-omniorb (3.1-1) unstable; urgency=low
 

Modified: trunk/python-omniorb/mk/version.mk
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/mk/version.mk?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/mk/version.mk (original)
+++ trunk/python-omniorb/mk/version.mk Wed Mar 26 22:26:17 2008
@@ -4,12 +4,12 @@
 OMNITHREAD_MAJOR_VERSION = $(word 1,$(subst ., ,$(OMNITHREAD_VERSION)))
 OMNITHREAD_MINOR_VERSION = $(word 2,$(subst ., ,$(OMNITHREAD_VERSION)))
 
-OMNIORB_VERSION = 4.1.1
+OMNIORB_VERSION = 4.1.2
 OMNIORB_VERSION_HEX = 0x040101F1
 OMNIORB_MAJOR_VERSION = $(word 1,$(subst ., ,$(OMNIORB_VERSION)))
 OMNIORB_MINOR_VERSION = $(word 2,$(subst ., ,$(OMNIORB_VERSION)))
 OMNIORB_MICRO_VERSION = $(word 3,$(subst ., ,$(OMNIORB_VERSION)))
 
-OMNIPY_VERSION = 3.1
+OMNIPY_VERSION = 3.2
 OMNIPY_MAJOR = $(word 1,$(subst ., ,$(OMNIPY_VERSION)))
 OMNIPY_MINOR = $(word 2,$(subst ., ,$(OMNIPY_VERSION)))

Modified: trunk/python-omniorb/modules/pyServant.cc
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/modules/pyServant.cc?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/modules/pyServant.cc (original)
+++ trunk/python-omniorb/modules/pyServant.cc Wed Mar 26 22:26:17 2008
@@ -27,9 +27,13 @@
 // Description:
 //    Implementation of Python servant object
 
-// $Id: pyServant.cc,v 1.1.4.9 2006/07/05 10:47:14 dgrisby Exp $
+// $Id: pyServant.cc,v 1.1.4.10 2008/02/01 16:29:17 dgrisby Exp $
 
 // $Log: pyServant.cc,v $
+// Revision 1.1.4.10  2008/02/01 16:29:17  dgrisby
+// Error with implementation of operations with names clashing with
+// Python keywords.
+//
 // Revision 1.1.4.9  2006/07/05 10:47:14  dgrisby
 // Propagate exceptions out of _default_POA.
 //
@@ -537,19 +541,26 @@
   const char* op     = pycd->op();
   PyObject*   method = PyObject_GetAttrString(pyservant_, (char*)op);
 
-  if (!method && omni::strMatch(op, "_interface")) {
+  if (!method) {
     PyErr_Clear();
-    method = PyObject_GetAttrString(pyservant_, (char*)"_get_interface");
-  }
-  if (!method) {
-    if (omniORB::trace(1)) {
-      omniORB::logger l;
-      l << "Python servant for `" << repoId_ << "' has no method named `"
-	<< op << "'.\n";
-    }
-    PyErr_Clear();
-    OMNIORB_THROW(NO_IMPLEMENT, NO_IMPLEMENT_NoPythonMethod,
-		  CORBA::COMPLETED_NO);
+    PyObject* word = PyDict_GetItemString(omniPy::pyomniORBwordMap, op);
+    if (word) {
+      // Keyword -- look up mangled name
+      method = PyObject_GetAttr(pyservant_, word);
+    }
+    else if (omni::strMatch(op, "_interface")) {
+      method = PyObject_GetAttrString(pyservant_, (char*)"_get_interface");
+    }
+    if (!method) {
+      if (omniORB::trace(1)) {
+	omniORB::logger l;
+	l << "Python servant for `" << repoId_ << "' has no method named `"
+	  << op << "'.\n";
+      }
+      PyErr_Clear();
+      OMNIORB_THROW(NO_IMPLEMENT, NO_IMPLEMENT_NoPythonMethod,
+		    CORBA::COMPLETED_NO);
+    }
   }
 
   PyObject* args   = pycd->args();
@@ -622,19 +633,26 @@
   const char* op     = pycd->op();
   PyObject*   method = PyObject_GetAttrString(pyservant_, (char*)op);
 
-  if (!method && omni::strMatch(op, "_interface")) {
+  if (!method) {
     PyErr_Clear();
-    method = PyObject_GetAttrString(pyservant_, (char*)"_get_interface");
-  }
-  if (!method) {
-    if (omniORB::trace(1)) {
-      omniORB::logger l;
-      l << "Python servant for `" << repoId_ << "' has no method named `"
-	<< op << "'.\n";
-    }
-    PyErr_Clear();
-    OMNIORB_THROW(NO_IMPLEMENT, NO_IMPLEMENT_NoPythonMethod,
-		  CORBA::COMPLETED_NO);
+    PyObject* word = PyDict_GetItemString(omniPy::pyomniORBwordMap, op);
+    if (word) {
+      // Keyword -- look up mangled name
+      method = PyObject_GetAttr(pyservant_, word);
+    }
+    else if (omni::strMatch(op, "_interface")) {
+      method = PyObject_GetAttrString(pyservant_, (char*)"_get_interface");
+    }
+    if (!method) {
+      if (omniORB::trace(1)) {
+	omniORB::logger l;
+	l << "Python servant for `" << repoId_ << "' has no method named `"
+	  << op << "'.\n";
+      }
+      PyErr_Clear();
+      OMNIORB_THROW(NO_IMPLEMENT, NO_IMPLEMENT_NoPythonMethod,
+		    CORBA::COMPLETED_NO);
+    }
   }
 
   PyObject* in_d   = pycd->in_d_;

Modified: trunk/python-omniorb/omniidl_be/python.py
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/omniidl_be/python.py?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/omniidl_be/python.py (original)
+++ trunk/python-omniorb/omniidl_be/python.py Wed Mar 26 22:26:17 2008
@@ -26,8 +26,12 @@
 #   
 #   Back-end for Python
 
-# $Id: python.py,v 1.33.2.13 2006/10/11 17:44:14 dgrisby Exp $
+# $Id: python.py,v 1.33.2.14 2008/02/01 16:29:17 dgrisby Exp $
 # $Log: python.py,v $
+# Revision 1.33.2.14  2008/02/01 16:29:17  dgrisby
+# Error with implementation of operations with names clashing with
+# Python keywords.
+#
 # Revision 1.33.2.13  2006/10/11 17:44:14  dgrisby
 # None is not a keyword, but it cannot be assigned to.
 #
@@ -1213,10 +1217,11 @@
                                        ifid + '.' + '_d__set_' + attr)
 
             else: # Operation
-                opname = mangle(c.identifier())
+                opname   = c.identifier()
+                m_opname = mangle(opname)
                 
-                methodl.append('"' + opname + '": ' + '_0_' + self.modname + \
-                               '.' + ifid + '.' + '_d_' + opname)
+                methodl.append('"' + opname + '": ' + '_0_' + self.modname +
+                               '.' + ifid + '.' + '_d_' + m_opname)
 
         methodmap = "{" + string.join(methodl, ", ") + "}"
 

Modified: trunk/python-omniorb/python/omniORB/__init__.py
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/python/omniORB/__init__.py?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/python/omniORB/__init__.py (original)
+++ trunk/python-omniorb/python/omniORB/__init__.py Wed Mar 26 22:26:17 2008
@@ -28,8 +28,12 @@
 #    omniORB module -- omniORB specific things
 
 
-# $Id: __init__.py,v 1.30.2.20 2007/10/07 15:30:58 dgrisby Exp $
+# $Id: __init__.py,v 1.30.2.21 2008/02/01 16:29:16 dgrisby Exp $
 # $Log: __init__.py,v $
+# Revision 1.30.2.21  2008/02/01 16:29:16  dgrisby
+# Error with implementation of operations with names clashing with
+# Python keywords.
+#
 # Revision 1.30.2.20  2007/10/07 15:30:58  dgrisby
 # Problems with modules inside packages. Thanks Fabian Knittel.
 #
@@ -1050,6 +1054,9 @@
     import keyword
     for word in keyword.kwlist:
         keywordMapping[word] = "_" + word
+
+    keywordMapping["None"] = "_None"
+
     del keyword
 except ImportError:
     pass

Modified: trunk/python-omniorb/update.log
URL: http://svn.debian.org/wsvn/pkg-corba/trunk/python-omniorb/update.log?rev=147&op=diff
==============================================================================
--- trunk/python-omniorb/update.log (original)
+++ trunk/python-omniorb/update.log Wed Mar 26 22:26:17 2008
@@ -1,3 +1,35 @@
+Thu Feb 14 14:20:23 GMT 2008 dgrisby
+====================================
+
+- This is omniORBpy 3.2.
+
+
+Thu Feb 14 13:33:21 GMT 2008 dgrisby
+====================================
+
+- Updates for 3.2 release.
+
+README.txt
+ReleaseNotes.txt
+configure
+configure.ac
+contrib/RPMs/omniORBpy.spec
+contrib/RPMs/omniORBpy_new.spec
+mk/version.mk
+
+
+Fri Feb  1 16:22:20 GMT 2008 dgrisby
+====================================
+
+- Error with implementation of operations with names clashing with
+  Python keywords.
+
+bugfixes-31.xml
+modules/pyServant.cc
+omniidl_be/python.py
+python/omniORB/__init__.py
+
+
 Sun Oct  7 16:38:58 BST 2007 dgrisby
 ====================================
 




More information about the Pkg-corba-commits mailing list