def is_task_stub_mutable(context, task_stub):
 if context.is_admin:
  return True
 if (context.owner is None):
  return False
 return (task_stub.owner == context.owner)

def is_task_stub_mutable ( context , task_stub ) : if context . is_admin : return True if ( context . owner is None ) : return False return ( task_stub . owner == context . owner )
return true if the task stub is mutable in this context .