Ignore:
Timestamp:
16/08/12 13:23:10 (8 years ago)
Author:
mnagni
Message:

Incomplete - # 22528: Migration of FAtCat Open Search link for HPFeld
 http://team.ceda.ac.uk/trac/ceda/ticket/22528
Incomplete - # 22534: Add versiojn number to the gui page
 http://team.ceda.ac.uk/trac/ceda/ticket/22534

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/cedaMoles/libs/epb.py

    r8493 r8522  
    202202 
    203203    @classmethod 
    204     def deleteInstance(cls, instance, session): 
    205         """ 
    206             Deletes a new object. 
    207             @param instance: the migration object to be deleted 
    208             @param session: an sqlalchemy Session object. If None (default) the method creates  
     204    def deleteInstance(cls, instance, session, commit = False): 
     205        """ 
     206            Deletes an object. 
     207             
     208            **Parameters** 
     209            * `object` **instance** 
     210                the object to delete            
     211            * `SQLAlchemy.Session` **session** 
     212                the session associated with the object to delete                 
     213            * `bool` **commit** 
     214                Defines if the delete operation has to be immediately committed.  
     215                    Default is `False` 
    209216        """         
    210217        session.delete(instance) 
    211         session.commit() 
     218        if commit: 
     219            session.commit() 
    212220 
    213221    @classmethod 
Note: See TracChangeset for help on using the changeset viewer.