Esempio n. 1
0
def search_settings(browser):
    public_settings(browser)
    browser.inspect.add('search_feedback', '//div[@class="searchresults"]/p')
    browser.inspect.add(
        'search_results',
        '//div[@class="searchresults"]//a[@class="searchresult-link"]',
        type='link')
def search_settings(browser):
    public_settings(browser)
    browser.inspect.add(
        'search_feedback',
        '//div[@class="searchresults"]/p')
    browser.inspect.add(
        'search_results',
        '//div[@class="searchresults"]//a[@class="searchresult-link"]',
        type='link')
def calendar_settings(browser):
    public_settings(browser)
    browser.inspect.add(
        'items',
        css=".newsitemheading",
        type='text')
    browser.inspect.add(
        'introduction',
        css='h2.calendar_intro',
        type='text',
        unique=True)
    browser.inspect.add(
        'next_link',
        css='a.nextmonth')
    browser.inspect.add(
        'prev_link',
        css='a.prevmonth')
def poll_settings(browser):
    public_settings(browser)
    browser.inspect.add('title', css='.poll h1')
    browser.inspect.add('vote_question', css='.poll h2')
    browser.inspect.add('results_question', css='.poll h3')
    browser.inspect.add('forms', css='form.poll-form', type='form')
def poll_settings(browser):
    public_settings(browser)
    browser.inspect.add('title', css='.poll h1')
    browser.inspect.add('vote_question', css='.poll h2')
    browser.inspect.add('results_question', css='.poll h3')
    browser.inspect.add('forms', css='form.poll-form', type='form')
def news_settings(browser):
    public_settings(browser)
    browser.inspect.add("newsitems", css=".newsitemheading", type="text")