Subversion Repositories SmartDukaan

Rev

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

Rev 3768 Rev 3815
Line 107... Line 107...
107
                      default="localhost",
107
                      default="localhost",
108
                   help="Database server.")
108
                   help="Database server.")
109
    (options, args) = parser.parse_args()
109
    (options, args) = parser.parse_args()
110
    if len(args) != 0:
110
    if len(args) != 0:
111
        parser.error("You've supplied extra arguments. Are you sure you want to run this program?")
111
        parser.error("You've supplied extra arguments. Are you sure you want to run this program?")
112
    #if options.file == None:
112
    if options.file == None:
113
    #    parser.error("Excel File with bulk orders not supplied.")
113
        parser.error("Excel File with bulk orders not supplied.")
114
 
114
 
115
    Dataservice.initialize(db_hostname=options.host)
115
    Dataservice.initialize(db_hostname=options.host)
116
    
116
    
117
    #load_orders(options.file)
117
    load_orders(options.file)
118
    load_orders('/home/vikas/RTGS.xls')
118
    #load_orders('/home/vikas/RTGS.xls')
119
    
119
    
120
if __name__ == '__main__':
120
if __name__ == '__main__':
121
    main()
-
 
122
121
    main()
-
 
122