示例#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)
示例#2
0
文件: review.py 项目: Secko/zookeepr
    def index(self):
        c.proposal_type_collection = ProposalType.find_all()

        c.review_collection_by_type = {}
        for proposal_type in c.proposal_type_collection:
            query = Review.by_reviewer(h.signed_in_person().id).join(Proposal).filter_by(proposal_type_id=proposal_type.id)
            c.review_collection_by_type[proposal_type] = query.all()
        return render('/review/list.mako')
示例#3
0
    def latex(self):
        c.proposal_type = ProposalType.find_all()

        for type in c.proposal_type:
          print type

        response.headers['Content-type']='text/plain; charset=utf-8'

        return render('/proposal/latex.mako')
示例#4
0
    def latex(self):
        c.proposal_type = ProposalType.find_all()

        for type in c.proposal_type:
            print type

        response.headers['Content-type'] = 'text/plain; charset=utf-8'

        return render('/proposal/latex.mako')
示例#5
0
    def latex(self):
        c.proposal_type = ProposalType.find_all()

        for type in c.proposal_type:
            print type

        response.headers["Content-type"] = "text/plain; charset=utf-8"

        return render("/proposal/latex.mako")
示例#6
0
    def index(self):
        c.proposal_type_collection = ProposalType.find_all()

        c.review_collection_by_type = {}
        for proposal_type in c.proposal_type_collection:
            query = Review.by_reviewer(
                h.signed_in_person()).join(Proposal).filter_by(
                    proposal_type_id=proposal_type.id)
            c.review_collection_by_type[proposal_type] = query.all()
        return render('/review/list.mako')
示例#7
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()
示例#8
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()
示例#9
0
 def index(self):
     c.proposal_type_collection = ProposalType.find_all()
     return render("/proposal_type/list.mako")
示例#10
0
 def index(self):
     c.proposal_type_collection = ProposalType.find_all()
     return render('/proposal_type/list.mako')