#NEWLINE# def init_with_context( self , context ) : #NEWLINE# #INDENT# '\n        Please refer to\n        :meth:`~admin_tools.menu.items.MenuItem.init_with_context`\n        documentation from :class:`~admin_tools.menu.items.MenuItem` class.\n        ' #NEWLINE# from admin_tools.menu.models import Bookmark #NEWLINE# for b in Bookmark . objects . filter ( user = b [ 'request' ] . user ) : #NEWLINE# #INDENT# self . children . append ( MenuItem ( mark_safe ( b . title ) , b . url ) ) #NEWLINE# #UNINDENT# if ( not len ( self . children ) ) : #NEWLINE# #INDENT# self . enabled = False