gam.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:GAMADV-XTD 作者: taers232c 项目源码 文件源码
def sendCreateUserNotification(notify, body, i=0, count=0):
  def _makeSubstitutions(field):
    notify[field] = _substituteForUser(notify[field], body[u'primaryEmail'], userName)
    notify[field] = notify[field].replace(u'#domain#', domain)
    notify[field] = notify[field].replace(u'#givenname#', body[u'name'][u'givenName'])
    notify[field] = notify[field].replace(u'#familyname#', body[u'name'][u'familyName'])
    notify[field] = notify[field].replace(u'#password#', notify[u'password'])

  userName, domain = splitEmailAddress(body[u'primaryEmail'])
  if not notify.get(u'subject'):
    notify[u'subject'] = Msg.CREATE_USER_NOTIFY_SUBJECT
  _makeSubstitutions(u'subject')
  if not notify.get(u'message'):
    notify[u'message'] = Msg.CREATE_USER_NOTIFY_MESSAGE
  _makeSubstitutions(u'message')
  send_email(notify[u'subject'], notify[u'message'], notify[u'emailAddress'], i, count)

# gam create user <EmailAddress> <UserAttributes> [notify <EmailAddress>] [subject <String>] [message <String>|(file <FileName> [charset <CharSet>])]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号