@gen.coroutine
  def _PostComment(self, sharer_user, timestamp, message, asset_id=None):
    comment_id = Comment.ConstructCommentId(timestamp, self._new_user.webapp_dev_id, self._unique_id)
    self._unique_id += 1
    comment = yield Comment.CreateNew(self._client,
                                      viewpoint_id=self._viewpoint_id,
                                      comment_id=comment_id,
                                      user_id=sharer_user.user_id,
                                      asset_id=asset_id,
                                      timestamp=timestamp,
                                      message=message)

    # Create post_comment activity.
    yield self._CreateActivity(sharer_user, timestamp, Activity.CreatePostComment, cm_dict={'comment_id': comment_id})

    raise gen.Return(comment)
Prepare a value that is being used in a query for PyMongo.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/op/create_prospective_op.py/CreateProspectiveOperation._PostComment--crossover with--dataset/ETHPy150Open MongoEngine/mongoengine/mongoengine/base/fields.py/BaseField.prepare_query_value