import jet
import jet.websites.jeffandmere as jeffandmere



def yield_data(psp_directory, **kwargs):
	relative_root = jeffandmere.get_relative_root(**kwargs)

	text =  '<p class=center>So it looks like you found our registry page...</p>\n\n'

	bottom_text =  '<p class=center>We understand that we are putting you through a great deal\n'
	bottom_text += 'of financial strain to attend our ceremony, and request no presents\n'
	bottom_text += 'other than your presence.  However, if you truly feel inclined to get us\n'
	bottom_text += 'a gift, following are some options:</p>'

# bottom_text += '<p class=center>'
# bottom_text += '<hr width="30%" color="#555577"></hr>'
# bottom_text += '</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += '<br><b>Traditional</b><br>'
	bottom_text += 'Ship To: Meredith Chace c/o Julie Eldridge, 14 Melvin St. #1, Somerville, MA, 02145\n'
	bottom_text += '</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www.crateandbarrel.com/Gift-Registry/Guest/View-Registry.aspx?grid=4814788', 'Crate and Barrel')
	bottom_text += '</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www1.macys.com/registry/wedding/guest/?registryId=633595', 'Macy\'s')
	bottom_text += '</p>\n'

# bottom_text += '<p class=center>'
# bottom_text += '<hr width="30%" color="#555577"></hr>'
# bottom_text += '</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += '<br><br><b>Wine-Not?</b><br>'
	bottom_text += 'Ship Wine To: Meredith Chace c/o Mary Schroeder,\n'
	bottom_text += '12 DeerHaven Rd., Nashua, NH, 03064</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www.empirewine.com/wine/bollinger-special-cuvee-nv/', 'Bollinger')
	bottom_text += '</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www.empirewine.com/wine/cannonball-cabernet-sauvignon-2008/', 'Cannonball Cabernet Sauvingnon')
	bottom_text += ' (any year)</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www.empirewine.com/wine/la-crema-sonoma-chardonnay-2009/', 'La Crema Chardonnay (Sonoma)')
	bottom_text += ' (any year)</p>\n'

	bottom_text += '<p class=center>'
	bottom_text += jeffandmere.get_link(relative_root, 'http://www.empirewine.com/wine/mohua-sauvignon-blanc-2010/', 'Mohua Sauvignon Blanc')
	bottom_text += ' (any year)</p>\n'


	for data in jeffandmere.yield_page('Registry', jeffandmere.yield_standard_page,
	                                   text          = text,
	                                   image         = '../Wedding/Images/Meredith Tries to Register for the Wedding.jpg',
	                                   image_hover   = 'NOOOOOOOOOOOOOOOOO!',
	                                   bottom_text   = bottom_text,
	                                   page_height   = 1250,
	                                   **kwargs):
		yield data

