from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features

from girder.plugin import GirderPlugin

@setting_utilities.validator({
    Features.NOTEBOOKS
})

class AppPlugin(GirderPlugin):
    DISPLAY_NAME = 'OpenChemistry App'

    def validateSettings(self, event):
        pass

    def load(self, info):
        info['apiRoot'].configuration = Configuration()

from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features

from girder.plugin import GirderPlugin

@setting_utilities.validator({
    Features.NOTEBOOKS
})
def validateSettings(event):
    pass

class AppPlugin(GirderPlugin):
    DISPLAY_NAME = 'OpenChemistry App'

    def load(self, info):
        info['apiRoot'].configuration = Configuration()

Put validateSettings() after girder decorator
Put validateSettings() after girder decorator

This was mistakenly put inside the class body. It
needs to be after the girder decorator instead.

Signed-off-by: Patrick Avery <743342299f279e7a8c3ff5eb40671fce3e95f13a@kitware.com>

  from .configuration import Configuration
  from girder.utility import setting_utilities
  from .constants import Features
  
  from girder.plugin import GirderPlugin
  
  @setting_utilities.validator({
      Features.NOTEBOOKS
  })
+ def validateSettings(event):
+     pass
  
  class AppPlugin(GirderPlugin):
      DISPLAY_NAME = 'OpenChemistry App'
  
-     def validateSettings(self, event):
-         pass
- 
      def load(self, info):
          info['apiRoot'].configuration = Configuration()
  
Put validateSettings() after girder decorator
## Code Before:
from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features

from girder.plugin import GirderPlugin

@setting_utilities.validator({
    Features.NOTEBOOKS
})

class AppPlugin(GirderPlugin):
    DISPLAY_NAME = 'OpenChemistry App'

    def validateSettings(self, event):
        pass

    def load(self, info):
        info['apiRoot'].configuration = Configuration()

## Instruction:
Put validateSettings() after girder decorator
## Code After:
from .configuration import Configuration
from girder.utility import setting_utilities
from .constants import Features

from girder.plugin import GirderPlugin

@setting_utilities.validator({
    Features.NOTEBOOKS
})
def validateSettings(event):
    pass

class AppPlugin(GirderPlugin):
    DISPLAY_NAME = 'OpenChemistry App'

    def load(self, info):
        info['apiRoot'].configuration = Configuration()
