bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default=None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,100 |
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default=None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,101 |
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default=None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,102 |
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default=None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,103 |
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default=None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,104 |
def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default = None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | def mod_group_parse_arguments(app, configuration): usage_text = "\n\t%s group --name=<nom_actuel> [--rename=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--add-users=<user1[[,user2][,…]]>] [--del-users=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-resps=<user1[[,user2][,…]]>] [--delete-resps=<user1[[,user2][,…]]>]\n" \ + "\t\t[--add-guests=<user1[[,user2][,…]]>] [--delete-guests=<user1[[,user2][,…]]>]\n" \ + "\t\t[--permissive|--not-permissive] [--skel=<new skel>] [--description=<new description>]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_group')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'groups')) group = OptionGroup(parser, stylize(ST_OPTION, "Modify group options")) group.add_option("--rename", action="store", type="string", dest="newname", default = None, help="specify group's new name (not yet implemented).") group.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="specify group's new skel dir.") group.add_option("--description", action="store", type="string", dest="newdescription", default = None, help="specify new group's description") group.add_option("-p", "--permissive", "--set-permissive", action="store_true", dest="permissive", default = None, help="set the shared directory of the group permissive.") group.add_option("-P", "--not-permissive", "--set-not-permissive", action="store_false", dest="permissive", default = None, help="set the shared directory of the group not permissive.") group.add_option("--add-users", action="store", type="string", dest="users_to_add", default = [], help="Add users to the group. The users are separated by commas without spaces.") group.add_option("--del-users", action="store", type="string", dest="users_to_del", default = [], help="Delete users from the group. The users are separated by commas without spaces.") group.add_option("--add-resps", action="store", type="string", dest="resps_to_add", default = [], help="Add responsibles to the group. The responsibles are separated by commas without spaces.") group.add_option("--del-resps", action="store", type="string", dest="resps_to_del", default = [], help="Delete responsibles from the group. The responsibles are separated by commas without spaces.") group.add_option("--add-guests", action="store", type="string", dest="guests_to_add", default = [], help="Add guests to the group. The guests are separated by commas without spaces.") group.add_option("--del-guests", action="store", type="string", dest="guests_to_del", default = [], help="Delete guests from the group. The guests are separated by commas without spaces.") group.add_option("--add-granted-profiles", action="store", type="string", dest="granted_profiles_to_add", default = None, help="Add the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") group.add_option("--del-granted-profiles", action="store", type="string", dest="granted_profiles_to_del", default=None, help="Delete the profiles which the users can access to the group's shared directory. The profiles are separated by commas without spaces.") parser.add_option_group(group) return check_opts_and_args(parser.parse_args()) | 478,105 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default=None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,106 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default=None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,107 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default=None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,108 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default=None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,109 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default=None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,110 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default=None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,111 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default=None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,112 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default=None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,113 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default=None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,114 |
def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default = None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | def mod_profile_parse_arguments(app, configuration): usage_text = "\n\t%s profile --group=<nom> [--name=<nouveau_nom>] [--rename-group=<nouveau_nom>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--comment=<nouveau_commentaire>] [--shell=<nouveau_shell>] [--skel=<nouveau_skel>]\n" \ + "\t\t[--quota=<nouveau_quota>] [--add-groups=<groupes>] [--del-groups=<groupes>]\n" \ + "\t%s profile <--apply-groups|--apply-skel|--apply-all> [--force]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--to-users=<user1[[,user2][,…]]>] [--to-groups=<group1[[,group2][,…]]>]\n" \ + "\t\t[--to-all] [--to-members] [--no-instant-apply] [--no-sync]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group( common_behaviour_group(app, parser, 'mod_profile')) parser.add_option_group(common_filter_group(app, parser, 'mod', 'profiles')) profile = OptionGroup(parser, stylize(ST_OPTION, "Modify profile options ")) profile.add_option("--rename", '--new-name', action="store", type="string", dest="newname", default = None, help="specify profile's name") profile.add_option("--rename-group", '--new-group-name', action="store", type="string", dest="newgroup", default = None, help="Rename primary group.") profile.add_option("--description", action="store", type="string", dest="description", default = None, help="Change profile's description.") profile.add_option("--shell", action="store", type="string", dest="newshell", default = None, help="Change profile shell (defaults to %s if you specify --shell without argument)" % stylize(ST_DEFAULT, configuration.users.default_shell)) profile.add_option("--quota", action="store", type="int", dest="newquota", default = None, help="Change profile's user quota (in Mb, defaults to %s if you specify --quota without argument)." % stylize(ST_DEFAULT, "1024")) profile.add_option("--skel", action="store", type="string", dest="newskel", default = None, help="Change profile skel (specify a skel dir as an absolute pathname, defaults to %s if you give --skel without argument)." % stylize(ST_DEFAULT, configuration.users.default_skel)) profile.add_option("--add-groups", action="store", type="string", dest="groups_to_add", default = None, help="Add one or more group(s) to default memberships of profile (separate groups with commas without spaces).") profile.add_option("--del-groups", action="store", type="string", dest="groups_to_del", default = None, help="Delete one or more group(s) from default memberships of profile (separate groups with commas without spaces).") profile.add_option("--apply-groups", action="store_true", dest="apply_groups", default = False, help="Re-apply only the default group memberships of the profile.") profile.add_option("--apply-skel", action="store_true", dest="apply_skel", default = False, help="Re-apply only the skel of the profile.") profile.add_option("--apply-all", action="store_true", dest="apply_all_attributes", default=False, help="Re-apply all the profile's attributes (groups and skel).") profile.add_option("--to-users", action="store", type="string", dest="apply_to_users", default=None, help="Re-apply to specific users accounts (separate them with commas without spaces).") profile.add_option("--to-groups", action="store", type="string", dest="apply_to_groups", default = None, help="Re-apply to all members of one or more groups (separate groups with commas without spaces). You can mix --to-users and --to-groups.") profile.add_option("--to-members", action="store_true", dest="apply_to_members", default = False, help="Re-apply to all users members of the profile.") profile.add_option("--to-all", action="store_true", dest="apply_to_all_accounts", default=None, help="Re-apply to all user accounts on the system (LENGHTY operation !).") profile.add_option("--no-instant-apply", action="store_false", dest="instant_apply", default = True, help="Don't apply group addition/deletion instantly to all members of the modified profile (%s; use this only if you know what you're doing)." % stylize(ST_IMPORTANT, "this is not recommended")) profile.add_option("--no-sync", action="store_true", dest="no_sync", default = False, help="Commit changes only after all modifications.") parser.add_option_group(profile) (opts, args) = check_opts_and_args(parser.parse_args()) if opts.apply_all_attributes: opts.apply_skel = True opts.apply_groups = True return opts, args | 478,115 |
def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default=None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | 478,116 |
def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default=None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | 478,117 |
def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default=None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | 478,118 |
def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default = None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | def mod_keyword_parse_arguments(app, configuration): usage_text = "\n\t%s keyword --name=<nom> [--rename=<nouveau_nom>] [--parent=<nouveau_parent>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--remove-parent] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_profile')) keyword = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) keyword.add_option("--name", action="store", type="string", dest="name", default = None, help="specify keyword to modify (%s)." % stylize(ST_IMPORTANT, "required")) keyword.add_option("--rename", action="store", type="string", dest="newname", default = None, help="Rename keyword") keyword.add_option("--parent", action="store", type="string", dest="parent", default = None, help="Change keyword's parent.") keyword.add_option("--remove-parent", action="store_true", dest="remove_parent", default = False, help="Remove parent.") keyword.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Modify all file in all subdirs.") keyword.add_option("--description", action="store", type="string", dest="description", default=None, help="Remove parent.") parser.add_option_group(keyword) return parser.parse_args() | 478,119 |
def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default = None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default = None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default = None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default=None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default = None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default = None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | 478,120 |
def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default = None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default = None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default = None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default = None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default=None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default = None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | 478,121 |
def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default = None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default = None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default = None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | def mod_path_parse_arguments(app, configuration): usage_text = "\n\t%s path [--path=]<fichier_ou_repertoire> [--add-keywords=<kw1[,kw1,…]>] [--del-keywords=<kw1[,kw1,…]>]\n" % stylize(ST_APPNAME, "%prog") \ + "\t\t[--clear-keywords] [--recursive]" parser = OptionParser(usage=usage_text, version=build_version_string(app, version)) # common behaviour group parser.add_option_group(common_behaviour_group(app, parser, 'mod_path')) path = OptionGroup(parser, stylize(ST_OPTION, "Modify keyword options ")) path.add_option("--path", action="store", type="string", dest="path", default = None, help="specify path of the file/directory to tag (%s)." % stylize(ST_IMPORTANT, "required")) path.add_option("--add-keywords", action="store", type="string", dest="keywords_to_add", default = None, help="Add keywords.") path.add_option("--del-keywords", action="store", type="string", dest="keywords_to_del", default=None, help="Remove keywords.") path.add_option("--clear-keywords", action="store_true", dest="clear_keywords", default = False, help="Remove all keywords.") path.add_option("--recursive", action="store_true", dest="recursive", default = False, help="Set modifications to all subdirs.") path.add_option("--description", action="store", type="string", dest="description", default = False, help="Remove parent.") parser.add_option_group(path) return parser.parse_args() | 478,122 |
def AddProfile(self, name, group, profileQuota=1024, groups=[], description='', profileShell=None, profileSkel=None, force_existing=False): """ Add a user profile (self.groups is an instance of GroupsController and is needed to create the profile group). """ | def AddProfile(self, name, group, profileQuota=1024, groups=[], description='', profileShell=None, profileSkel=None, force_existing=False): """ Add a user profile (self.groups is an instance of GroupsController and is needed to create the profile group). """ | 478,123 |
def initialize(self, enabled=True): """ try to start it without any tests (it should work if it's installed) and become available. If that fails, try to guess a little and help user resolving issue. else, just fail miserably. | def initialize(self, enabled=True): """ try to start it without any tests (it should work if it's installed) and become available. If that fails, try to guess a little and help user resolving issue. else, just fail miserably. | 478,124 |
def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 478,125 |
def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 478,126 |
def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 478,127 |
def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 478,128 |
def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | def DeleteUser(self, login=None, no_archive=False, uid=None, batch=False) : """ Delete a user """ if login is None and uid is None : raise exceptions.BadArgumentError(logging.SYSU_SPECIFY_LGN_OR_UID) | 478,129 |
def AddProfile(self, name, group, profileQuota=1024, groups=[], description='', profileShell=None, profileSkel=None, force_existing=False): """ Add a user profile (self.groups is an instance of GroupsController and is needed to create the profile group). """ | def AddProfile(self, name, group, profileQuota=1024, groups=[], description='', profileShell=None, profileSkel=None, force_existing=False): """ Add a user profile (self.groups is an instance of GroupsController and is needed to create the profile group). """ | 478,130 |
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.""" | 478,131 |
def do_HEAD(self): f = self.send_head() if f: f.close() | def do_HEAD(self): f = self.send_head() if f: f.close() | 478,132 |
def do_GET(self): f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) while buf: self.wfile.write(buf) buf = f.read(LMC.configuration.licornd.buffer_size) f.close() | def do_GET(self): try: f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) f.close() | 478,133 |
def do_GET(self): f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) while buf: self.wfile.write(buf) buf = f.read(LMC.configuration.licornd.buffer_size) f.close() | def do_GET(self): f = self.send_head() if f: if type(f) in (type(""), type(u'')): self.wfile.write(f) else: buf = f.read(LMC.configuration.licornd.buffer_size) while buf: self.wfile.write(buf) buf = f.read(LMC.configuration.licornd.buffer_size) f.close() | 478,134 |
def account_lock(value, tmp_entry=temp_user_dict): try: # get around an error where password is not base64 encoded. password = decodestring(value.split('}',1)[1]) except Exception: password = value | def account_lock(value, tmp_entry=temp_user_dict): try: # get around an error where password is not base64 encoded. password = decodestring(value.split('}',1)[1]) except Exception: password = value | 478,135 |
def GetHiddenState(self): """ See if /home/groups is readable or not. """ | def GetHiddenState(self): """ See if /home/groups is readable or not. """ | 478,136 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,137 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,138 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,139 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,140 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,141 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,142 |
def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | def Select(self, filter_string): """ Filter group accounts on different criteria: - 'system groups': show only «system» groups (root, bin, daemon, apache...), not normal group account. - 'normal groups': keep only «normal» groups, which includes Licorn administrators The criteria values are defined in /etc/{login.defs,adduser.conf} """ | 478,143 |
def ExportCLI(self, long): """ Export the groups list to human readable (= « get group ») form. """ if self.filter_applied: gids = self.filtered_groups else: gids = GroupsController.groups.keys() gids.sort() | def ExportCLI(self, long): """ Export the groups list to human readable (= « get group ») form. """ if self.filter_applied: gids = self.filtered_groups else: gids = GroupsController.groups.keys() gids.sort() | 478,144 |
def ExportOneGroupFromGid(gid, mygroups = GroupsController.groups): """ Export groups the way UNIX get does, separating fields with ":" """ | def ExportOneGroupFromGid(gid, mygroups = GroupsController.groups): """ Export groups the way UNIX get does, separating fields with ":" """ | 478,145 |
def ExportOneGroupFromGid(gid, mygroups = GroupsController.groups): """ Export groups the way UNIX get does, separating fields with ":" """ | def ExportOneGroupFromGid(gid, mygroups = GroupsController.groups): """ Export groups the way UNIX get does, separating fields with ":" """ | 478,146 |
def ExportXML(self, long): """ Export the groups list to XML. """ | def ExportXML(self, long): """ Export the groups list to XML. """ | 478,147 |
def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | 478,148 |
def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | defAddGroup(self,name,gid=None,description="",groupSkel="",system=False,permissive=False,batch=False,force=False):"""AddaLicorngroup(thegroup+theguest/responsiblegroup+theshareddir+permissions(ACL)).""" | 478,149 |
def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | 478,150 |
def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | def AddGroup(self, name, gid=None, description="", groupSkel="", system=False, permissive=False, batch=False, force=False): """ Add a Licorn group (the group + the guest/responsible group + the shared dir + permissions (ACL)). """ | 478,151 |
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.""" | 478,152 |
def DeleteGroup(self, name, del_users, no_archive, bygid = None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | def DeleteGroup(self, name, del_users, no_archive, bygid=None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | 478,153 |
def DeleteGroup(self, name, del_users, no_archive, bygid = None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | def DeleteGroup(self, name, del_users, no_archive, bygid = None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | 478,154 |
def DeleteGroup(self, name, del_users, no_archive, bygid = None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | def DeleteGroup(self, name, del_users, no_archive, bygid = None, batch=False): """ Delete an Licorn group """ if name is None and bygid is None: raise exceptions.BadArgumentError, "You must specify a name or a GID." | 478,155 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,156 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,157 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,158 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,159 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,160 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,161 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,162 |
def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | def RenameGroup(self, profilelist, name, new_name): """ Modify the name of a group.""" | 478,163 |
def ChangeGroupSkel(self, name, groupSkel): """ Change the description of a group """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if groupSkel is None: raise exceptions.BadArgumentError, "You must specify a groupSkel" | def ChangeGroupSkel(self, name, groupSkel): """ Change the description of a group """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if groupSkel is None: raise exceptions.BadArgumentError, "You must specify a groupSkel" | 478,164 |
def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | 478,165 |
def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | 478,166 |
def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | 478,167 |
def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | 478,168 |
def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | def AddGrantedProfiles(self, users, profiles, name): """ Allow the users of the profiles given to access to the shared dir Warning: Don't give [] for profiles, but [""] """ if name is None: raise exceptions.BadArgumentError, "You must specify a group name to add." | 478,169 |
def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | 478,170 |
def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | 478,171 |
def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | 478,172 |
def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | def DeleteGrantedProfiles(self, users, profiles, name): """ Disallow the users of the profiles given to access to the shared dir. """ | 478,173 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,174 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,175 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,176 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,177 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,178 |
def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | def AddUsersInGroup(self, name, users_to_add, batch = False): """ Add a user list in the group 'name'. """ | 478,179 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,180 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,181 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,182 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,183 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,184 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,185 |
def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | def RemoveUsersFromGroup(self, name, users_to_remove, batch=False): """ Delete a users list in the group 'name'. """ if name is None: raise exceptions.BadArgumentError, "You must specify a name" if users_to_remove is None: raise exceptions.BadArgumentError, "You must specify a users list" | 478,186 |
def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | 478,187 |
def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | 478,188 |
def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | 478,189 |
def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | def BuildGroupACL(self, gid, path = ""): """ Return an ACL triolet (a dict) that will be used to check something in the group shared dir. path must be the name of a file/dir, relative from group_home (this will help affining the ACL). EG: path in [ 'toto.odt', 'somedir', 'public_html/images/logo.img' ], etc. | 478,190 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,191 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,192 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,193 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,194 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,195 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,196 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,197 |
def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | def CheckAssociatedSystemGroups(self, group, minimal=True, batch=False, auto_answer=None, force=False): """Check the system groups that a standard group need to fuction flawlessly. For example, a group "toto" need 2 system groups "resp-toto" and "guest-toto" for its ACLs. """ | 478,198 |
def __check_group(self, group, minimal=True, batch=False, auto_answer=None, force=False): | def __check_group(self, group, minimal=True, batch=False, auto_answer=None, force=False): | 478,199 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.