def __init__(self, session, chamber, bill_id, title, **kwargs):
        """
        Create a new :obj:`Bill`.

        :param session: the session in which the bill was introduced.
        :param chamber: the chamber in which the bill was introduced:
          either 'upper' or 'lower'
        :param bill_id: an identifier assigned to this bill by the legislature
          (should be unique within the context of this chamber/session)
          e.g.: 'HB 1', 'S. 102', 'H.R. 18'
        :param title: a title or short description of this bill provided by
          the official source

        Any additional keyword arguments will be associated with this
        bill and stored in the database.
        """
        super(Bill, self).__init__('bill', **kwargs)
        self._seen_versions = set()
        self['session'] = session
        self['chamber'] = chamber
        self['bill_id'] = bill_id
        self['title'] = title
        self['sponsors'] = []
        self['votes'] = []
        self['versions'] = []
        self['actions'] = []
        self['documents'] = []
        self['alternate_titles'] = []
        self['companions'] = []

        if not 'type' in kwargs or not kwargs['type']:
            self['type'] = ['bill']
        elif isinstance(kwargs['type'], string_types):
            self['type'] = [kwargs['type']]
        else:
            self['type'] = list(kwargs['type'])
def __init__ ( self , session , chamber , bill_id , title , ** kwargs ) : super ( Bill , self ) . __init__ ( 'bill' , ** kwargs ) self . _seen_versions = set ( ) self [ 'session' ] = session self [ 'chamber' ] = chamber self [ 'bill_id' ] = bill_id self [ 'title' ] = title self [ 'sponsors' ] = [ ] self [ 'votes' ] = [ ] self [ 'versions' ] = [ ] self [ 'actions' ] = [ ] self [ 'documents' ] = [ ] self [ 'alternate_titles' ] = [ ] self [ 'companions' ] = [ ] if not 'type' in kwargs or not kwargs [ 'type' ] : self [ 'type' ] = [ 'bill' ] elif isinstance ( kwargs [ 'type' ] , string_types ) : self [ 'type' ] = [ kwargs [ 'type' ] ] else : self [ 'type' ] = list ( kwargs [ 'type' ] )
Create a new :obj:`Bill`.

        :param session: the session in which the bill was introduced.
        :param chamber: the chamber in which the bill was introduced:
          either 'upper' or 'lower'
        :param bill_id: an identifier assigned to this bill by the legislature
          (should be unique within the context of this chamber/session)
          e.g.: 'HB 1', 'S. 102', 'H.R. 18'
        :param title: a title or short description of this bill provided by
          the official source

        Any additional keyword arguments will be associated with this
        bill and stored in the database.