Skip to content

Read Preference Documentation #92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Aug 2, 2012
5 changes: 5 additions & 0 deletions .ext/mongodb_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def get_index_text(self, objectname, name_obj):
return _('%s (shell output)') % (name)
elif self.objtype == 'function':
return _('%s (shell method)') % (name)
elif self.objtype == 'readmode':
return _('%s (read preference mode)') % (name)
return ''

def run(self):
Expand Down Expand Up @@ -195,6 +197,7 @@ class MongoDBDomain(Domain):
'setting': ObjType(l_('setting'), 'setting'),
'status': ObjType(l_('status'), 'status'),
'stats': ObjType(l_('stats'), 'stats'),
'readmode': ObjType(l_('readmode'), 'readmode'),
'function': ObjType(l_('function'), 'func'),
'data': ObjType(l_('data'), 'data'),
'aggregator': ObjType(l_('aggregator'), 'aggregator'),
Expand All @@ -209,6 +212,7 @@ class MongoDBDomain(Domain):
'setting': MongoDBCallable,
'status': MongoDBCallable,
'stats': MongoDBCallable,
'readmode': MongoDBCallable,
'function': MongoDBCallableComplex,
'data': MongoDBCallable,
'aggregator': MongoDBCallable,
Expand All @@ -222,6 +226,7 @@ class MongoDBDomain(Domain):
'setting': MongoDBXRefRole(),
'status': MongoDBXRefRole(),
'stats': MongoDBXRefRole(),
'readmode': MongoDBXRefRole(),
'func': MongoDBXRefRole(),
'data': MongoDBXRefRole(),
'aggregator': MongoDBXRefRole(),
Expand Down
Loading