Switch to unified view

a/Allura/allura/command/script.py b/Allura/allura/command/script.py
...
...
39
                exec fp in ns
39
                exec fp in ns
40
40
41
class SetToolAccessCommand(base.Command):
41
class SetToolAccessCommand(base.Command):
42
    min_args=3
42
    min_args=3
43
    max_args=None
43
    max_args=None
44
    usage = '<ini file> <project_shortname> <access_level>...'
44
    usage = '<ini file> <project_shortname> <neighborhood_name> <access_level>...'
45
    summary = ('Set the tool statuses that are permitted to be installed on a'
45
    summary = ('Set the tool statuses that are permitted to be installed on a'
46
               ' given project')
46
               ' given project')
47
    parser = base.Command.standard_parser(verbose=True)
47
    parser = base.Command.standard_parser(verbose=True)
48
48
49
    def command(self):
49
    def command(self):
50
        self.basic_setup()
50
        self.basic_setup()
51
        h.set_context(self.args[1])
51
        h.set_context(self.args[1], neighborhood=self.args[2])
52
        extra_status = []
52
        extra_status = []
53
        for s in self.args[2:]:
53
        for s in self.args[3:]:
54
            s = s.lower()
54
            s = s.lower()
55
            if s=='production':
55
            if s=='production':
56
                print ('All projects always have access to prodcution tools,'
56
                print ('All projects always have access to prodcution tools,'
57
                       ' so removing from list.')
57
                       ' so removing from list.')
58
                continue
58
                continue