equal
deleted
inserted
replaced
230 """ |
230 """ |
231 |
231 |
232 class commandentry(object): |
232 class commandentry(object): |
233 """Represents a declared wire protocol command.""" |
233 """Represents a declared wire protocol command.""" |
234 def __init__(self, func, args='', transports=None, |
234 def __init__(self, func, args='', transports=None, |
235 permission='push'): |
235 permission='push', cachekeyfn=None): |
236 self.func = func |
236 self.func = func |
237 self.args = args |
237 self.args = args |
238 self.transports = transports or set() |
238 self.transports = transports or set() |
239 self.permission = permission |
239 self.permission = permission |
|
240 self.cachekeyfn = cachekeyfn |
240 |
241 |
241 def _merge(self, func, args): |
242 def _merge(self, func, args): |
242 """Merge this instance with an incoming 2-tuple. |
243 """Merge this instance with an incoming 2-tuple. |
243 |
244 |
244 This is called when a caller using the old 2-tuple API attempts |
245 This is called when a caller using the old 2-tuple API attempts |