(self, cr, uid, context=None)
return None
Returns ID of section based on the value of 'section_id'
            context key, or None if it cannot be resolved to a single
            Sales Team.
Returns ID of section based on the value of 'section_id'
            context key, or None if it cannot be resolved to a single
            Sales Team.
Returns ID of section based on the value of section_id context key or None if it cannot be resolved to a single Sales Team .
def _resolve_section_id_from_context(self, cr, uid, context=None):
        """ Returns ID of section based on the value of 'section_id'
            context key, or None if it cannot be resolved to a single
            Sales Team.
        """
        if context is None:
            context = {}
        if type(context.get('default_section_id')) in (int, long):
            return context.get('default_section_id')
        if isinstance(context.get('default_section_id'), basestring):
            section_ids = self.pool.get('crm.case.section').name_search(cr, uid, name=context['default_section_id'], context=context)
            if len(section_ids) == 1:
                return int(section_ids[0][0])
        return None
def _resolve_section_id_from_context ( self , cr , uid , context = None ) : if context is None : context = { } if type ( context . get ( 'default_section_id' ) ) in ( int , long ) : return context . get ( 'default_section_id' ) if isinstance ( context . get ( 'default_section_id' ) , basestring ) : section_ids = self . pool . get ( 'crm.case.section' ) . name_search ( cr , uid , name = context [ 'default_section_id' ] , context = context ) if len ( section_ids ) == 1 : return int ( section_ids [ 0 ] [ 0 ] ) return None