On 03/03/2014 03:10 AM, Evan Dandrea wrote:
> 110 +@hooks.hook('json_status-relation-changed')
> 111 +def json_status_relation_changed():
> 112 + json_status_relation_joined()
>
> Minor nit, but couldn't you just decorate json_status_relation_joined() with hooks.hook('json_status-relation-changed')?
I wasn't positive if was safe with the hooks.hook decorator to have it
twice for a function. I'm re-doplying this morning, so it should be easy
to find out :)
On 03/03/2014 03:10 AM, Evan Dandrea wrote: hook('json_ status- relation- changed' ) relation_ changed( ): relation_ joined( ) relation_ joined( ) with hooks.hook( 'json_status- relation- changed' )?
> 110 +@hooks.
> 111 +def json_status_
> 112 + json_status_
>
> Minor nit, but couldn't you just decorate json_status_
I wasn't positive if was safe with the hooks.hook decorator to have it
twice for a function. I'm re-doplying this morning, so it should be easy
to find out :)