def tag(accessing_obj, accessed_obj, *args, **kwargs):
 if hasattr(accessing_obj, 'obj'):
  accessing_obj = accessing_obj.obj
 tagkey = (args[0] if args else None)
 category = (args[1] if (len(args) > 1) else None)
 return accessing_obj.tags.get(tagkey, category=category)

def tag ( accessing_obj , accessed_obj , * args , ** kwargs ) : if hasattr ( accessing_obj , 'obj' ) : accessing_obj = accessing_obj . obj tagkey = ( args [ 0 ] if args else None ) category = ( args [ 1 ] if ( len ( args ) > 1 ) else None ) return accessing_obj . tags . get ( tagkey , category = category )
restful crud controller .