You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/05/21 16:18:47 UTC

[GitHub] [incubator-superset] john-bodley commented on a change in pull request #7403: [WIP] #5791: Return 404 when requesting access to unexisting dashboard ID

john-bodley commented on a change in pull request #7403: [WIP] #5791: Return 404 when requesting access to unexisting dashboard ID
URL: https://github.com/apache/incubator-superset/pull/7403#discussion_r286111171
 
 

 ##########
 File path: superset/utils/core.py
 ##########
 @@ -126,9 +126,13 @@ def __repr__(self):
         """Return the function's docstring."""
         return self.func.__doc__
 
+    def __copy__(self):
+        return _memoized(self.func, self.watch)
+
     def __get__(self, obj, objtype):
         if not self.is_method:
-            self.is_method = True
+            copy = self.__copy__()
+            return functools.partial(copy.__call__, obj)
 
 Review comment:
   Could you provide some more context as to what you’re trying to achieve here?  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org