Ejemplo n.º 1
0
 def render_multiple_connections_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 None):
         return ctx.tag
     else:
         return ''
Ejemplo n.º 2
0
 def render_user_fixed_ip(self, ctx, data):
     try:
         return uihelpers.get_user_fixed_ip(self.get_logged_in_username())
     except:
         return ''
Ejemplo n.º 3
0
 def render_user_fixed_ip(self, ctx, data):
     try:
         return uihelpers.get_user_fixed_ip(self.get_logged_in_username())
     except:
         return ''
Ejemplo n.º 4
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 ''