本文整理汇总了Python中datastore.DataStore.get_agendaitems_by_request_id方法的典型用法代码示例。如果您正苦于以下问题:Python DataStore.get_agendaitems_by_request_id方法的具体用法?Python DataStore.get_agendaitems_by_request_id怎么用?Python DataStore.get_agendaitems_by_request_id使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类datastore.DataStore
的用法示例。
在下文中一共展示了DataStore.get_agendaitems_by_request_id方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: str
# 需要导入模块: from datastore import DataStore [as 别名]
# 或者: from datastore.DataStore import get_agendaitems_by_request_id [as 别名]
solr_body = ''
solr_attachments = {}
solr_attachment_bodies = {}
solr_agendaitem_subjects = {}
solr_sessions = {}
solr_committees = {}
solr_people = {}
solr_streets = {}
print "%d von %d" % (num_docs, num_overall)
print "Antrag:", request['request_identifier'], request['request_date']
print "Thema:", request['request_subject']
print ""
# Verknüpfte Tagesordnungspunkte
agendaitems = db.get_agendaitems_by_request_id(request['request_id'])
for agendaitem in agendaitems:
if agendaitem['session_id'] is not None:
if agendaitem['session_identifier'] is not None:
solr_sessions[agendaitem['session_id']] = str(agendaitem['session_id']) + ' ' + agendaitem['session_identifier'].decode('utf-8')
if agendaitem['committee_id'] is not None:
result = ''
solr_committees[agendaitem['committee_id']] = str(agendaitem['committee_id']) + ' ' + agendaitem['committee_title'].decode('utf-8') + result
if agendaitem['agendaitem_subject'] is not None:
solr_agendaitem_subjects[int(agendaitem['agendaitem_id'])] = agendaitem['agendaitem_subject'].decode('utf-8')
if agendaitem['agendaitem_result'] is not None:
solr_agendaitem_subjects[int(agendaitem['agendaitem_id'])] += ' '+ agendaitem['agendaitem_result'].decode('utf-8')
# match streeets
matching_streets_subjects = match_streets(streets, agendaitem['agendaitem_subject'])
if matching_streets_subjects is not None:
for street in matching_streets_subjects: