Subversion Repositories SmartDukaan

Rev

Rev 6980 | Rev 6988 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6980 Rev 6985
Line 4491... Line 4491...
4491
    
4491
    
4492
    doc.addPageTemplates([PageTemplate(id='TwoCol',frames=[frame1]), ])
4492
    doc.addPageTemplates([PageTemplate(id='TwoCol',frames=[frame1]), ])
4493
 
4493
 
4494
    #start the construction of the pdf
4494
    #start the construction of the pdf
4495
    doc.build(Story)
4495
    doc.build(Story)
-
 
4496
 
-
 
4497
def change_shipping_address(orderId, line1, line2, city, state, pin):
-
 
4498
    order = Order.get_by(id = orderId)
4496
    print 'done'
4499
    if order:
-
 
4500
        order.customer_address1 = line1
-
 
4501
        order.customer_address2 = line2
-
 
4502
        order.customer_city = city
-
 
4503
        order.customer_state = state
-
 
4504
        order.customer_pin = pin
-
 
4505
        session.commit()
-
 
4506
        return True
-
 
4507
    return False
4497
 
4508
 
4498
if __name__ == '__main__':
4509
if __name__ == '__main__':
4499
    print 'helllo'
4510
    print 'helllo'
4500
4511