bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def validate_home_dir(home=home, login=login, system=system, force=force): """ Do some basic but sane tests on the home dir provided. """ | def validate_home_dir(home=home, login=login, system=system, force=force): """ Do some basic but sane tests on the home dir provided. """ | 477,900 |
def validate_home_dir(home=home, login=login, system=system, force=force): """ Do some basic but sane tests on the home dir provided. """ | def validate_home_dir(home=home, login=login, system=system, force=force): """ Do some basic but sane tests on the home dir provided. """ | 477,901 |
def clear_term(): sys.stdout.write(clear) sys.stdout.flush() | defclear_term():sys.stdout.write(clear)sys.stdout.flush() | 477,902 |
def cmdfmt(cmd): '''convert a sequence to a colorized string.''' return styles.stylize(styles.ST_NAME, ' '.join(cmd)) | defcmdfmt(cmd):'''convertasequencetoacolorizedstring.'''returnstyles.stylize(styles.ST_NAME,''.join(cmd)) | 477,903 |
def test_message(msg): """ display a message to stderr. """ sys.stderr.write("%s>>> %s%s\n" % (styles.colors[styles.ST_LOG], msg, styles.colors[styles.ST_NO]) ) | deftest_message(msg):"""displayamessagetostderr."""sys.stderr.write("%s>>>%s%s\n"%(styles.colors[styles.ST_LOG],msg,styles.colors[styles.ST_NO])) | 477,904 |
def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | deflog_and_exec(command,inverse_test=False,result_code=0,comment="",verb=verbose):"""Displayacommand,executeit,andexitifsoemthingwentwrong."""#ifnotcommand.startswith('colordiff'):# command+='%s'%''.join(args)sys.stderr.write("%s>>>running%s%s%s\n"%(styles.colors[styles.ST_LOG],styles.colors[styles.ST_PATH],command,sty... | 477,905 |
def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', r' [D/T] ', str) | defstrip_dates(str):"""stripdatesfromwarningsandtraces,elseoutputsandreferencesalwayscomparefalse."""returnre.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s',r'[D/T]',str) | 477,906 |
def Prepare(self, cmd): """ Run commands mandatory for func_test to succeed. """ | def Prepare(self, cmd): """ Run commands mandatory for func_test to succeed. """ | 477,907 |
def RunAndCheck(self, cmd, batch = False, inverse_test=False): ref_output, ref_code = self.PrepareReferenceOutput(cmd) | def RunAndCheck(self, cmd, batch = False, inverse_test=False): ref_output, ref_code = self.PrepareReferenceOutput(cmd) | 477,908 |
def __add_group(self, name, system, manual_gid=None, description = "", groupSkel = "", batch=False, force=False): """ Add a POSIX group, write the system data files. Return the gid of the group created.""" | def __add_group(self, name, system, manual_gid=None, description = "", groupSkel = "", batch=False, force=False): """ Add a POSIX group, write the system data files. Return the gid of the group created.""" | 477,909 |
def forgery_error(title): return (w.HTTP_TYPE_TEXT, w.page(title, w.error(_("Forbidden action"), [ _("Some parts of the system cannot be modified.") ], _("insufficient permissions to perform operation.")))) | def forgery_error(title): return (HTTP_TYPE_TEXT, page(title, error(_("Forbidden action"), [ _("Some parts of the system cannot be modified.") ], _("insufficient permissions to perform operation.")))) | 477,910 |
def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Showing details of group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # A... | def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Details of group %s") % name data = w.page_body_start(uri, http_user, ctxtnav, title) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # As of now, this is har... | 477,911 |
def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Showing details of group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # A... | def view(uri, http_user, name): """Prepare a group view to be printed.""" users.reload() groups.reload() title = _("Showing details of group %s") % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) u = users.users g = groups.groups # TODO: should we forbid system group view ? why not ? # A... | 477,912 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,913 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,914 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,915 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,916 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,917 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,918 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,919 |
def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | def user_line(login): uid = users.login_to_uid(login) return '''<tr><td>%s</td><td>%s</td><td>%s</td></tr>''' % ( u[uid]['gecos'], login, uid) | 477,920 |
def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer): | def check_user(user, minimal = minimal, batch = batch, auto_answer = auto_answer): | 477,921 |
def SetMissingMandatoryDefauts(self): """ The defaults set here are expected to exist by other parts of the programs. """ | def SetMissingMandatoryDefauts(self): """ The defaults set here are expected to exist by other parts of the programs. """ | 477,922 |
def CheckBaseDirs(self, minimal = True, batch = False, auto_answer = None) : """Check and eventually repair default needed dirs.""" | def CheckBaseDirs(self, minimal = True, batch = False, auto_answer = None) : """Check and eventually repair default needed dirs.""" | 477,923 |
def CheckBaseDirs(self, minimal = True, batch = False, auto_answer = None) : """Check and eventually repair default needed dirs.""" | def CheckBaseDirs(self, minimal = True, batch = False, auto_answer = None) : """Check and eventually repair default needed dirs.""" | 477,924 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_('''<em>Click to edit current user account parameters:</em> <br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_('''<em>Click to edit current user account parameters:</em> <br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&... | 477,925 |
def last_init_check(self): """ do a quick LDAP content check, to validate everything is valid. """ | def last_init_check(self): """ do a quick LDAP content check, to validate everything is valid. """ | 477,926 |
def ctxtnav(active = True): if active: disabled = ''; onClick = ''; else: disabled = 'un-clickable'; onClick = 'onClick="javascript: return(false);"' return ''' <div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li><a href="/users/new" title="%s" %s class="%s"><div class="ctxt-icon %s" id="icon-add">%s... | def ctxtnav(active = True): if active: disabled = ''; onClick = ''; else: disabled = 'un-clickable'; onClick = 'onClick="javascript: return(false);"' return ''' <div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li><a href="/users/new" title="%s" %s class="%s"><div class="ctxt-icon %s" id="icon-add">%s... | 477,927 |
def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | 477,928 |
def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | 477,929 |
def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | 477,930 |
def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | def export(uri, http_user, type = "", yes = None): """ Export user accounts list.""" # TODO: reload(profiles) groups.reload() users.reload() del yes title = _("Export user accounts list") data = '<div id="banner">\n%s\n%s</div>\n%s\n<div id="main">\n%s\n<div id="content"><h1>%s</h1>' % ( w.backto(), w.metanav(http_... | 477,931 |
def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | 477,932 |
def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | 477,933 |
def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | 477,934 |
def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | 477,935 |
def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | def delete(uri, http_user, login, sure = False, no_archive = False, yes = None): """remove user account.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes title = _("Remove user account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) if not sure: data +=... | 477,936 |
def unlock(uri, http_user, login): """unlock a user account password.""" title = _("Unlock account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) users.reload() data += w.page_body_end() if users.is_system_login(login): return w.page(title, w.error(_("Failed to unlock account"), [ _("alter s... | def unlock(uri, http_user, login): """unlock a user account password.""" title = _("Unlock account %s") % login data = w.page_body_start(uri, http_user, ctxtnav, title) users.reload() data += w.page_body_end() if users.is_system_login(login): return w.page(title, w.error(_("Failed to unlock account"), [ _("alter s... | 477,937 |
def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | 477,938 |
def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | 477,939 |
def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | 477,940 |
def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | def lock(uri, http_user, login, sure = False, remove_remotessh = False, yes = None): """lock a user account password.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes groups.reload() users.reload() title = _("Lock account %s") % login data = w.page_body_start(uri, http_user,... | 477,941 |
def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | 477,942 |
def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | 477,943 |
def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | 477,944 |
def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | def skel(uri, http_user, login, sure = False, apply_skel = configuration.users.default_skel, yes = None): """reapply a user's skel with confirmation.""" # forget about it, this is a scoria from the POST FORM to variable conversion. del yes # TODO: profiles.reload() groups.reload() users.reload() u = users.users g = ... | 477,945 |
def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | 477,946 |
def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | 477,947 |
def new(uri, http_user): """Generate a form to create a new user on the system.""" # TODO: profiles.reload() groups.reload() g = groups.groups p = profiles.profiles title = _("New user account") data = w.page_body_start(uri, http_user, ctxtnav, title, False) def profile_input(): #TODO: To be rewritten ? return ""... | def new(uri, http_user): """Generate a form to create a new user on the system.""" # TODO: profiles.reload() groups.reload() g = groups.groups p = profiles.profiles title = _("New user account") data = w.page_body_start(uri, http_user, ctxtnav, title, False) def profile_input(): #TODO: To be rewritten ? return ""... | 477,948 |
def new(uri, http_user): """Generate a form to create a new user on the system.""" # TODO: profiles.reload() groups.reload() g = groups.groups p = profiles.profiles title = _("New user account") data = w.page_body_start(uri, http_user, ctxtnav, title, False) def profile_input(): #TODO: To be rewritten ? return ""... | def new(uri, http_user): """Generate a form to create a new user on the system.""" # TODO: profiles.reload() groups.reload() g = groups.groups p = profiles.profiles title = _("New user account") data = w.page_body_start(uri, http_user, ctxtnav, title, False) def profile_input(): #TODO: To be rewritten ? return ""... | 477,949 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,950 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,951 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,952 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,953 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,954 |
def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | def create(uri, http_user, loginShell, password, password_confirm, profile = None, login = "", gecos = "", firstname = "", lastname = "", standard_groups_dest = [], privileged_groups_dest = [], responsible_groups_dest = [], guest_groups_dest = [], standard_groups_source = [], privileged_groups_source = [], responsible_... | 477,955 |
def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | 477,956 |
def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | 477,957 |
def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | def edit(uri, http_user, login): """Edit an user account, based on login.""" groups.reload() users.reload() # TODO: profiles.reload() title = _('Edit account %s') % login data = w.page_body_start(uri, http_user, ctxtnav, title, False) if users.is_system_login(login): return w.minipage(title, w.error(_('Account edit... | 477,958 |
def record(uri, http_user, login, loginShell = configuration.users.default_shell, password = "", password_confirm = "", firstname = "", lastname = "", gecos = "", standard_groups_source = [], standard_groups_dest = [], privileged_groups_source = [], privileged_groups_dest = [], responsible_groups_source = [], r... | def record(uri, http_user, login, loginShell = configuration.users.default_shell, password = "", password_confirm = "", firstname = "", lastname = "", gecos = "", standard_groups_source = [], standard_groups_dest = [], privileged_groups_source = [], privileged_groups_dest = [], responsible_groups_source = [], r... | 477,959 |
def main(uri, http_user, sort = "login", order = "asc"): start = time.time() groups.reload() users.reload() # TODO: profiles.reload() u = users.users g = groups.groups p = profiles.profiles groups.Select(groups.FILTER_PRIVILEGED) pri_grps = [ g[gid]['name'] for gid in groups.filtered_groups ] groups.Select(groups.... | def main(uri, http_user, sort = "login", order = "asc"): start = time.time() groups.reload() users.reload() # TODO: profiles.reload() u = users.users g = groups.groups p = profiles.profiles groups.Select(groups.FILTER_PRIVILEGED) pri_grps = [ g[gid]['name'] for gid in groups.filtered_groups ] groups.Select(groups.... | 477,960 |
def main(uri, http_user, sort = "login", order = "asc"): start = time.time() groups.reload() users.reload() # TODO: profiles.reload() u = users.users g = groups.groups p = profiles.profiles groups.Select(groups.FILTER_PRIVILEGED) pri_grps = [ g[gid]['name'] for gid in groups.filtered_groups ] groups.Select(groups.... | def main(uri, http_user, sort = "login", order = "asc"): start = time.time() groups.reload() users.reload() # TODO: profiles.reload() u = users.users g = groups.groups p = profiles.profiles groups.Select(groups.FILTER_PRIVILEGED) pri_grps = [ g[gid]['name'] for gid in groups.filtered_groups ] groups.Select(groups.... | 477,961 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,962 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,963 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,964 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,965 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,966 |
def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 477,967 |
def print_totals(totals): output = "" for total in totals: if totals[total] != 0: output += ''' | def print_totals(totals): output = "" for total in totals: if totals[total] != 0: output += ''' | 477,968 |
def RunAndCheck(self, cmd, batch = False, inverse_test=False): ref_output, ref_code = self.PrepareReferenceOutput(cmd) | def RunAndCheck(self, cmd, batch = False, inverse_test=False): ref_output, ref_code = self.PrepareReferenceOutput(cmd) | 477,969 |
def ExportCLI(self): """ Export the user profiles list to human readable form. """ data = "" | def ExportCLI(self): """ Export the user profiles list to human readable form. """ data = "" | 477,970 |
def is_restricted_system_gid(self, gid): """ Return true if gid is system, but outside the range of Licorn® controlled GIDs.""" return gid < LMC.configuration.groups.system_gid_min \ and gid > LMC.configuration.groups.gid_max | def is_restricted_system_gid(self, gid): """ Return true if gid is system, but outside the range of Licorn® controlled GIDs.""" return gid < LMC.configuration.groups.system_gid_min \ and gid > LMC.configuration.groups.gid_max | 477,971 |
def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x... | 477,972 |
def cmdfmt(cmd): '''convert a sequence to a colorized string.''' return styles.stylize(styles.ST_NAME, ' '.join(cmd)) | def cmdfmt(cmd): '''convert a sequence to a colorized string.''' return styles.stylize(styles.ST_NAME, ' '.join(cmd)) | 477,973 |
def test_message(msg): """ display a message to stderr. """ sys.stderr.write("%s>>> %s%s\n" % (styles.colors[styles.ST_LOG], msg, styles.colors[styles.ST_NO]) ) | def test_message(msg): """ display a message to stderr. """ sys.stderr.write("%s>>> %s%s\n" % (styles.colors[styles.ST_LOG], msg, styles.colors[styles.ST_NO]) ) | 477,974 |
def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (colors[ST_LOG], colors[ST_PATH], com... | 477,975 |
def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | 477,976 |
def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | def log_and_exec (command, inverse_test=False, result_code=0, comment="", verb=verbose): """Display a command, execute it, and exit if soemthing went wrong.""" #if not command.startswith('colordiff'): # command += ' %s' % ' '.join(args) sys.stderr.write("%s>>> running %s%s%s\n" % (styles.colors[styles.ST_LOG], styles... | 477,977 |
def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', r' [D/T] ', str) | def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'(\.\d\d\d\d\d\d\d\d-\d\d\d\d\d\d|\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s)', r' [D/T] ', str) | 477,978 |
def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', r' [D/T] ', str) | def strip_dates(str): """ strip dates from warnings and traces, else outputs and references always compare false .""" return re.sub(r'\s\[\d\d\d\d/\d\d/\d\d\s\d\d:\d\d:\d\d\.\d\d\d\d\]\s', r' [D/T] ', str) | 477,979 |
def __init__(self, cmd, pre_cmds=[], chk_cmds=[], manual_output=False, reference_cmd=[], context='std'): | def __init__(self, cmd, pre_cmds=[], chk_cmds=[], manual_output=False, reference_cmd=[], context='std'): | 477,980 |
def SaveOutput(self, output, code): | def SaveOutput(self, output, code): | 477,981 |
def SaveOutput(self, output, code): | def SaveOutput(self, output, code): | 477,982 |
def PrepareReferenceOutput(self, cmd): | def PrepareReferenceOutput(self, cmd): | 477,983 |
def PrepareReferenceOutput(self, cmd): | def PrepareReferenceOutput(self, cmd): | 477,984 |
def PrepareReferenceOutput(self, cmd): | def PrepareReferenceOutput(self, cmd): | 477,985 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" commands = [] for program in (GET, ADD, MOD, DEL, CHK): commands.extend([ program + ['-h'], program + ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] elif program == MODIFY: modes = [ 'configu... | 477,986 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,987 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,988 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,989 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,990 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,991 |
def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | def test_integrated_help (): """Test extensively argmarser contents and intergated help.""" test_message('testing integrated help.') for program in (GETENT, ADD, MODIFY, DELETE, CHECK): FunctionnalTest(program).Run(options = [['-h'], ['--help']]) if program == ADD: modes = [ 'user', 'users', 'group', 'profile' ] el... | 477,992 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" commands = [] for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], context=context).Run() for... | 477,993 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: commands.append(GET + [ 'configuration', category, mode ]) for... | 477,994 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | 477,995 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | 477,996 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | 477,997 |
def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | def test_get(context): """Test GET a lot.""" test_message('''starting get tests.''') for category in [ 'config_dir', 'main_config_file', 'extendedgroup_data_file' ]: for mode in [ '', '-s', '-b', '--bourne-shell', '-c', '--c-shell', '-p', '--php-code' ]: FunctionnalTest(GETENT + [ 'configuration', category, mode ], c... | 477,998 |
def test_regexes(): """ Try funky strings to make regexes fail (they should not).""" # TODO: test regexes directly from defs in licorn.core.... test_message('''starting regexes tests.''') regexes_commands = [] # groups related regexes_commands.extend([ ADD + [ 'group', "--name='_- -_'"], CHECK + [ 'group', "--nam... | def test_regexes(): """ Try funky strings to make regexes fail (they should not).""" # TODO: test regexes directly from defs in licorn.core.... test_message('''starting regexes tests.''') regexes_commands = [] # groups related regexes_commands.extend([ ADD + [ 'group', "--name='_- -_'"], CHK + [ 'group', "--name='_... | 477,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.