本文整理匯總了Python中r2.lib.pages.LinkInfoPage類的典型用法代碼示例。如果您正苦於以下問題:Python LinkInfoPage類的具體用法?Python LinkInfoPage怎麽用?Python LinkInfoPage使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了LinkInfoPage類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: GET_pay
def GET_pay(self, link, campaign):
# no need for admins to play in the credit card area
if c.user_is_loggedin and c.user._id != link.author_id:
return self.abort404()
if not campaign.link_id == link._id:
return self.abort404()
if g.authorizenetapi:
data = get_account_info(c.user)
content = PaymentForm(link, campaign,
customer_id=data.customerProfileId,
profiles=data.paymentProfiles,
max_profiles=PROFILE_LIMIT)
else:
content = None
res = LinkInfoPage(link=link,
content=content,
show_sidebar=False)
return res.render()
示例2: __init__
def __init__(self, *a, **kw):
kw['show_sidebar'] = False
LinkInfoPage.__init__(self, *a, **kw)