Dash:
[t2-trunk.git] / package / mail / vmailmgr / python_rename.patch
blob2249f5b4712dc85d17367e4c79382a31752c7245
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 @@
20 import daemon
21 import string
22 -import types
23 +import vmmtypes
25 def execute(command, *args):
26 return daemon.execute(command, args)
27 @@ -33,7 +33,7 @@
28 if not r:
29 break
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)))
33 return users
35 def adduser(domain, newuser, password, newpass, maildir=None, forwards=[]):
36 @@ -42,7 +42,7 @@
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
47 @@ -5,7 +5,7 @@
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