Subversion Repositories SmartDukaan

Rev

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

Rev 122 Rev 130
Line 40... Line 40...
40
  print '  bool sendEmailVerification(i64 userid)'
40
  print '  bool sendEmailVerification(i64 userid)'
41
  print '  bool sendSMSVerification(i64 userid)'
41
  print '  bool sendSMSVerification(i64 userid)'
42
  print '  bool confirmEmailVerification(i64 userid)'
42
  print '  bool confirmEmailVerification(i64 userid)'
43
  print '  bool confirmSMSVerification(i64 userid)'
43
  print '  bool confirmSMSVerification(i64 userid)'
44
  print '  bool addSocialhandle(i64 userid, string socialService, string handle)'
44
  print '  bool addSocialhandle(i64 userid, string socialService, string handle)'
-
 
45
  print '  bool sendNewPasswordById(i64 userid)'
-
 
46
  print '  bool sendNewPasswordByHandle(string emailOrHandle, bool isEmail)'
45
  print ''
47
  print ''
46
  sys.exit(0)
48
  sys.exit(0)
47
 
49
 
48
pp = pprint.PrettyPrinter(indent = 2)
50
pp = pprint.PrettyPrinter(indent = 2)
49
host = 'localhost'
51
host = 'localhost'
Line 214... Line 216...
214
  if len(args) != 3:
216
  if len(args) != 3:
215
    print 'addSocialhandle requires 3 args'
217
    print 'addSocialhandle requires 3 args'
216
    sys.exit(1)
218
    sys.exit(1)
217
  pp.pprint(client.addSocialhandle(eval(args[0]),args[1],args[2],))
219
  pp.pprint(client.addSocialhandle(eval(args[0]),args[1],args[2],))
218
 
220
 
-
 
221
elif cmd == 'sendNewPasswordById':
-
 
222
  if len(args) != 1:
-
 
223
    print 'sendNewPasswordById requires 1 args'
-
 
224
    sys.exit(1)
-
 
225
  pp.pprint(client.sendNewPasswordById(eval(args[0]),))
-
 
226
 
-
 
227
elif cmd == 'sendNewPasswordByHandle':
-
 
228
  if len(args) != 2:
-
 
229
    print 'sendNewPasswordByHandle requires 2 args'
-
 
230
    sys.exit(1)
-
 
231
  pp.pprint(client.sendNewPasswordByHandle(args[0],eval(args[1]),))
-
 
232
 
219
transport.close()
233
transport.close()