Пример #1
0
class PassedLawProjectProposer(Item):
    id = Field()
    passing_date = Field(input_processor=processor.Identity(),
                         output_processor=processor.TakeFirst())
    proposer_name = Field()
    passing_number = Field()
    passing_url = Field()
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
Пример #2
0
class Lobbyist(Item):
    name = Field(output_processor=processor.TakeFirst())
    url = Field()
    representatives = Field()
    company_code = Field()
    date_of_inclusion = Field(input_processor=processor.Identity(),
                              output_processor=processor.TakeFirst())
    decision = Field()
    status = Field()
    source_url = Field()
    raw_data = Field()
Пример #3
0
class Question(Item):
    _id = Field()
    name = Field()
    speakers = Field(input_processor=processor.Identity(),
                     output_processor=processor.Identity())
    session = Field(input_processor=processor.Identity(),
                    output_processor=processor.TakeFirst())
    formulation = Field()
    documents = Field(input_processor=processor.Identity(),
                      output_processor=processor.Identity())
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
Пример #4
0
class StenogramTopic(Item):
    _id = Field()
    date = Field(input_processor=processor.Identity(),
                 output_processor=processor.TakeFirst())
    title = Field()
    sitting_no = Field()
    sitting_name = Field()

    session = Field(input_processor=processor.Identity(),
                    output_processor=processor.TakeFirst())

    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
    statements = Field(input_processor=processor.Identity(),
                       output_processor=processor.Identity())
Пример #5
0
class LegalAct(Item):
    _id = Field()
    name = Field()
    kind = Field(
        input_processor=processor.MapCompose(text_type.strip, text_type.lower))
    number = Field()
    date = Field()
    relations = Field(input_processor=processor.Identity(),
                      output_processor=processor.TakeFirst())
    involved = Field(input_processor=processor.Identity(),
                     output_processor=processor.Identity())
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())

    _attachments = Field(input_processor=processor.Identity(),
                         output_processor=processor.Identity())
Пример #6
0
class Document(Item):
    _id = Field()
    name = Field()
    type = Field(
        input_processor=processor.MapCompose(text_type.strip, text_type.lower))
    number = Field()
    date = Field()
    language = Field()
    by = Field(input_processor=processor.Identity(),
               output_processor=processor.Identity())
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
Пример #7
0
class Voting(Item):
    _id = Field()
    type = Field()
    name = Field()
    documents = Field(input_processor=processor.Identity(),
                      output_processor=processor.Identity())
    datetime = Field()
    vote_aye = Field()
    vote_no = Field()
    vote_abstain = Field()
    no_vote = Field()
    total_votes = Field()
    votes = Field(input_processor=processor.Identity(),
                  output_processor=processor.Identity())
    formulation = Field()
    formulation_a = Field()
    formulation_b = Field()
    result = Field()
    question = Field()
    # documents = Field(output_processor=processor.Identity())
    registration = Field(input_processor=processor.Identity(),
                         output_processor=processor.TakeFirst())
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
Пример #8
0
class Person(Item):
    _id = Field()
    first_name = Field()
    last_name = Field()
    dob = Field()
    email = Field(output_processor=unique)
    phone = Field(output_processor=unique)
    home_page = Field(output_processor=absolute_url)
    candidate_page = Field()
    raised_by = Field()
    photo = Field()
    image_urls = Field(output_processor=processor.Identity())
    images = Field(output_processor=processor.Identity())
    office_address = Field()
    parliament = Field(output_processor=unique)
    constituency = Field()
    party_candidate = Field()
    groups = Field(input_processor=processor.Identity(),
                   output_processor=processor.Identity())
    source = Field(input_processor=processor.Identity(),
                   output_processor=processor.TakeFirst())
    _attachments = Field(input_processor=processor.Identity(),
                         output_processor=processor.Identity())
    biography = Field()