Subversion Repositories SmartDukaan

Rev

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

Rev 5443 Rev 5591
Line 34... Line 34...
34
  print '  void fulfillPO(i64 purchaseOrderId, i64 itemId, i64 quantity)'
34
  print '  void fulfillPO(i64 purchaseOrderId, i64 itemId, i64 quantity)'
35
  print '  void updatePurchaseOrder(PurchaseOrder purchaseOrder)'
35
  print '  void updatePurchaseOrder(PurchaseOrder purchaseOrder)'
36
  print '  void unFulfillPO(i64 purchaseId, i64 itemId, i64 quantity)'
36
  print '  void unFulfillPO(i64 purchaseId, i64 itemId, i64 quantity)'
37
  print '   getInvoices(i64 date)'
37
  print '   getInvoices(i64 date)'
38
  print '  void createInvoice(Invoice invoice)'
38
  print '  void createInvoice(Invoice invoice)'
-
 
39
  print '  Supplier addSupplier(Supplier supplier)'
-
 
40
  print '  void updateSupplier(Supplier supplier)'
39
  print ''
41
  print ''
40
  sys.exit(0)
42
  sys.exit(0)
41
 
43
 
42
pp = pprint.PrettyPrinter(indent = 2)
44
pp = pprint.PrettyPrinter(indent = 2)
43
host = 'localhost'
45
host = 'localhost'
Line 174... Line 176...
174
  if len(args) != 1:
176
  if len(args) != 1:
175
    print 'createInvoice requires 1 args'
177
    print 'createInvoice requires 1 args'
176
    sys.exit(1)
178
    sys.exit(1)
177
  pp.pprint(client.createInvoice(eval(args[0]),))
179
  pp.pprint(client.createInvoice(eval(args[0]),))
178
 
180
 
-
 
181
elif cmd == 'addSupplier':
-
 
182
  if len(args) != 1:
-
 
183
    print 'addSupplier requires 1 args'
-
 
184
    sys.exit(1)
-
 
185
  pp.pprint(client.addSupplier(eval(args[0]),))
-
 
186
 
-
 
187
elif cmd == 'updateSupplier':
-
 
188
  if len(args) != 1:
-
 
189
    print 'updateSupplier requires 1 args'
-
 
190
    sys.exit(1)
-
 
191
  pp.pprint(client.updateSupplier(eval(args[0]),))
-
 
192
 
179
else:
193
else:
180
  print 'Unrecognized method %s' % cmd
194
  print 'Unrecognized method %s' % cmd
181
  sys.exit(1)
195
  sys.exit(1)
182
 
196
 
183
transport.close()
197
transport.close()