#NEWLINE# def create_shipping_address( self , user , shipping_address ) : #NEWLINE# #INDENT# '\n        Create and return the shipping address for the current order.\n\n        Compared to self.get_shipping_address(), ShippingAddress is saved and\n        makes sure that appropriate UserAddress exists.\n        ' #NEWLINE# if ( not user ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# shipping_address . save ( ) #NEWLINE# if user . is_authenticated ( ) : #NEWLINE# #INDENT# self . update_address_book ( user , shipping_address ) #NEWLINE# #UNINDENT# return shipping_address