Changeset 96:60afb9ce1dee in livinglogic.python.nightshade

Show
Ignore:
Timestamp:
03/09/09 17:18:07 (9 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Tags:
rel-0-14-1
Message:

Call now does a commit.

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • NEWS.rst

    r92 r96  
     1Changes in 0.14.1 (released 03/09/2009) 
     2--------------------------------------- 
     3 
     4*   :class:`ll.nightshade.Call` now commits any changes that might have been done 
     5    by the function or procedure. 
     6 
     7 
    18Changes in 0.14 (released 01/14/2009) 
    29------------------------------------- 
    310 
    411*   :class:`ll.nightshade.Connection` has new methods :meth:`commit`, 
    5      :meth:`rollback`, :meth:`close` and  :meth:`cancel`. 
     12    :meth:`rollback`, :meth:`close` and  :meth:`cancel`. 
    613 
    714 
  • setup.py

    r94 r96  
    2020 
    2121CLASSIFIERS=""" 
    22 Development Status :: 3 - Alpha 
     22Development Status :: 4 - Beta 
    2323Environment :: Web Environment 
    2424Intended Audience :: Developers 
     
    6060args = dict( 
    6161    name="ll-nightshade", 
    62     version="0.14", 
     62    version="0.14.1", 
    6363    description="Serve the output of Oracle functions/procedures with CherryPy", 
    6464    long_description=descr, 
  • src/ll/nightshade.py

    r92 r96  
    233233            try: 
    234234                if isinstance(self.callable, orasql.Procedure): 
    235                     return (None, self.callable(cursor, *args, **kwargs)) 
     235                    result = (None, self.callable(cursor, *args, **kwargs)) 
    236236                else: 
    237                     return self.callable(cursor, *args, **kwargs) 
    238                 return (body, result) 
     237                    result = self.callable(cursor, *args, **kwargs) 
     238                cursor.connection.commit() 
     239                return result 
    239240            except orasql.DatabaseError, exc: 
    240241                if exc.args: