from panoptes_client.panoptes import LinkResolver, PanoptesObject

class Classification(PanoptesObject):
    _api_slug = 'classifications'
    _link_slug = 'classification'
    _edit_attributes = ( )

LinkResolver.register(Classification)

from panoptes_client.panoptes import LinkResolver, PanoptesObject


class Classification(PanoptesObject):
    _api_slug = 'classifications'
    _link_slug = 'classification'
    _edit_attributes = ( )

    @classmethod
    def where(cls, **kwargs):
        scope = kwargs.pop('scope', None)
        if not scope:
            return super(Classification, cls).where(**kwargs)
        return cls.paginated_results(*cls.get(scope, params=kwargs))

LinkResolver.register(Classification)

Add scope kwarg to Classification.where()
Add scope kwarg to Classification.where()

  from panoptes_client.panoptes import LinkResolver, PanoptesObject
+ 
  
  class Classification(PanoptesObject):
      _api_slug = 'classifications'
      _link_slug = 'classification'
      _edit_attributes = ( )
  
+     @classmethod
+     def where(cls, **kwargs):
+         scope = kwargs.pop('scope', None)
+         if not scope:
+             return super(Classification, cls).where(**kwargs)
+         return cls.paginated_results(*cls.get(scope, params=kwargs))
+ 
  LinkResolver.register(Classification)
  
Add scope kwarg to Classification.where()
## Code Before:
from panoptes_client.panoptes import LinkResolver, PanoptesObject

class Classification(PanoptesObject):
    _api_slug = 'classifications'
    _link_slug = 'classification'
    _edit_attributes = ( )

LinkResolver.register(Classification)

## Instruction:
Add scope kwarg to Classification.where()
## Code After:
from panoptes_client.panoptes import LinkResolver, PanoptesObject


class Classification(PanoptesObject):
    _api_slug = 'classifications'
    _link_slug = 'classification'
    _edit_attributes = ( )

    @classmethod
    def where(cls, **kwargs):
        scope = kwargs.pop('scope', None)
        if not scope:
            return super(Classification, cls).where(**kwargs)
        return cls.paginated_results(*cls.get(scope, params=kwargs))

LinkResolver.register(Classification)
