Source

iredadmin-ose / libs / pgsql / domain.py

Diff from to

File libs/pgsql/domain.py

     def getDomainAdmins(self, domain, mailOnly=False):
         domain = str(domain)
 
-        if not iredutils.isDomain(domain):
+        if not iredutils.is_domain(domain):
             return (False, 'INVALID_DOMAIN_NAME')
 
         try:
 
     @decorators.require_domain_access
     def getCountsOfExistAccountsUnderDomain(self, domain, accountType='user'):
-        if not iredutils.isDomain(domain):
+        if not iredutils.is_domain(domain):
             return (False, 'INVALID_DOMAIN_NAME')
 
         sql_vars = {'domain': domain, }
 
         domains = [str(v).lower()
                    for v in domains
-                   if iredutils.isDomain(v)
+                   if iredutils.is_domain(v)
                   ]
 
         if not domains:
     def simpleProfile(self, domain, columns=[]):
         domain = web.safestr(domain)
 
-        if not iredutils.isDomain(domain):
+        if not iredutils.is_domain(domain):
             return (False, 'INVALID_DOMAIN_NAME')
 
         try:
     def profile(self, domain):
         domain = web.safestr(domain)
 
-        if not iredutils.isDomain(domain):
+        if not iredutils.is_domain(domain):
             return (False, 'INVALID_DOMAIN_NAME')
 
         try:
         cn = data.get('cn', '')
 
         # Check domain name.
-        if not iredutils.isDomain(domain):
+        if not iredutils.is_domain(domain):
             return (False, 'INVALID_DOMAIN_NAME')
 
         # Check whether domain name already exist (domainName, domainAliasName).
         connutils = connUtils.Utils()
-        if connutils.isDomainExists(domain):
+        if connutils.is_domain_exists(domain):
             return (False, 'ALREADY_EXISTS')
 
         # Add domain in database.