@@ -136,6 +136,8 @@ def get_index_text(self, objectname, name_obj):
136
136
return _ ('%s (JavaScript shell macro)' ) % (name )
137
137
elif self .objtype == 'limit' :
138
138
return _ ('%s (MongoDB system limit)' ) % (name )
139
+ elif self .objtype == 'bsontype' :
140
+ return _ ('%s (BSON type)' ) % (name )
139
141
return ''
140
142
141
143
def run (self ):
@@ -213,6 +215,7 @@ class MongoDBDomain(Domain):
213
215
'error' : ObjType (l_ ('error' ), 'error' ),
214
216
'macro' : ObjType (l_ ('macro' ), 'macro' ),
215
217
'limit' : ObjType (l_ ('limit' ), 'limit' ),
218
+ 'bsontype' : ObjType (l_ ('bsontype' ), 'bsontype' ),
216
219
}
217
220
218
221
directives = {
@@ -230,6 +233,7 @@ class MongoDBDomain(Domain):
230
233
'error' : MongoDBObject ,
231
234
'macro' : MongoDBObject ,
232
235
'limit' : MongoDBObject ,
236
+ 'bsontype' : MongoDBObject ,
233
237
}
234
238
roles = {
235
239
'dbcommand' : MongoDBXRefRole (),
@@ -246,6 +250,7 @@ class MongoDBDomain(Domain):
246
250
'error' : MongoDBXRefRole (),
247
251
'macro' : MongoDBXRefRole (),
248
252
'limit' : MongoDBXRefRole (),
253
+ 'bsontype' : MongoDBXRefRole (),
249
254
}
250
255
initial_data = {
251
256
'objects' : {}, # fullname -> docname, objtype
0 commit comments