Przeglądaj źródła

added --git and update to bulk, no fullname for now

version-14
Rushabh Mehta 13 lat temu
rodzic
commit
cf2e395fc8
2 zmienionych plików z 10 dodań i 2 usunięć
  1. +1
    -1
      py/webnotes/utils/email_lib/bulk.py
  2. +9
    -1
      wnf.py

+ 1
- 1
py/webnotes/utils/email_lib/bulk.py Wyświetl plik

@@ -76,7 +76,7 @@ def send(recipients=[], doctype='Profile', email_field='email', first_name_field
email_field, '%s'), r, as_dict=1) email_field, '%s'), r, as_dict=1)
if not is_unsubscribed(rdata): if not is_unsubscribed(rdata):
# add to queue # add to queue
add(r, sender, subject, add_unsubscribe_link(r) % {"full_name":full_name(rdata)})
add(r, sender, subject, add_unsubscribe_link(r))


def add(email, sender, subject, message): def add(email, sender, subject, message):
"""add to bulk mail queue""" """add to bulk mail queue"""


+ 9
- 1
wnf.py Wyświetl plik

@@ -156,6 +156,9 @@ def setup_options():
parser.add_option("--pull", nargs=2, default=False, parser.add_option("--pull", nargs=2, default=False,
metavar = "remote branch", metavar = "remote branch",
help="git pull (both repos)") help="git pull (both repos)")
parser.add_option("--git", nargs=1, default=False,
metavar = "git options",
help="run git with options in both repos")
parser.add_option("--push", nargs=3, default=False, parser.add_option("--push", nargs=3, default=False,
metavar = "remote branch comment", metavar = "remote branch comment",
help="git commit + push (both repos) [remote] [branch] [comment]") help="git commit + push (both repos) [remote] [branch] [comment]")
@@ -264,7 +267,12 @@ def run():
os.chdir('lib') os.chdir('lib')
os.system('git commit -a -m "%s"' % options.push[2]) os.system('git commit -a -m "%s"' % options.push[2])
os.system('git push %s %s' % (options.push[0], options.push[1])) os.system('git push %s %s' % (options.push[0], options.push[1]))

elif options.git:
os.system('git %s' % options.git)
os.chdir('lib')
os.system('git %s' % options.git)
elif options.checkout: elif options.checkout:
os.system('git checkout %s' % options.checkout) os.system('git checkout %s' % options.checkout)
os.chdir('lib') os.chdir('lib')


Ładowanie…
Anuluj
Zapisz