Пример #1
0
def index():

    bvSeo = bv.BV(deployment_zone_id='12325',
                  product_id='product1',
                  page_url=request.url,
                  cloud_key='agileville-78B2EF7DE83644CAB5F8C72F2D8C8491',
                  bv_product='reviews',
                  current_request_query_string=request.copy().query.dict,
                  user_agent='msnbot')

    return bvSeo.getSeoWithDisplay()
Пример #2
0
def index():

    bvSeo = bv.BV(
        display_code='12325',
        product_id='product1',
        page_url=request.url,
        seo_key='agileville-78B2EF7DE83644CAB5F8C72F2D8C8491',
        bv_product='reviews',
        current_request_query_string=request.copy().query.dict,
        user_agent='msnbot'
    )

    return bvSeo.getSeoWithDisplay()
Пример #3
0
 def save_request():
     '''
     If the tracking header is set, save the request
     '''
     if request.headers.get(self.TRACKING_HEADER):
         self.tracked_requests[request.headers[self.TRACKING_HEADER]] = {'request': request.copy()}