summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 73137cd)
raw | patch | inline | side by side (parent: 73137cd)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 01:28:33 +0000 (01:28 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 3 Aug 2001 01:28:33 +0000 (01:28 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@199 57a73879-2fb5-44c3-a270-3262357dd7e2
cgi-bin/roundup.cgi | patch | blob | history | |
roundup-admin | patch | blob | history | |
roundup-mailgw | patch | blob | history | |
roundup-server | patch | blob | history | |
roundup/init.py | patch | blob | history |
diff --git a/cgi-bin/roundup.cgi b/cgi-bin/roundup.cgi
index c1c0c0d86c026c696cf870cfaa16f0d732cc1ec0..2cf8efa45c842962062466c50e0048ff8aa6b6a3 100755 (executable)
--- a/cgi-bin/roundup.cgi
+++ b/cgi-bin/roundup.cgi
#!/usr/bin/env python
-# $Id: roundup.cgi,v 1.6 2001-08-03 00:59:34 richard Exp $
+# $Id: roundup.cgi,v 1.7 2001-08-03 01:28:33 richard Exp $
# python version check
import sys
os.environ['PATH_INFO'] = string.join(path[2:], '/')
if ROUNDUP_INSTANCE_HOMES.has_key(instance):
instance_home = ROUNDUP_INSTANCE_HOMES[instance]
- instance = imp.load_module('instance', None, instance_home,
- ('', '', 5))
+ instance = imp.load_package('instance', instance_home)
else:
raise ValueError, 'No such instance "%s"'%instance
main(instance, out)
#
# $Log: not supported by cvs2svn $
+# Revision 1.6 2001/08/03 00:59:34 richard
+# Instance import now imports the instance using imp.load_module so that
+# we can have instance homes of "roundup" or other existing python package
+# names.
+#
# Revision 1.5 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#
diff --git a/roundup-admin b/roundup-admin
index fbf6cac5fef12ca7e245256ea22333473e19fce2..47ecd6c4e14e9374901a92578e6ab0957eb5e720 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
#! /usr/bin/python
-# $Id: roundup-admin,v 1.11 2001-08-03 00:59:34 richard Exp $
+# $Id: roundup-admin,v 1.12 2001-08-03 01:28:33 richard Exp $
import sys
if int(sys.version[0]) < 2:
password = getpass.getpass(' password: ')
# get the instance
- instance = imp.load_module('instance', None, instance_home, ('', '', 5))
+ instance = imp.load_package('instance', instance_home)
function = figureCommands().get(command, None)
#
# $Log: not supported by cvs2svn $
+# Revision 1.11 2001/08/03 00:59:34 richard
+# Instance import now imports the instance using imp.load_module so that
+# we can have instance homes of "roundup" or other existing python package
+# names.
+#
# Revision 1.10 2001/07/30 08:12:17 richard
# Added time logging and file uploading to the templates.
#
diff --git a/roundup-mailgw b/roundup-mailgw
index 94a1d38ca7d36690fa984815e1b8ea9a5a44646f..f359d5fdec7108c78c71fecc6e9b78e3225346d7 100755 (executable)
--- a/roundup-mailgw
+++ b/roundup-mailgw
#! /usr/bin/python
-# $Id: roundup-mailgw,v 1.3 2001-08-03 00:59:34 richard Exp $
+# $Id: roundup-mailgw,v 1.4 2001-08-03 01:28:33 richard Exp $
import sys
if int(sys.version[0]) < 2:
# get the instance
import imp
-instance = imp.load_module('instance', None, instance_home, ('', '', 5))
+instance = imp.load_package('instance', instance_home)
# invokde the mail handler
db = instance.open('admin')
#
# $Log: not supported by cvs2svn $
+# Revision 1.3 2001/08/03 00:59:34 richard
+# Instance import now imports the instance using imp.load_module so that
+# we can have instance homes of "roundup" or other existing python package
+# names.
+#
# Revision 1.2 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#
diff --git a/roundup-server b/roundup-server
index 52f977f4a4bb331b7a3f6358880f95bb21fc601c..b4688e0f0e88b9ca5308babacf1dd7b42cee9f5c 100755 (executable)
--- a/roundup-server
+++ b/roundup-server
Stolen from CGIHTTPServer
-$Id: roundup-server,v 1.7 2001-08-03 00:59:34 richard Exp $
+$Id: roundup-server,v 1.8 2001-08-03 01:28:33 richard Exp $
"""
import sys
instance = urllib.unquote(l_path[1])
if self.ROUNDUP_INSTANCE_HOMES.has_key(instance):
instance_home = self.ROUNDUP_INSTANCE_HOMES[instance]
- instance = imp.load_module('instance', None, instance_home,
- ('', '', 5))
+ instance = imp.load_package('instance', instance_home)
else:
raise ValueError, 'No such instance "%s"'%instance
#
# $Log: not supported by cvs2svn $
+# Revision 1.7 2001/08/03 00:59:34 richard
+# Instance import now imports the instance using imp.load_module so that
+# we can have instance homes of "roundup" or other existing python package
+# names.
+#
# Revision 1.6 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#
diff --git a/roundup/init.py b/roundup/init.py
index 11b69baad8ec6295b1ce7ecfdfda428dd039c17d..9d5cba472b71cd1ed7466252c0adbc16e145de71 100644 (file)
--- a/roundup/init.py
+++ b/roundup/init.py
-# $Id: init.py,v 1.9 2001-08-03 00:59:34 richard Exp $
+# $Id: init.py,v 1.10 2001-08-03 01:28:33 richard Exp $
import os, shutil, sys, errno, imp
open(os.path.join(instance_home, 'select_db.py'), 'w').write(db)
# now import the instance and call its init
- instance = imp.load_module('instance', None, instance_home, ('', '', 5))
+ instance = imp.loa_package('instance', instance_home)
instance.init(adminpw)
#
# $Log: not supported by cvs2svn $
+# Revision 1.9 2001/08/03 00:59:34 richard
+# Instance import now imports the instance using imp.load_module so that
+# we can have instance homes of "roundup" or other existing python package
+# names.
+#
# Revision 1.8 2001/07/29 07:01:39 richard
# Added vim command to all source so that we don't get no steenkin' tabs :)
#