<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,3 +14,4 @@ data/register_of_interests/representatives/*.pdf
 .*.sw?
 .DS_Store
 features/tmp
+configuration-local.yml</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -38,3 +38,8 @@ Scenario: downloading a list of people
 	Then I should see the &quot;small&quot; images for the list of people
 	And I should see the &quot;big&quot; images for the list of people
 
+@focus
+Scenario: attempting to download a person not found in parlinfo
+	Given a list of people &quot;John Armitage&quot;
+	And not-found parlinfo pages for &quot;John Lindsay Armitage, John Armitage&quot;
+	When I download the list of people</diff>
      <filename>features/people_downloader.feature</filename>
    </modified>
    <modified>
      <diff>@@ -7,6 +7,9 @@ Given /^not-found parlinfo pages for &quot;([^\&quot;]*)&quot;$/ do |name_list|
 		@app.parlinfo.prepare_not_found_page_for!(name)
 	end
 end
+Given /^a not\-found parlinfo page for &quot;([^\&quot;]*)&quot;$/ do |name|
+	@app.parlinfo.prepare_not_found_page_for!(name)
+end
 
 Given /^a parlinfo person page for &quot;([^\&quot;]*)&quot; \(stubbed\)$/ do |name|
 	@app.parlinfo.prepare_stub_page_for!(name)</diff>
      <filename>features/step_definitions/parlinfo_steps.rb</filename>
    </modified>
    <modified>
      <diff>@@ -150,8 +150,7 @@ Content-Length: #{text.size}
 
 	require 'person'
 	class Person &lt; Namespace
-		# NOTE basically fixtures... move them outta here!
-		def make!(name)
+		def make(name)
 			person_params = case name
 											when &quot;Bob Loblaw&quot;
 												{
@@ -159,8 +158,19 @@ Content-Length: #{text.size}
 													:name =&gt; Name.new(:first =&gt; 'Bob', :middle =&gt; 'Francis', :last =&gt; 'Loblaw'),
 													:alternate_names =&gt; [Name.new(:first =&gt; 'Robert', :middle =&gt; 'Francis', :last =&gt; 'Loblaw')]
 												}
+											when &quot;John Armitage&quot;
+												{
+													:count =&gt; 2,
+													:name =&gt; Name.new(:first =&gt; 'John', :middle =&gt; 'Lindsay', :last =&gt; 'Armitage')
+												}
+											else
+												raise &quot;Person fixture not found for #{name}&quot;
 											end
-			@person = ::Person.new(person_params)
+			::Person.new(person_params)
+		end
+
+		def make!(name)
+			@person = make(name)
 			self
 		end
 
@@ -200,6 +210,10 @@ Content-Length: #{text.size}
 			self
 		end
 
+		def download!
+			download.download_page(page, person, fixture.tmp_dir(&quot;small&quot;), fixture.tmp_dir(&quot;big&quot;))
+		end
+
 		def iterate_bio_pages_of!(people)
 			@pages = []
 			downloader.each_person_bio_page(people) {|page| @pages &lt;&lt; page}</diff>
      <filename>features/support/oa_app.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,9 +7,24 @@ class Configuration
   
   @@conf = nil
 
+
   # Load the configuration
   def self.global_conf
-    @@conf ||= YAML.load_file( &quot;#{File.dirname(__FILE__)}/../configuration.yml&quot; ) || {}
+    unless @@conf
+      here = File.dirname(__FILE__)
+      @@conf = YAML.load_file( &quot;#{here}/../configuration.yml&quot; ) || {}
+
+      local_config = &quot;#{here}/../configuration-local.yml&quot;
+      if File.exist?(local_config)
+        @@conf.merge!( YAML.load_file( local_config ) )
+      end
+
+      @@conf.keys.each do |key|
+        #@@conf
+      end
+    end
+
+    @@conf
   end
   def global_conf; self.class.global_conf end
   </diff>
      <filename>lib/configuration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,7 @@ class PeopleImageDownloader
         image.resize(&quot;%dx%d&quot; % [@@SMALL_THUMBNAIL_WIDTH * 2, @@SMALL_THUMBNAIL_HEIGHT * 2]).write(large_img)
 
         small_img = File.join( small_image_dir, &quot;#{person.id_count}.jpg&quot;)
-        image.resize(&quot;%dx%d&quot; % [@@SMALL_THUMBNAIL_WIDTH, @@SMALL_THUMBNAIL_HEIGHT]    ).write(small_img)
+        image.resize(&quot;%dx%d&quot; % [@@SMALL_THUMBNAIL_WIDTH    , @@SMALL_THUMBNAIL_HEIGHT]    ).write(small_img)
       else
         puts &quot;WARNING: Skipping photo for #{name.full_name} because they don't exist in the list of people&quot;
       end
@@ -85,6 +85,8 @@ class PeopleImageDownloader
         return page
       end
     end
+
+    nil
   end
   
   def each_person_bio_page(people)</diff>
      <filename>lib/people_image_downloader.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,4 +9,5 @@ conf = Configuration.new
 
 people = PeopleCSVReader.read_members
 puts &quot;Downloading person images...&quot;
-people.download_images(&quot;#{conf.file_image_path}/mps&quot;, &quot;#{conf.file_image_path}/mpsL&quot;)
+#people.download_images(&quot;#{conf.file_image_path}/mps&quot;, &quot;#{conf.file_image_path}/mpsL&quot;)
+people.download_images(&quot;/tmp/mps&quot;, &quot;/tmp/mpsL&quot;)</diff>
      <filename>member-images.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7b253eb3074231f08a2c43e1de6209b04e702769</id>
    </parent>
  </parents>
  <author>
    <name>lachie</name>
    <email>lachiec@gmail.com</email>
  </author>
  <url>http://github.com/lachie/openaustralia-parser/commit/392a3cb5ccc9f570197193c33ebcd52287e413dc</url>
  <id>392a3cb5ccc9f570197193c33ebcd52287e413dc</id>
  <committed-date>2009-06-14T17:18:15-07:00</committed-date>
  <authored-date>2009-06-14T17:18:15-07:00</authored-date>
  <message>tested and fixed not-found biopage bug</message>
  <tree>7c92d47bbe991e84d83828ee07b8055925aee62b</tree>
  <committer>
    <name>lachie</name>
    <email>lachiec@gmail.com</email>
  </committer>
</commit>
