hooks/pre_gen_project.py
def is_group_slug_available(self, group_slug):
        """Tell if group name is available."""
        for p in self.gl.groups.list(search=self.group_slug):
            if p.path == group_slug:
                return False
        for u in self.gl.users.list(username=group_slug):
            if u.web_url.replace(self.URL, "").casefold() == group_slug.casefold():
                return False
        return True
Tell if group name is available.
Tell if group name is available.
Tell if group name is available .
def is_group_slug_available(self, group_slug):
        for p in self.gl.groups.list(search=self.group_slug):
            if p.path == group_slug:
                return False
        for u in self.gl.users.list(username=group_slug):
            if u.web_url.replace(self.URL, "").casefold() == group_slug.casefold():
                return False
        return True
def is_group_slug_available ( self , group_slug ) : for p in self . gl . groups . list ( search = self . group_slug ) : if p . path == group_slug : return False for u in self . gl . users . list ( username = group_slug ) : if u . web_url . replace ( self . URL , "" ) . casefold ( ) == group_slug . casefold ( ) : return False return True
Tell if group name is available.
Tell if group name is available .
"""Tell if group name is available."""
self
group_slug