Changeset 9149902 in tailbone


Ignore:
Timestamp:
07/07/18 20:43:17 (2 years ago)
Author:
Lance Edgar <lance@…>
Branches:
master
Children:
3dfdb26
Parents:
b464db5
Message:

Remove deprecated "edbob" settings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tailbone/app.py

    rb464db5 r9149902  
    5656        path = settings.get('rattail.config')
    5757        if not path or not os.path.exists(path):
    58             path = settings.get('edbob.config')
    59             if not path or not os.path.exists(path):
    60                 raise ConfigurationError("Please set 'rattail.config' in [app:main] section of config "
    61                                          "to the path of your config file.  Lame, but necessary.")
    62             warnings.warn("[app:main] setting 'edbob.config' is deprecated; "
    63                           "please use 'rattail.config' setting instead",
    64                           DeprecationWarning)
     58            raise ConfigurationError("Please set 'rattail.config' in [app:main] section of config "
     59                                     "to the path of your config file.  Lame, but necessary.")
    6560        rattail_config = make_config(path)
    6661        settings['rattail_config'] = rattail_config
     
    147142    config.add_directive('add_tailbone_permission', 'tailbone.auth.add_permission')
    148143
    149     # TODO: This can finally be removed once all CRUD/index views have been
    150     # converted to use the new master view etc.
    151     for label, perms in settings.get('edbob.permissions', []):
    152         groupkey = label.lower().replace(' ', '_')
    153         config.add_tailbone_permission_group(groupkey, label)
    154         for key, label in perms:
    155             config.add_tailbone_permission(groupkey, key, label)
    156 
    157144    return config
    158145
Note: See TracChangeset for help on using the changeset viewer.