本文整理汇总了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)