def pass_community(f):
@wraps(f)<EOL>def inner(community_id, *args, **kwargs):<EOL><INDENT>c = Community.get(community_id)<EOL>if c is None:<EOL><INDENT>abort(<NUM_LIT>)<EOL><DEDENT>return f(c, *args, **kwargs)<EOL><DEDENT>return inner<EOL>
Decorator to pass community.