# Path: lachambre/models.py
# class Jsonify(object):
# class Deputy(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class Party(models.Model, Jsonify):
#     class Meta:
# class Commission(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class CommissionMembership(models.Model, Jsonify):
# class Document(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class InChargeCommissions(models.Model):
# class DocumentPlenary(models.Model):
# class DocumentSenatPlenary(models.Model):
# class DocumentChambre(models.Model):
# class DocumentChambrePdf(models.Model):
# class DocumentSenat(models.Model):
# class DocumentSenatPdf(models.Model):
# class OtherDocumentSenatPdf(models.Model):
# class OtherDocumentChambrePdf(models.Model):
# class DocumentTimeLine(models.Model):
# class WrittenQuestion(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class WrittenQuestionBulletin(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class Question(models.Model, Jsonify):
#     class Meta:
#     class MongoMeta:
# class Analysis(models.Model, Jsonify):
#     class Meta:
#     class MongoMeta:
# class AnnualReport(models.Model, Jsonify, Parsable):
#     def json(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, deputy, cache=False, sync=False):
#     def split_deputy_full_name(deputy, soup):
#     def __unicode__(self):
#     def get_url(self):
#     def __unicode__(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, commission, cache=False, sync=False):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, document, cache=False, sync=False):
#     def _get_first_level_data(dico, dico_nl, document):
#     def _get_in_charged_commissions(dico, dico_nl, document):
#     def _get_plenaries(dico, dico_nl, document):
#     def _get_senat_plenaries(dico, dico_nl, document):
#     def _get_competences(dico, dico_nl, document):
#     def _get_document_senat(dico, dico_nl, document):
#     def _get_document_chambre(dico, dico_nl, document):
#     def _get_authors(chambre_dico, chambre_dico_nl, document_chambre):
#     def _get_next_documents(chambre_dico, chambre_dico_nl, document_chambre):
#     def __unicode__(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, link, cache=False, sync=False):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, soup, legislation, cache=False, sync=False):
#     def get_url(self):
#     def get_url(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):


import logging
from optparse import make_option
from django.core.management.base import BaseCommand
from ipdb import launch_ipdb_on_exception
from lachambre import models
# -*- coding:Utf-8 -*-

#  Dieren Theater - lachambre.be to json sausage machine
#  Copyright (C) 2011-12  Laurent Peuch <cortex@worlddomination.be>
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as
#  published by the Free Software Foundation, either version 3 of the
#  License, or any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

logger = logging.getLogger('')
logger.handlers[1].setLevel(logging.DEBUG)




parsers = {
    'reports': models.AnnualReport,
    'commissions': models.Commission,
    'written_questions': models.WrittenQuestion,

# Path: lachambre/models.py
# class Jsonify(object):
# class Deputy(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class Party(models.Model, Jsonify):
#     class Meta:
# class Commission(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class CommissionMembership(models.Model, Jsonify):
# class Document(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class InChargeCommissions(models.Model):
# class DocumentPlenary(models.Model):
# class DocumentSenatPlenary(models.Model):
# class DocumentChambre(models.Model):
# class DocumentChambrePdf(models.Model):
# class DocumentSenat(models.Model):
# class DocumentSenatPdf(models.Model):
# class OtherDocumentSenatPdf(models.Model):
# class OtherDocumentChambrePdf(models.Model):
# class DocumentTimeLine(models.Model):
# class WrittenQuestion(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class WrittenQuestionBulletin(models.Model, Jsonify, Parsable):
#     class Meta:
#     class MongoMeta:
# class Question(models.Model, Jsonify):
#     class Meta:
#     class MongoMeta:
# class Analysis(models.Model, Jsonify):
#     class Meta:
#     class MongoMeta:
# class AnnualReport(models.Model, Jsonify, Parsable):
#     def json(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, deputy, cache=False, sync=False):
#     def split_deputy_full_name(deputy, soup):
#     def __unicode__(self):
#     def get_url(self):
#     def __unicode__(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, commission, cache=False, sync=False):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, document, cache=False, sync=False):
#     def _get_first_level_data(dico, dico_nl, document):
#     def _get_in_charged_commissions(dico, dico_nl, document):
#     def _get_plenaries(dico, dico_nl, document):
#     def _get_senat_plenaries(dico, dico_nl, document):
#     def _get_competences(dico, dico_nl, document):
#     def _get_document_senat(dico, dico_nl, document):
#     def _get_document_chambre(dico, dico_nl, document):
#     def _get_authors(chambre_dico, chambre_dico_nl, document_chambre):
#     def _get_next_documents(chambre_dico, chambre_dico_nl, document_chambre):
#     def __unicode__(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, link, cache=False, sync=False):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):
#     def fetch_one(klass, soup, legislation, cache=False, sync=False):
#     def get_url(self):
#     def get_url(self):
#     def get_url(self):
#     def fetch_list(klass, cache=False, sync=False):


# Path: scraper/management/commands/scrape.py
import logging
from optparse import make_option
from django.core.management.base import BaseCommand
from ipdb import launch_ipdb_on_exception
from lachambre import models

# -*- coding:Utf-8 -*-

#  Dieren Theater - lachambre.be to json sausage machine
#  Copyright (C) 2011-12  Laurent Peuch <cortex@worlddomination.be>
#
#  This program is free software: you can redistribute it and/or modify
#  it under the terms of the GNU Affero General Public License as
#  published by the Free Software Foundation, either version 3 of the
#  License, or any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU Affero General Public License for more details.
#
#  You should have received a copy of the GNU Affero General Public License
#  along with this program.  If not, see <http://www.gnu.org/licenses/>.

logger = logging.getLogger('')
logger.handlers[1].setLevel(logging.DEBUG)




parsers = {
    'reports': models.AnnualReport,
    'commissions': models.Commission,
    'written_questions': models.WrittenQuestion,

    'documents': models.Document,