Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/k/n/kninfra-HEAD/utils/misc/forum-email.py   kninfra(Download)
        toEmail.add(username)
    for username in toEmail:
        m = OldKnUser.objects.get(username=username)
        txt = templ % ({'fullName': m.full_name(),
                'password': pwd_lut[m.username],

src/k/n/kninfra-HEAD/utils/set-photo.py   kninfra(Download)
def main(username, photo):
    user = OldKnUser.objects.get(username=username)
    subprocess.call(['convert', '-resize', '200x', photo,
            "jpg:%s.jpg" % (path.join(SMOELEN_PHOTOS_PATH,
                    user.username))])