OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
2.1 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../vmailmgr/python_rename.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- ./python/commands.py.orig 2004-05-07 11:41:20.000000000 -0400
  17. +++ ./python/commands.py 2004-05-07 11:42:25.000000000 -0400
  18. @@ -16,7 +16,7 @@
  19. import daemon
  20. import string
  21. -import types
  22. +import vmmtypes
  23. def execute(command, *args):
  24. return daemon.execute(command, args)
  25. @@ -33,7 +33,7 @@
  26. if not r:
  27. break
  28. (username,data) = string.split(r, '\0', 1)
  29. - users.append(types.NamedVUser(username, types.VUser(data)))
  30. + users.append(vmmtypes.NamedVUser(username, vmmtypes.VUser(data)))
  31. return users
  32. def adduser(domain, newuser, password, newpass, maildir=None, forwards=[]):
  33. @@ -42,7 +42,7 @@
  34. maildir or '') + tuple(forwards))
  35. def lookup(domain, username, password):
  36. - return types.VUser(execute('lookup', domain, username, password))
  37. + return vmmtypes.VUser(execute('lookup', domain, username, password))
  38. def autoresponse(domain, user, password, action, message=None):
  39. cmd = [ domain, user, password, action ]
  40. --- ./python/Makefile.am.orig 2004-05-07 11:41:30.000000000 -0400
  41. +++ ./python/Makefile.am 2004-05-07 11:42:45.000000000 -0400
  42. @@ -5,7 +5,7 @@
  43. constants.py constants.pyc constants.pyo \
  44. daemon.py daemon.pyc daemon.pyo \
  45. local.py local.pyc local.pyo \
  46. - types.py types.pyc types.pyo
  47. + vmmtypes.py vmmtypes.pyc vmmtypes.pyo
  48. EXTRA_DIST = __init__.py commands.py config.py constants.py daemon.py types.py
  49. CLEANFILES = local.py *.pyc *.pyo