Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/i/z/izug.ticketbox-4.5.8/izug/ticketbox/tests/helpers.py   izug.ticketbox(Download)
from Acquisition import aq_inner, aq_parent
from izug.ticketbox.adapters import ResponseContainer
from izug.ticketbox.handlers import generate_datagrid_column_id
from izug.ticketbox.tests.data import AREA_DATA
from izug.ticketbox.tests.data import PRIORITY_DATA
    ticketbox.setAvailableReleases(RELEASE_DATA)
    ticketbox.setAvailableAreas(AREA_DATA)
    ticketbox.setAvailablePriorities(PRIORITY_DATA)
 
    generate_datagrid_column_id(ticketbox, None)
    ticket.getField('state').set(ticket, STATE_DATA[data_index]['id'])
    ticket.getField('area').set(ticket, AREA_DATA[data_index]['id'])
    ticket.getField('priority').set(ticket, PRIORITY_DATA[data_index]['id'])
    ticket.getField('releases').set(ticket, RELEASE_DATA[data_index]['id'])
    ticket.getField('responsibleManager').set(ticket, "test_user_1_")