コード例 #1
0
  def create_mock_recommendation(self):
    recommendation = overview_page_pb2.OverviewPageRecommendation()

    for idx in range(0, 3):
      recommendation.faq_tips.add().link = "faq_link" + str(idx)
      recommendation.host_tips.add().link = "host_link" + str(idx)
      recommendation.device_tips.add().link = "device_link" + str(idx)
      recommendation.documentation_tips.add().link = "doc_link" + str(idx)

    return recommendation
コード例 #2
0
 def create_empty_recommendation(self):
   return overview_page_pb2.OverviewPageRecommendation()