parameters: (self, name)
return_statement: return SelectionTool.inheritedAttribute('_aq_dynamic')(self, name)
docstring: Generate viewSearchRelatedDocumentDialog0,
                   viewSearchRelatedDocumentDialog1,... if necessary
docstring_summary: Generate viewSearchRelatedDocumentDialog0,
                   viewSearchRelatedDocumentDialog1,... if necessary
docstring_tokens: Generate viewSearchRelatedDocumentDialog0 viewSearchRelatedDocumentDialog1 ... if necessary
function: def _aq_dynamic(self, name):
        """
          Generate viewSearchRelatedDocumentDialog0,
                   viewSearchRelatedDocumentDialog1,... if necessary
        """
        aq_base_name = getattr(aq_base(self), name, None)
        if aq_base_name == None:
          DYNAMIC_METHOD_NAME = 'viewSearchRelatedDocumentDialog'
          method_name_length = len(DYNAMIC_METHOD_NAME)
  
          zope_security = '__roles__'
          if (name[:method_name_length] == DYNAMIC_METHOD_NAME) and \
             (name[-len(zope_security):] != zope_security):
            method_count_string_list = name[method_name_length:].split('_')
            method_count_string = method_count_string_list[0]
            # be sure that method name is correct
            try:
              method_count = string.atoi(method_count_string)
            except TypeError:
              return aq_base_name
            else:
              if len(method_count_string_list) > 1:
                # be sure that method name is correct
                try:
                  sub_index = string.atoi(method_count_string_list[1])
                except TypeError:
                  return aq_base_name
              else:
                sub_index = None
  
              # generate dynamicaly needed forwarder methods
              def viewSearchRelatedDocumentDialogWrapper(self, form_id,
                                                         REQUEST=None, **kw):
                """
                  viewSearchRelatedDocumentDialog Wrapper
                """
  #               LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw',
  #                   0, kw)
                return self.viewSearchRelatedDocumentDialog(
                                     method_count, form_id,
                                     REQUEST=REQUEST, sub_index=sub_index, **kw)
              setattr(self.__class__, name,
                      viewSearchRelatedDocumentDialogWrapper)
  
              klass = aq_base(self).__class__
              security_property_id = '%s__roles__' % (name, )
              # Declare method as public
              setattr(klass, security_property_id, None)
  
              return getattr(self, name)
        return SelectionTool.inheritedAttribute('_aq_dynamic')(self, name)
function_tokens: def _aq_dynamic ( self , name ) : aq_base_name = getattr ( aq_base ( self ) , name , None ) if aq_base_name == None : DYNAMIC_METHOD_NAME = 'viewSearchRelatedDocumentDialog' method_name_length = len ( DYNAMIC_METHOD_NAME ) zope_security = '__roles__' if ( name [ : method_name_length ] == DYNAMIC_METHOD_NAME ) and ( name [ - len ( zope_security ) : ] != zope_security ) : method_count_string_list = name [ method_name_length : ] . split ( '_' ) method_count_string = method_count_string_list [ 0 ] # be sure that method name is correct try : method_count = string . atoi ( method_count_string ) except TypeError : return aq_base_name else : if len ( method_count_string_list ) > 1 : # be sure that method name is correct try : sub_index = string . atoi ( method_count_string_list [ 1 ] ) except TypeError : return aq_base_name else : sub_index = None # generate dynamicaly needed forwarder methods def viewSearchRelatedDocumentDialogWrapper ( self , form_id , REQUEST = None , * * kw ) : """
                  viewSearchRelatedDocumentDialog Wrapper
                """ #               LOG('SelectionTool.viewSearchRelatedDocumentDialogWrapper, kw', #                   0, kw) return self . viewSearchRelatedDocumentDialog ( method_count , form_id , REQUEST = REQUEST , sub_index = sub_index , * * kw ) setattr ( self . __class__ , name , viewSearchRelatedDocumentDialogWrapper ) klass = aq_base ( self ) . __class__ security_property_id = '%s__roles__' % ( name , ) # Declare method as public setattr ( klass , security_property_id , None ) return getattr ( self , name ) return SelectionTool . inheritedAttribute ( '_aq_dynamic' ) ( self , name )