1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../vmailmgr/python_rename.patch
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
25 def execute(command, *args):
26 return daemon.execute(command, args)
30 (username,data) = string.split(r, '\0', 1)
31 - users.append(types.NamedVUser(username, types.VUser(data)))
32 + users.append(vmmtypes.NamedVUser(username, vmmtypes.VUser(data)))
35 def adduser(domain, newuser, password, newpass, maildir=None, forwards=[]):
37 maildir or '') + tuple(forwards))
39 def lookup(domain, username, password):
40 - return types.VUser(execute('lookup', domain, username, password))
41 + return vmmtypes.VUser(execute('lookup', domain, username, password))
43 def autoresponse(domain, user, password, action, message=None):
44 cmd = [ domain, user, password, action ]
45 --- ./python/Makefile.am.orig 2004-05-07 11:41:30.000000000 -0400
46 +++ ./python/Makefile.am 2004-05-07 11:42:45.000000000 -0400
48 constants.py constants.pyc constants.pyo \
49 daemon.py daemon.pyc daemon.pyo \
50 local.py local.pyc local.pyo \
51 - types.py types.pyc types.pyo
52 + vmmtypes.py vmmtypes.pyc vmmtypes.pyo
53 EXTRA_DIST = __init__.py commands.py config.py constants.py daemon.py types.py
54 CLEANFILES = local.py *.pyc *.pyo