Esempio n. 1
0
 def __before__(self, **kwargs):
     c.proposal_types = ProposalType.find_all()
     c.target_audiences = TargetAudience.find_all()
     c.accommodation_assistance_types = AccommodationAssistanceType.find_all()
     c.travel_assistance_types = TravelAssistanceType.find_all()
     c.proposal_event_targets = ProposalEventTarget.find_all()
     log.debug("event target list: %s", c.proposal_event_targets)
Esempio n. 2
0
 def _to_python(self, value, state):
     return AccommodationAssistanceType.find_by_id(value)
Esempio n. 3
0
 def __before__(self, **kwargs):
     c.proposal_types = ProposalType.find_all()
     c.target_audiences = TargetAudience.find_all()
     c.accommodation_assistance_types = AccommodationAssistanceType.find_all(
     )
     c.travel_assistance_types = TravelAssistanceType.find_all()
Esempio n. 4
0
 def __before__(self, **kwargs):
     c.proposal_types = ProposalType.find_all()
     c.target_audiences = TargetAudience.find_all()
     c.accommodation_assistance_types = AccommodationAssistanceType.find_all()
     c.travel_assistance_types = TravelAssistanceType.find_all()
Esempio n. 5
0
 def _to_python(self, value, state):
     return AccommodationAssistanceType.find_by_id(value)