This reads or sets the global settings stored in class.settings.
(cls, key, *args)
| 4241 | |
| 4242 | @classmethod |
| 4243 | def global_config(cls, key, *args): |
| 4244 | """ This reads or sets the global settings stored in class.settings. """ |
| 4245 | if args: |
| 4246 | cls.settings = cls.settings.copy() # Make settings local to class |
| 4247 | cls.settings[key] = args[0] |
| 4248 | else: |
| 4249 | return cls.settings[key] |
| 4250 | |
| 4251 | def prepare(self, **options): |
| 4252 | """ Run preparations (parsing, caching, ...). |