docs: def import_mod_attr(path):
      """
      Import string format module, e.g. 'uliweb.orm' or an object
      return module object and object
      """
      import inspect
  
      if isinstance(path, (str, unicode)):
          v = path.split(':')
          if len(v) == 1:
              module, func = path.rsplit('.', 1)
          else:
              module, func = v
          mod = __import__(module, fromlist=['*'])
          f = mod
          for x in func.split('.'):
              try:
                  f = getattr(f, x)
              except:
                  raise AttributeError("Get %s attribute according %s error" % (x, path))
      else:
          f = path
          mod = inspect.getmodule(path)
      return mod, f