summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cec19ef)
raw | patch | inline | side by side (parent: cec19ef)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 24 Mar 2004 06:18:59 +0000 (06:18 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 24 Mar 2004 06:18:59 +0000 (06:18 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2175 57a73879-2fb5-44c3-a270-3262357dd7e2
diff --git a/MANIFEST.in b/MANIFEST.in
index fb9bba317959929cdafa77abfb54b53226d5b358..3ab500f1cc0b9441a15d2664d43ee2f6638ff231 100644 (file)
--- a/MANIFEST.in
+++ b/MANIFEST.in
recursive-include detectors *.py
recursive-include templates *.* home* page*
global-exclude .cvsignore *.pyc *.pyo
-include run_tests *.txt demo.py
+include run_tests.py *.txt demo.py
exclude BUILD.txt I18N_PROGRESS.txt TODO.txt
exclude doc/security.txt doc/templating.txt
index 4882492c4393813cb3f6c5eab64420af69c63787..5e6214c3e72688fab0278b54c908408019aa09b5 100644 (file)
'''Postgresql backend via psycopg for Roundup.'''
__docformat__ = 'restructuredtext'
-
import os, shutil, popen2, time
import psycopg
diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py
index 3859f968b30eb29850dd10d7a12cebf51995a172..33e7281399c16268aa20d34f75ae2ac60994828f 100755 (executable)
--- a/roundup/cgi/actions.py
+++ b/roundup/cgi/actions.py
'''
# parse the props from the form
try:
- props, links = self.client.parsePropsFromForm(create=True)
+ props, links = self.client.parsePropsFromForm(create=1)
except (ValueError, KeyError), message:
self.client.error_message.append(_('Error: ') + str(message))
return
Return 1 on successful login.
"""
- props = self.client.parsePropsFromForm(create=True)[0][('user', None)]
+ props = self.client.parsePropsFromForm(create=1)[0][('user', None)]
# registration isn't allowed to supply roles
if props.has_key('roles'):
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index 03cfa642eab575652f69200029b2a043a61ddd21..045dce12990b8afc8828b541e46bd35fe82e4f32 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.166 2004-03-18 01:58:46 richard Exp $
+# $Id: client.py,v 1.167 2004-03-24 06:18:59 richard Exp $
"""WWW request handler (also used in the stand-alone server).
"""
except MessageSendError, e:
self.error_message.append(str(e))
- def parsePropsFromForm(self, create=False):
+ def parsePropsFromForm(self, create=0):
return FormParser(self).parse(create=create)
index 8ef534d6c260cb9b2f48394aa6c03437a5910409..3db747a20e0d4ea60d4e45d4af7dfe9b74a7b3cd 100755 (executable)
self.classname = client.classname
self.nodeid = client.nodeid
- def parse(self, create=False, num_re=re.compile('^\d+$')):
+ def parse(self, create=0, num_re=re.compile('^\d+$')):
""" Item properties and their values are edited with html FORM
variables and their values. You can:
diff --git a/test/test_mysql.py b/test/test_mysql.py
index 1fdc9417dfc628fa6f05eb5a32c3b9d415450eb9..e30e0b1dc86d191ceb2efd8adf361f6bf6842d50 100644 (file)
--- a/test/test_mysql.py
+++ b/test/test_mysql.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_mysql.py,v 1.8 2004-03-18 01:58:46 richard Exp $
+# $Id: test_mysql.py,v 1.9 2004-03-24 06:18:59 richard Exp $
import unittest, os, shutil, time, imp
def test_suite():
suite = unittest.TestSuite()
if not hasattr(backends, 'mysql'):
+ print "Skipping mysql tests"
return suite
from roundup.backends import mysql
index 81ce5dcb5b4b439c697231ddb778ca839c4e0882..143916d20cab47a95c058cc1f0f6425a70d74e4c 100644 (file)
--- a/test/test_postgresql.py
+++ b/test/test_postgresql.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_postgresql.py,v 1.6 2004-03-18 01:58:46 richard Exp $
+# $Id: test_postgresql.py,v 1.7 2004-03-24 06:18:59 richard Exp $
import unittest
config.POSTGRESQL_DATABASE = {'database': 'rounduptest'}
from roundup import backends
-from roundup.backends.back_postgresql import db_nuke, db_create, db_exists
class postgresqlOpener:
if hasattr(backends, 'postgresql'):
from roundup.backends import postgresql as module
def setUp(self):
+ #from roundup.backends.back_postgresql import db_nuke
#db_nuke(config, 1)
pass
def nuke_database(self):
# clear out the database - easiest way is to nuke and re-create it
+ from roundup.backends.back_postgresql import db_nuke
db_nuke(config)
class postgresqlDBTest(postgresqlOpener, DBTest):
def test_suite():
suite = unittest.TestSuite()
if not hasattr(backends, 'postgresql'):
+ print "Skipping mysql tests"
return suite
# make sure we start with a clean slate
+ from roundup.backends.back_postgresql import db_nuke
db_nuke(config, 1)
# TODO: Check if we can run postgresql tests