Esempio n. 1
0
 def render_user_fixed_ip(self, ctx, data):
     try:
         return uihelpers.get_user_fixed_ip(self.get_logged_in_username())
     except:
         return ''
Esempio n. 2
0
 def render_multiple_connections_not_ok(self, ctx, data):
     username = self.get_logged_in_username()
     if (uihelpers.find_user(username) is not None) and (uihelpers.get_user_fixed_ip(username) is not None):
         return ctx.tag
     else:
         return ''