Lines Matching refs:modname
111 modname = self.options.get(
116 modname = None
137 signode['module'] = modname
154 modname = self.options.get(
156 if modname and modname != 'exceptions':
157 nodetext = modname + separators[self.objtype]
192 def get_index_text(self, modname, name): argument
203 modname = ''
205 modname = self.options.get(
210 prefix = modname and modname + '::' or ''
212 prefix = modname and modname + separator or ''
214 prefix = modname and modname + separator or ''
232 indextext = self.get_index_text(modname, name_cls)
254 def get_index_text(self, modname, name_cls): argument
256 if not modname:
258 return _('%s() (module function in %s)') % (name_cls[0], modname)
268 def get_index_text(self, modname, name_cls): argument
283 def get_index_text(self, modname, name_cls): argument
290 if modname:
291 return _('%s() (in module %s)') % (name, modname)
294 if modname and add_modules:
295 return _('%s() (%s::%s method)') % (methname, modname,
311 def get_index_text(self, modname, name_cls): argument
313 if not modname:
315 return _('%s (class in %s)') % (name_cls[0], modname)
347 def get_index_text(self, modname, name_cls): argument
355 if modname:
356 return _('%s() (%s.%s class method)') % (methname, modname,
365 if modname and add_modules:
366 return _('%s (%s.%s attribute)') % (attrname, modname, clsname)
398 modname = self.arguments[0].strip()
400 env.temp_data['rb:module'] = modname
401 env.domaindata['rb']['modules'][modname] = \
404 targetnode = nodes.target('', '', ids=['module-' + modname], ismod=True)
417 indextext = _('%s (module)') % modname
419 'single', indextext, 'module-' + modname, modname)])
446 modname = self.arguments[0].strip()
447 if modname == 'None':
450 env.temp_data['rb:module'] = modname
499 for modname, (docname, synopsis, platforms, deprecated) in modules:
504 if modname.startswith(ignore):
505 modname = modname[len(ignore):]
512 if not modname:
513 modname, stripped = stripped, ''
515 entries = content.setdefault(modname[0].lower(), [])
517 package = modname.split('::')[0]
518 if package != modname:
532 entries.append([stripped + modname, subtype, docname,
533 'module-' + stripped + modname, platforms,
535 prev_modname = modname
604 for modname, (fn, _, _, _) in list(self.data['modules'].items()):
606 del self.data['modules'][modname]
608 def find_obj(self, env, modname, classname, name, type, searchorder=0): argument
624 if modname and classname and \
625 modname + '::' + classname + '#' + name in objects:
626 newname = modname + '::' + classname + '#' + name
627 elif modname and classname and \
628 modname + '::' + classname + '.' + name in objects:
629 newname = modname + '::' + classname + '.' + name
630 elif modname and modname + '::' + name in objects:
631 newname = modname + '::' + name
632 elif modname and modname + '#' + name in objects:
633 newname = modname + '#' + name
634 elif modname and modname + '.' + name in objects:
635 newname = modname + '.' + name
649 elif modname and modname + '::' + name in objects:
650 newname = modname + '::' + name
651 elif modname and modname + '#' + name in objects:
652 newname = modname + '#' + name
653 elif modname and modname + '.' + name in objects:
654 newname = modname + '.' + name
655 elif modname and classname and \
656 modname + '::' + classname + '#' + name in objects:
657 newname = modname + '::' + classname + '#' + name
658 elif modname and classname and \
659 modname + '::' + classname + '.' + name in objects:
660 newname = modname + '::' + classname + '.' + name
684 modname = node.get('rb:module')
687 name, obj = self.find_obj(env, modname, clsname,
696 for modname, info in _iteritems(self.data['modules']):
697 yield (modname, modname, 'module', info[0], 'module-' + modname, 0)