From e8e0c9b06279ec296229fcbe2f1c308f4f67afb8 Mon Sep 17 00:00:00 2001 From: richard Date: Tue, 10 Sep 2002 00:19:55 +0000 Subject: [PATCH] removed Log git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1111 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/__init__.py | 27 +-- roundup/admin.py | 93 +-------- roundup/date.py | 92 +------- roundup/i18n.py | 3 +- roundup/indexer.py | 79 +------ roundup/install_util.py | 24 +-- roundup/instance.py | 20 +- roundup/mailgw.py | 392 +---------------------------------- roundup/password.py | 20 +- roundup/roundupdb.py | 316 +--------------------------- roundup/security.py | 1 + roundup/token.py | 10 +- roundup/version_check.py | 10 +- test/__init__.py | 82 +------- test/test_dates.py | 51 +---- test/test_db.py | 213 +------------------ test/test_htmltemplate.py | 88 +------- test/test_indexer.py | 6 +- test/test_init.py | 60 +----- test/test_locking.py | 6 +- test/test_mailgw.py | 146 +------------ test/test_mailsplit.py | 35 +--- test/test_multipart.py | 15 +- test/test_schema.py | 37 +--- test/test_security.py | 22 +- test/test_template_parser.py | 54 +---- test/test_token.py | 6 +- 27 files changed, 30 insertions(+), 1878 deletions(-) diff --git a/roundup/__init__.py b/roundup/__init__.py index a20ea36..849cdfb 100644 --- a/roundup/__init__.py +++ b/roundup/__init__.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.9 2002-06-24 01:09:33 richard Exp $ +# $Id: __init__.py,v 1.10 2002-09-10 00:18:20 richard Exp $ __doc__ = ''' This is a simple-to-use and -install issue-tracking system with @@ -67,29 +67,4 @@ much prettier cake :) __version__ = '0.4.2' -# -# $Log: not supported by cvs2svn $ -# Revision 1.8 2002/06/21 00:24:53 richard -# *baff* richard. -# -# Revision 1.7 2002/06/17 23:14:44 richard -# . #569415 ] {version} -# -# Revision 1.6 2001/08/07 00:24:42 richard -# stupid typo -# -# Revision 1.5 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.4 2001/07/29 07:01:39 richard -# Added vim command to all source so that we don't get no steenkin' tabs :) -# -# Revision 1.3 2001/07/28 01:39:02 richard -# Added some documentation to the roundup package. -# -# Revision 1.2 2001/07/22 12:09:32 richard -# Final commit of Grande Splite -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/admin.py b/roundup/admin.py index 440b097..cfa2ca4 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: admin.py,v 1.24 2002-09-09 23:55:18 richard Exp $ +# $Id: admin.py,v 1.25 2002-09-10 00:18:20 richard Exp $ import sys, os, getpass, getopt, re, UserDict, shlex, shutil try: @@ -1144,95 +1144,4 @@ if __name__ == '__main__': tool = AdminTool() sys.exit(tool.main()) -# -# $Log: not supported by cvs2svn $ -# Revision 1.23 2002/08/19 02:53:27 richard -# full database export and import is done -# -# Revision 1.22 2002/08/16 04:26:42 richard -# moving towards full database export -# -# Revision 1.21 2002/08/01 01:07:37 richard -# include info about new user roles -# -# Revision 1.20 2002/08/01 00:56:22 richard -# Added the web access and email access permissions, so people can restrict -# access to users who register through the email interface (for example). -# Also added "security" command to the roundup-admin interface to display the -# Role/Permission config for an instance. -# -# Revision 1.19 2002/07/25 07:14:05 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.18 2002/07/18 11:17:30 gmcm -# Add Number and Boolean types to hyperdb. -# Add conversion cases to web, mail & admin interfaces. -# Add storage/serialization cases to back_anydbm & back_metakit. -# -# Revision 1.17 2002/07/14 06:05:50 richard -# . fixed the date module so that Date(". - 2d") works -# -# Revision 1.16 2002/07/09 04:19:09 richard -# Added reindex command to roundup-admin. -# Fixed reindex on first access. -# Also fixed reindexing of entries that change. -# -# Revision 1.15 2002/06/17 23:14:44 richard -# . #569415 ] {version} -# -# Revision 1.14 2002/06/11 06:41:50 richard -# Removed prompt for admin email in initialisation. -# -# Revision 1.13 2002/05/30 23:58:14 richard -# oops -# -# Revision 1.12 2002/05/26 09:04:42 richard -# out by one in the init args -# -# Revision 1.11 2002/05/23 01:14:20 richard -# . split instance initialisation into two steps, allowing config changes -# before the database is initialised. -# -# Revision 1.10 2002/04/27 10:07:23 richard -# minor fix to error message -# -# Revision 1.9 2002/03/12 22:51:47 richard -# . #527416 ] roundup-admin uses undefined value -# . #527503 ] unfriendly init blowup when parent dir -# (also handles UsageError correctly now in init) -# -# Revision 1.8 2002/02/27 03:28:21 richard -# Ran it through pychecker, made fixes -# -# Revision 1.7 2002/02/20 05:04:32 richard -# Wasn't handling the cvs parser feeding properly. -# -# Revision 1.6 2002/01/23 07:27:19 grubert -# . allow abbreviation of "help" in admin tool too. -# -# Revision 1.5 2002/01/21 16:33:19 rochecompaan -# You can now use the roundup-admin tool to pack the database -# -# Revision 1.4 2002/01/14 06:51:09 richard -# . #503164 ] create and passwords -# -# Revision 1.3 2002/01/08 05:26:32 rochecompaan -# Missing "self" in props_from_args -# -# Revision 1.2 2002/01/07 10:41:44 richard -# #500140 ] AdminTool.get_class() returns nothing -# -# Revision 1.1 2002/01/05 02:11:22 richard -# I18N'ed roundup admin - and split the code off into a module so it can be used -# elsewhere. -# Big issue with this is the doc strings - that's the help. We're probably going to -# have to switch to not use docstrings, which will suck a little :( -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/date.py b/roundup/date.py index 14b0911..8e20c49 100644 --- a/roundup/date.py +++ b/roundup/date.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: date.py,v 1.25 2002-08-23 04:42:43 richard Exp $ +# $Id: date.py,v 1.26 2002-09-10 00:18:20 richard Exp $ __doc__ = """ Date, time and time interval handling. @@ -459,94 +459,4 @@ def test(): if __name__ == '__main__': test() -# -# $Log: not supported by cvs2svn $ -# Revision 1.24 2002/08/21 07:07:27 richard -# In preparing to turn back on link/unlink journal events (by default these -# are turned off) I've: -# - fixed back_anydbm so it can journal those events again (had broken it -# with recent changes) -# - changed the serialisation format for dates and intervals to use a -# numbers-only (and sign for Intervals) string instead of tuple-of-ints. -# Much smaller. -# -# Revision 1.23 2002/07/18 23:07:08 richard -# Unit tests and a few fixes. -# -# Revision 1.22 2002/07/14 06:05:50 richard -# . fixed the date module so that Date(". - 2d") works -# -# Revision 1.21 2002/05/15 06:32:46 richard -# . reverting to dates for intervals > 2 months sucks -# -# Revision 1.20 2002/02/21 23:34:51 richard -# Oops, there's 24 hours in a day, and subtraction of intervals now works -# properly. -# -# Revision 1.19 2002/02/21 23:11:45 richard -# . fixed some problems in date calculations (calendar.py doesn't handle over- -# and under-flow). Also, hour/minute/second intervals may now be more than -# 99 each. -# -# Revision 1.18 2002/01/23 20:00:50 jhermann -# %e is a UNIXism and not documented for Python -# -# Revision 1.17 2002/01/16 07:02:57 richard -# . lots of date/interval related changes: -# - more relaxed date format for input -# -# Revision 1.16 2002/01/08 11:56:24 richard -# missed an import _ -# -# Revision 1.15 2002/01/05 02:27:00 richard -# I18N'ification -# -# Revision 1.14 2001/11/22 15:46:42 jhermann -# Added module docstrings to all modules. -# -# Revision 1.13 2001/09/18 22:58:37 richard -# -# Added some more help to roundu-admin -# -# Revision 1.12 2001/08/17 03:08:11 richard -# fixed prettification of intervals of 1 week -# -# Revision 1.11 2001/08/15 23:43:18 richard -# Fixed some isFooTypes that I missed. -# Refactored some code in the CGI code. -# -# Revision 1.10 2001/08/07 00:24:42 richard -# stupid typo -# -# Revision 1.9 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.8 2001/08/05 07:46:12 richard -# Changed date.Date to use regular string formatting instead of strftime - -# win32 seems to have problems with %T and no hour... or something... -# -# Revision 1.7 2001/08/02 00:27:04 richard -# Extended the range of intervals that are pretty-printed before actual dates -# are displayed. -# -# Revision 1.6 2001/07/31 09:54:18 richard -# Fixed the 2.1-specific gmtime() (no arg) call in roundup.date. (Paul Wright) -# -# 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 :) -# -# Revision 1.4 2001/07/25 04:09:34 richard -# Fixed offset handling (shoulda read the spec a little better) -# -# Revision 1.3 2001/07/23 07:56:05 richard -# Storing only marshallable data in the db - no nasty pickled class references. -# -# Revision 1.2 2001/07/22 12:09:32 richard -# Final commit of Grande Splite -# -# Revision 1.1 2001/07/22 11:58:35 richard -# More Grande Splite -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/i18n.py b/roundup/i18n.py index ce69252..8203d95 100644 --- a/roundup/i18n.py +++ b/roundup/i18n.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: i18n.py,v 1.2 2001-11-22 15:46:42 jhermann Exp $ +# $Id: i18n.py,v 1.3 2002-09-10 00:18:20 richard Exp $ __doc__ = """ RoundUp Internationalization (I18N) @@ -48,3 +48,4 @@ else: # and for now, we JUST implement the dummy in any case _ = lambda text: text +# vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/indexer.py b/roundup/indexer.py index 74bfcaf..4295b70 100644 --- a/roundup/indexer.py +++ b/roundup/indexer.py @@ -14,7 +14,7 @@ # that promote freedom, but obviously am giving up any rights # to compel such. # -#$Id: indexer.py,v 1.12 2002-07-19 03:36:33 richard Exp $ +#$Id: indexer.py,v 1.13 2002-09-10 00:18:20 richard Exp $ ''' This module provides an indexer class, RoundupIndexer, that stores text indices in a roundup instance. This class makes searching the content of @@ -333,79 +333,4 @@ class Indexer: return (hasattr(self,'fileids') and hasattr(self,'files') and hasattr(self,'words')) -# -#$Log: not supported by cvs2svn $ -#Revision 1.11 2002/07/18 11:17:30 gmcm -#Add Number and Boolean types to hyperdb. -#Add conversion cases to web, mail & admin interfaces. -#Add storage/serialization cases to back_anydbm & back_metakit. -# -#Revision 1.10 2002/07/14 23:17:24 richard -#oops -# -#Revision 1.9 2002/07/14 06:11:16 richard -#Some TODOs -# -#Revision 1.8 2002/07/09 21:53:38 gmcm -#Optimize Class.find so that the propspec can contain a set of ids to match. -#This is used by indexer.search so it can do just one find for all the index matches. -#This was already confusing code, but for common terms (lots of index matches), -#it is enormously faster. -# -#Revision 1.7 2002/07/09 21:38:43 richard -#Only save the index if the thing is loaded and changed. Also, don't load -#the index just for a save. -# -#Revision 1.6 2002/07/09 04:26:44 richard -#We're indexing numbers now, and _underscore words -# -#Revision 1.5 2002/07/09 04:19:09 richard -#Added reindex command to roundup-admin. -#Fixed reindex on first access. -#Also fixed reindexing of entries that change. -# -#Revision 1.4 2002/07/09 03:02:52 richard -#More indexer work: -#- all String properties may now be indexed too. Currently there's a bit of -# "issue" specific code in the actual searching which needs to be -# addressed. In a nutshell: -# + pass 'indexme="yes"' as a String() property initialisation arg, eg: -# file = FileClass(db, "file", name=String(), type=String(), -# comment=String(indexme="yes")) -# + the comment will then be indexed and be searchable, with the results -# related back to the issue that the file is linked to -#- as a result of this work, the FileClass has a default MIME type that may -# be overridden in a subclass, or by the use of a "type" property as is -# done in the default templates. -#- the regeneration of the indexes (if necessary) is done once the schema is -# set up in the dbinit. -# -#Revision 1.3 2002/07/08 06:58:15 richard -#cleaned up the indexer code: -# - it splits more words out (much simpler, faster splitter) -# - removed code we'll never use (roundup.roundup_indexer has the full -# implementation, and replaces roundup.indexer) -# - only index text/plain and rfc822/message (ideas for other text formats to -# index are welcome) -# - added simple unit test for indexer. Needs more tests for regression. -# -#Revision 1.2 2002/05/25 07:16:24 rochecompaan -#Merged search_indexing-branch with HEAD -# -#Revision 1.1.2.3 2002/05/02 11:52:12 rochecompaan -#Fixed small bug that prevented indexes from being generated. -# -#Revision 1.1.2.2 2002/04/19 19:54:42 rochecompaan -#cgi_client.py -# removed search link for the time being -# moved rendering of matches to htmltemplate -#hyperdb.py -# filtering of nodes on full text search incorporated in filter method -#roundupdb.py -# added paramater to call of filter method -#roundup_indexer.py -# added search method to RoundupIndexer class -# -#Revision 1.1.2.1 2002/04/03 11:55:57 rochecompaan -# . Added feature #526730 - search for messages capability -# +# vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/install_util.py b/roundup/install_util.py index 69fc049..e54dc93 100644 --- a/roundup/install_util.py +++ b/roundup/install_util.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: install_util.py,v 1.7 2001-11-24 01:00:13 jhermann Exp $ +# $Id: install_util.py,v 1.8 2002-09-10 00:18:20 richard Exp $ __doc__ = """ Support module to generate and check fingerprints of installed files. @@ -147,24 +147,4 @@ def test(): if __name__ == '__main__': test() -# -# $Log: not supported by cvs2svn $ -# Revision 1.6 2001/11/22 15:46:42 jhermann -# Added module docstrings to all modules. -# -# Revision 1.5 2001/11/12 23:17:38 jhermann -# Code using copyDigestedFile() that passes unit tests -# -# Revision 1.4 2001/11/12 23:14:40 jhermann -# Copy function, and proper handling of unknown file types -# -# Revision 1.3 2001/11/12 22:38:48 richard -# bleah typo -# -# Revision 1.2 2001/11/12 22:37:13 richard -# Handle all the various file formats in roundup -# -# Revision 1.1 2001/11/12 22:26:32 jhermann -# Added install utils (digest calculation) -# - +# vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/instance.py b/roundup/instance.py index f2a9eaf..fb98b76 100644 --- a/roundup/instance.py +++ b/roundup/instance.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: instance.py,v 1.5 2001-11-22 15:46:42 jhermann Exp $ +# $Id: instance.py,v 1.6 2002-09-10 00:18:20 richard Exp $ __doc__ = ''' Instance handling (open instance). @@ -53,22 +53,4 @@ del Opener del opener -# -# $Log: not supported by cvs2svn $ -# Revision 1.4 2001/11/12 22:01:06 richard -# Fixed issues with nosy reaction and author copies. -# -# Revision 1.3 2001/08/07 00:24:42 richard -# stupid typo -# -# Revision 1.2 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.1 2001/08/05 07:43:52 richard -# Instances are now opened by a special function that generates a unique -# module name for the instances on import time. -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/mailgw.py b/roundup/mailgw.py index dc21174..8046278 100644 --- a/roundup/mailgw.py +++ b/roundup/mailgw.py @@ -73,7 +73,7 @@ are calling the create() method to create a new node). If an auditor raises an exception, the original message is bounced back to the sender with the explanatory message given in the exception. -$Id: mailgw.py,v 1.82 2002-09-09 23:55:19 richard Exp $ +$Id: mailgw.py,v 1.83 2002-09-10 00:18:20 richard Exp $ ''' @@ -854,394 +854,4 @@ def parseContent(content, keep_citations, keep_body, content = '\n\n'.join(l) return summary, content -# -# $Log: not supported by cvs2svn $ -# Revision 1.81 2002/08/19 00:21:56 richard -# grant email access to admin too ;) -# -# Revision 1.80 2002/08/01 00:56:22 richard -# Added the web access and email access permissions, so people can restrict -# access to users who register through the email interface (for example). -# Also added "security" command to the roundup-admin interface to display the -# Role/Permission config for an instance. -# -# Revision 1.79 2002/07/26 08:26:59 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.78 2002/07/25 07:14:06 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.77 2002/07/18 11:17:31 gmcm -# Add Number and Boolean types to hyperdb. -# Add conversion cases to web, mail & admin interfaces. -# Add storage/serialization cases to back_anydbm & back_metakit. -# -# Revision 1.76 2002/07/10 06:39:37 richard -# . made mailgw handle set and modify operations on multilinks (bug #579094) -# -# Revision 1.75 2002/07/09 01:21:24 richard -# Added ability for unit tests to turn off exception handling in mailgw so -# that exceptions are reported earlier (and hence make sense). -# -# Revision 1.74 2002/05/29 01:16:17 richard -# Sorry about this huge checkin! It's fixing a lot of related stuff in one go -# though. -# -# . #541941 ] changing multilink properties by mail -# . #526730 ] search for messages capability -# . #505180 ] split MailGW.handle_Message -# - also changed cgi client since it was duplicating the functionality -# . build htmlbase if tests are run using CVS checkout (removed note from -# installation.txt) -# . don't create an empty message on email issue creation if the email is empty -# -# Revision 1.73 2002/05/22 04:12:05 richard -# . applied patch #558876 ] cgi client customization -# ... with significant additions and modifications ;) -# - extended handling of ML assignedto to all places it's handled -# - added more NotFound info -# -# Revision 1.72 2002/05/22 01:24:51 richard -# Added note to MIGRATION about new config vars. Also made us more resilient -# for upgraders. Reinstated list header style (oops) -# -# Revision 1.71 2002/05/08 02:40:55 richard -# grr -# -# Revision 1.70 2002/05/06 23:40:07 richard -# hrm -# -# Revision 1.69 2002/05/06 23:37:21 richard -# Tweaking the signature deletion from mail messages. -# Added nuking of the "-----Original Message-----" crap from Outlook. -# -# Revision 1.68 2002/05/02 07:56:34 richard -# . added option to automatically add the authors and recipients of messages -# to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and -# ADD_RECIPIENTS_TO_NOSY (default 'new'). These settings emulate the current -# behaviour. Setting them to 'yes' will add the author/recipients to the nosy -# on messages that create issues and followup messages. -# . added missing documentation for a few of the config option values -# -# Revision 1.67 2002/04/23 15:46:49 rochecompaan -# . stripping of the email message body can now be controlled through -# the config variables EMAIL_KEEP_QUOTED_TEST and -# EMAIL_LEAVE_BODY_UNCHANGED. -# -# Revision 1.66 2002/03/14 23:59:24 richard -# . #517734 ] web header customisation is obscure -# -# Revision 1.65 2002/02/15 00:13:38 richard -# . #503204 ] mailgw needs a default class -# - partially done - the setting of additional properties can wait for a -# better configuration system. -# -# Revision 1.64 2002/02/14 23:46:02 richard -# . #516883 ] mail interface + ANONYMOUS_REGISTER -# -# Revision 1.63 2002/02/12 08:08:55 grubert -# . Clean up mail handling, multipart handling. -# -# Revision 1.62 2002/02/05 14:15:29 grubert -# . respect encodings in non multipart messages. -# -# Revision 1.61 2002/02/04 09:40:21 grubert -# . add test for multipart messages with first part being encoded. -# -# Revision 1.60 2002/02/01 07:43:12 grubert -# . mailgw checks encoding on first part too. -# -# Revision 1.59 2002/01/23 21:43:23 richard -# tabnuke -# -# Revision 1.58 2002/01/23 21:41:56 richard -# . mailgw failures (unexpected ones) are forwarded to the roundup admin -# -# Revision 1.57 2002/01/22 22:27:43 richard -# . handle stripping of "AW:" from subject line -# -# Revision 1.56 2002/01/22 11:54:45 rochecompaan -# Fixed status change in mail gateway. -# -# Revision 1.55 2002/01/21 10:05:47 rochecompaan -# Feature: -# . the mail gateway now responds with an error message when invalid -# values for arguments are specified for link or multilink properties -# . modified unit test to check nosy and assignedto when specified as -# arguments -# -# Fixed: -# . fixed setting nosy as argument in subject line -# -# Revision 1.54 2002/01/16 09:14:45 grubert -# . if the attachment has no name, name it unnamed, happens with tnefs. -# -# Revision 1.53 2002/01/16 07:20:54 richard -# simple help command for mailgw -# -# Revision 1.52 2002/01/15 00:12:40 richard -# #503340 ] creating issue with [asignedto=p.ohly] -# -# Revision 1.51 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.50 2002/01/11 22:59:01 richard -# . #502342 ] pipe interface -# -# Revision 1.49 2002/01/10 06:19:18 richard -# followup lines directly after a quoted section were being eaten. -# -# Revision 1.48 2002/01/08 04:12:05 richard -# Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 -# -# Revision 1.47 2002/01/02 02:32:38 richard -# ANONYMOUS_ACCESS -> ANONYMOUS_REGISTER -# -# Revision 1.46 2002/01/02 02:31:38 richard -# Sorry for the huge checkin message - I was only intending to implement #496356 -# but I found a number of places where things had been broken by transactions: -# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename -# for _all_ roundup-generated smtp messages to be sent to. -# . the transaction cache had broken the roundupdb.Class set() reactors -# . newly-created author users in the mailgw weren't being committed to the db -# -# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working -# on when I found that stuff :): -# . #496356 ] Use threading in messages -# . detectors were being registered multiple times -# . added tests for mailgw -# . much better attaching of erroneous messages in the mail gateway -# -# Revision 1.45 2001/12/20 15:43:01 rochecompaan -# Features added: -# . Multilink properties are now displayed as comma separated values in -# a textbox -# . The add user link is now only visible to the admin user -# . Modified the mail gateway to reject submissions from unknown -# addresses if ANONYMOUS_ACCESS is denied -# -# Revision 1.44 2001/12/18 15:30:34 rochecompaan -# Fixed bugs: -# . Fixed file creation and retrieval in same transaction in anydbm -# backend -# . Cgi interface now renders new issue after issue creation -# . Could not set issue status to resolved through cgi interface -# . Mail gateway was changing status back to 'chatting' if status was -# omitted as an argument -# -# Revision 1.43 2001/12/15 19:39:01 rochecompaan -# Oops. -# -# Revision 1.42 2001/12/15 19:24:39 rochecompaan -# . Modified cgi interface to change properties only once all changes are -# collected, files created and messages generated. -# . Moved generation of change note to nosyreactors. -# . We now check for changes to "assignedto" to ensure it's added to the -# nosy list. -# -# Revision 1.41 2001/12/10 00:57:38 richard -# From CHANGES: -# . Added the "display" command to the admin tool - displays a node's values -# . #489760 ] [issue] only subject -# . fixed the doc/index.html to include the quoting in the mail alias. -# -# Also: -# . fixed roundup-admin so it works with transactions -# . disabled the back_anydbm module if anydbm tries to use dumbdbm -# -# Revision 1.40 2001/12/05 14:26:44 rochecompaan -# Removed generation of change note from "sendmessage" in roundupdb.py. -# The change note is now generated when the message is created. -# -# Revision 1.39 2001/12/02 05:06:16 richard -# . We now use weakrefs in the Classes to keep the database reference, so -# the close() method on the database is no longer needed. -# I bumped the minimum python requirement up to 2.1 accordingly. -# . #487480 ] roundup-server -# . #487476 ] INSTALL.txt -# -# I also cleaned up the change message / post-edit stuff in the cgi client. -# There's now a clearly marked "TODO: append the change note" where I believe -# the change note should be added there. The "changes" list will obviously -# have to be modified to be a dict of the changes, or somesuch. -# -# More testing needed. -# -# Revision 1.38 2001/12/01 07:17:50 richard -# . We now have basic transaction support! Information is only written to -# the database when the commit() method is called. Only the anydbm -# backend is modified in this way - neither of the bsddb backends have been. -# The mail, admin and cgi interfaces all use commit (except the admin tool -# doesn't have a commit command, so interactive users can't commit...) -# . Fixed login/registration forwarding the user to the right page (or not, -# on a failure) -# -# Revision 1.37 2001/11/28 21:55:35 richard -# . login_action and newuser_action return values were being ignored -# . Woohoo! Found that bloody re-login bug that was killing the mail -# gateway. -# (also a minor cleanup in hyperdb) -# -# Revision 1.36 2001/11/26 22:55:56 richard -# Feature: -# . Added INSTANCE_NAME to configuration - used in web and email to identify -# the instance. -# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup -# signature info in e-mails. -# . Some more flexibility in the mail gateway and more error handling. -# . Login now takes you to the page you back to the were denied access to. -# -# Fixed: -# . Lots of bugs, thanks Roché and others on the devel mailing list! -# -# Revision 1.35 2001/11/22 15:46:42 jhermann -# Added module docstrings to all modules. -# -# Revision 1.34 2001/11/15 10:24:27 richard -# handle the case where there is no file attached -# -# Revision 1.33 2001/11/13 21:44:44 richard -# . re-open the database as the author in mail handling -# -# Revision 1.32 2001/11/12 22:04:29 richard -# oops, left debug in there -# -# Revision 1.31 2001/11/12 22:01:06 richard -# Fixed issues with nosy reaction and author copies. -# -# Revision 1.30 2001/11/09 22:33:28 richard -# More error handling fixes. -# -# Revision 1.29 2001/11/07 05:29:26 richard -# Modified roundup-mailgw so it can read e-mails from a local mail spool -# file. Truncates the spool file after parsing. -# Fixed a couple of small bugs introduced in roundup.mailgw when I started -# the popgw. -# -# Revision 1.28 2001/11/01 22:04:37 richard -# Started work on supporting a pop3-fetching server -# Fixed bugs: -# . bug #477104 ] HTML tag error in roundup-server -# . bug #477107 ] HTTP header problem -# -# Revision 1.27 2001/10/30 11:26:10 richard -# Case-insensitive match for ISSUE_TRACKER_EMAIL in address in e-mail. -# -# Revision 1.26 2001/10/30 00:54:45 richard -# Features: -# . #467129 ] Lossage when username=e-mail-address -# . #473123 ] Change message generation for author -# . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue. -# -# Revision 1.25 2001/10/28 23:22:28 richard -# fixed bug #474749 ] Indentations lost -# -# Revision 1.24 2001/10/23 22:57:52 richard -# Fix unread->chatting auto transition, thanks Roch'e -# -# Revision 1.23 2001/10/21 04:00:20 richard -# MailGW now moves 'unread' to 'chatting' on receiving e-mail for an issue. -# -# Revision 1.22 2001/10/21 03:35:13 richard -# bug #473125: Paragraph in e-mails -# -# Revision 1.21 2001/10/21 00:53:42 richard -# bug #473130: Nosy list not set correctly -# -# Revision 1.20 2001/10/17 23:13:19 richard -# Did a fair bit of work on the admin tool. Now has an extra command "table" -# which displays node information in a tabular format. Also fixed import and -# export so they work. Removed freshen. -# Fixed quopri usage in mailgw from bug reports. -# -# Revision 1.19 2001/10/11 23:43:04 richard -# Implemented the comma-separated printing option in the admin tool. -# Fixed a typo (more of a vim-o actually :) in mailgw. -# -# Revision 1.18 2001/10/11 06:38:57 richard -# Initial cut at trying to handle people responding to CC'ed messages that -# create an issue. -# -# Revision 1.17 2001/10/09 07:25:59 richard -# Added the Password property type. See "pydoc roundup.password" for -# implementation details. Have updated some of the documentation too. -# -# Revision 1.16 2001/10/05 02:23:24 richard -# . roundup-admin create now prompts for property info if none is supplied -# on the command-line. -# . hyperdb Class getprops() method may now return only the mutable -# properties. -# . Login now uses cookies, which makes it a whole lot more flexible. We can -# now support anonymous user access (read-only, unless there's an -# "anonymous" user, in which case write access is permitted). Login -# handling has been moved into cgi_client.Client.main() -# . The "extended" schema is now the default in roundup init. -# . The schemas have had their page headings modified to cope with the new -# login handling. Existing installations should copy the interfaces.py -# file from the roundup lib directory to their instance home. -# . Incorrectly had a Bizar Software copyright on the cgitb.py module from -# Ping - has been removed. -# . Fixed a whole bunch of places in the CGI interface where we should have -# been returning Not Found instead of throwing an exception. -# . Fixed a deviation from the spec: trying to modify the 'id' property of -# an item now throws an exception. -# -# Revision 1.15 2001/08/30 06:01:17 richard -# Fixed missing import in mailgw :( -# -# Revision 1.14 2001/08/13 23:02:54 richard -# Make the mail parser a little more robust. -# -# Revision 1.13 2001/08/12 06:32:36 richard -# using isinstance(blah, Foo) now instead of isFooType -# -# Revision 1.12 2001/08/08 01:27:00 richard -# Added better error handling to mailgw. -# -# Revision 1.11 2001/08/08 00:08:03 richard -# oops ;) -# -# Revision 1.10 2001/08/07 00:24:42 richard -# stupid typo -# -# Revision 1.9 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.8 2001/08/05 07:06:07 richard -# removed some print statements -# -# Revision 1.7 2001/08/03 07:18:22 richard -# Implemented correct mail splitting (was taking a shortcut). Added unit -# tests. Also snips signatures now too. -# -# Revision 1.6 2001/08/01 04:24:21 richard -# mailgw was assuming certain properties existed on the issues being created. -# -# 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 :) -# -# Revision 1.4 2001/07/28 06:43:02 richard -# Multipart message class has the getPart method now. Added some tests for it. -# -# Revision 1.3 2001/07/28 00:34:34 richard -# Fixed some non-string node ids. -# -# Revision 1.2 2001/07/22 12:09:32 richard -# Final commit of Grande Splite -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/password.py b/roundup/password.py index 28c68a1..1caa8a8 100644 --- a/roundup/password.py +++ b/roundup/password.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: password.py,v 1.4 2001-11-22 15:46:42 jhermann Exp $ +# $Id: password.py,v 1.5 2002-09-10 00:18:20 richard Exp $ __doc__ = """ Password handling (encoding, decoding). @@ -115,22 +115,4 @@ def test(): if __name__ == '__main__': test() -# -# $Log: not supported by cvs2svn $ -# Revision 1.3 2001/10/20 11:58:48 richard -# Catch errors in login - no username or password supplied. -# Fixed editing of password (Password property type) thanks Roch'e Compaan. -# -# Revision 1.2 2001/10/09 23:58:10 richard -# Moved the data stringification up into the hyperdb.Class class' get, set -# and create methods. This means that the data is also stringified for the -# journal call, and removes duplication of code from the backends. The -# backend code now only sees strings. -# -# Revision 1.1 2001/10/09 07:25:59 richard -# Added the Password property type. See "pydoc roundup.password" for -# implementation details. Have updated some of the documentation too. -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index 1b2a385..8cbf92b 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.63 2002-07-26 08:26:59 richard Exp $ +# $Id: roundupdb.py,v 1.64 2002-09-10 00:18:20 richard Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -424,318 +424,4 @@ class IssueClass: m.insert(0, '') return '\n'.join(m) -# -# $Log: not supported by cvs2svn $ -# Revision 1.62 2002/07/14 02:05:53 richard -# . all storage-specific code (ie. backend) is now implemented by the backends -# -# Revision 1.61 2002/07/09 04:19:09 richard -# Added reindex command to roundup-admin. -# Fixed reindex on first access. -# Also fixed reindexing of entries that change. -# -# Revision 1.60 2002/07/09 03:02:52 richard -# More indexer work: -# - all String properties may now be indexed too. Currently there's a bit of -# "issue" specific code in the actual searching which needs to be -# addressed. In a nutshell: -# + pass 'indexme="yes"' as a String() property initialisation arg, eg: -# file = FileClass(db, "file", name=String(), type=String(), -# comment=String(indexme="yes")) -# + the comment will then be indexed and be searchable, with the results -# related back to the issue that the file is linked to -# - as a result of this work, the FileClass has a default MIME type that may -# be overridden in a subclass, or by the use of a "type" property as is -# done in the default templates. -# - the regeneration of the indexes (if necessary) is done once the schema is -# set up in the dbinit. -# -# Revision 1.59 2002/06/18 03:55:25 dman13 -# Fixed name/address display problem introduced by an earlier change. -# (instead of "name" display "name ") -# -# Revision 1.58 2002/06/16 01:05:15 dman13 -# Removed temporary workaround -- it seems it was a bug in the -# nosyreaction detector in the 0.4.1 extended template and has already -# been fixed in CVS. We'll see. -# -# Revision 1.57 2002/06/15 15:49:29 dman13 -# Use 'email' instead of 'rfc822', if available. -# Don't use isinstance() on a string (not allowed in python 2.1). -# Return an error message instead of crashing if 'oldvalues' isn't a -# dict (in generateChangeNote). -# -# Revision 1.56 2002/06/14 03:54:21 dman13 -# #565992 ] if ISSUE_TRACKER_WEB doesn't have the trailing '/', add it -# -# use the rfc822 module to ensure that every (oddball) email address and -# real-name is properly quoted -# -# Revision 1.55 2002/06/11 04:58:07 richard -# detabbing -# -# Revision 1.54 2002/05/29 01:16:17 richard -# Sorry about this huge checkin! It's fixing a lot of related stuff in one go -# though. -# -# . #541941 ] changing multilink properties by mail -# . #526730 ] search for messages capability -# . #505180 ] split MailGW.handle_Message -# - also changed cgi client since it was duplicating the functionality -# . build htmlbase if tests are run using CVS checkout (removed note from -# installation.txt) -# . don't create an empty message on email issue creation if the email is empty -# -# Revision 1.53 2002/05/25 07:16:24 rochecompaan -# Merged search_indexing-branch with HEAD -# -# Revision 1.52 2002/05/15 03:27:16 richard -# . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope -# (thanks dman) -# . fixed some sorting issues that were breaking some unit tests under py2.2 -# . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*) -# -# fixed bug in the init unit test that meant only the bsddb test ran if it -# could (it clobbered the anydbm test) -# -# Revision 1.51 2002/04/08 03:46:42 richard -# make it work -# -# Revision 1.50 2002/04/08 03:40:31 richard -# . added a "detectors" directory for people to put their useful auditors and -# reactors in. Note - the roundupdb.IssueClass.sendmessage method has been -# split and renamed "nosymessage" specifically for things like the nosy -# reactor, and "send_message" which just sends the message. -# -# The initial detector is one that we'll be using here at ekit - it bounces new -# issue messages to a team address. -# -# Revision 1.49.2.1 2002/04/19 19:54:42 rochecompaan -# cgi_client.py -# removed search link for the time being -# moved rendering of matches to htmltemplate -# hyperdb.py -# filtering of nodes on full text search incorporated in filter method -# roundupdb.py -# added paramater to call of filter method -# roundup_indexer.py -# added search method to RoundupIndexer class -# -# Revision 1.49 2002/03/19 06:41:49 richard -# Faster, easier, less mess ;) -# -# Revision 1.48 2002/03/18 18:32:00 rochecompaan -# All messages sent to the nosy list are now encoded as quoted-printable. -# -# Revision 1.47 2002/02/27 03:16:02 richard -# Fixed a couple of dodgy bits found by pychekcer. -# -# Revision 1.46 2002/02/25 14:22:59 grubert -# . roundup db: catch only IOError in getfile. -# -# Revision 1.44 2002/02/15 07:08:44 richard -# . Alternate email addresses are now available for users. See the MIGRATION -# file for info on how to activate the feature. -# -# Revision 1.43 2002/02/14 22:33:15 richard -# . Added a uniquely Roundup header to email, "X-Roundup-Name" -# -# Revision 1.42 2002/01/21 09:55:14 rochecompaan -# Properties in change note are now sorted -# -# Revision 1.41 2002/01/15 00:12:40 richard -# #503340 ] creating issue with [asignedto=p.ohly] -# -# Revision 1.40 2002/01/14 22:21:38 richard -# #503353 ] setting properties in initial email -# -# Revision 1.39 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.38 2002/01/10 05:57:45 richard -# namespace clobberation -# -# Revision 1.37 2002/01/08 04:12:05 richard -# Changed message-id format to "<%s.%s.%s%s@%s>" so it complies with RFC822 -# -# Revision 1.36 2002/01/02 02:31:38 richard -# Sorry for the huge checkin message - I was only intending to implement #496356 -# but I found a number of places where things had been broken by transactions: -# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename -# for _all_ roundup-generated smtp messages to be sent to. -# . the transaction cache had broken the roundupdb.Class set() reactors -# . newly-created author users in the mailgw weren't being committed to the db -# -# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working -# on when I found that stuff :): -# . #496356 ] Use threading in messages -# . detectors were being registered multiple times -# . added tests for mailgw -# . much better attaching of erroneous messages in the mail gateway -# -# Revision 1.35 2001/12/20 15:43:01 rochecompaan -# Features added: -# . Multilink properties are now displayed as comma separated values in -# a textbox -# . The add user link is now only visible to the admin user -# . Modified the mail gateway to reject submissions from unknown -# addresses if ANONYMOUS_ACCESS is denied -# -# Revision 1.34 2001/12/17 03:52:48 richard -# Implemented file store rollback. As a bonus, the hyperdb is now capable of -# storing more than one file per node - if a property name is supplied, -# the file is called designator.property. -# I decided not to migrate the existing files stored over to the new naming -# scheme - the FileClass just doesn't specify the property name. -# -# Revision 1.33 2001/12/16 10:53:37 richard -# take a copy of the node dict so that the subsequent set -# operation doesn't modify the oldvalues structure -# -# Revision 1.32 2001/12/15 23:48:35 richard -# Added ROUNDUPDBSENDMAILDEBUG so one can test the sendmail method without -# actually sending mail :) -# -# Revision 1.31 2001/12/15 19:24:39 rochecompaan -# . Modified cgi interface to change properties only once all changes are -# collected, files created and messages generated. -# . Moved generation of change note to nosyreactors. -# . We now check for changes to "assignedto" to ensure it's added to the -# nosy list. -# -# Revision 1.30 2001/12/12 21:47:45 richard -# . Message author's name appears in From: instead of roundup instance name -# (which still appears in the Reply-To:) -# . envelope-from is now set to the roundup-admin and not roundup itself so -# delivery reports aren't sent to roundup (thanks Patrick Ohly) -# -# Revision 1.29 2001/12/11 04:50:49 richard -# fixed the order of the blank line and '-------' line -# -# Revision 1.28 2001/12/10 22:20:01 richard -# Enabled transaction support in the bsddb backend. It uses the anydbm code -# where possible, only replacing methods where the db is opened (it uses the -# btree opener specifically.) -# Also cleaned up some change note generation. -# Made the backends package work with pydoc too. -# -# Revision 1.27 2001/12/10 21:02:53 richard -# only insert the -------- change note marker if there is a change note -# -# Revision 1.26 2001/12/05 14:26:44 rochecompaan -# Removed generation of change note from "sendmessage" in roundupdb.py. -# The change note is now generated when the message is created. -# -# Revision 1.25 2001/11/30 20:28:10 rochecompaan -# Property changes are now completely traceable, whether changes are -# made through the web or by email -# -# Revision 1.24 2001/11/30 11:29:04 rochecompaan -# Property changes are now listed in emails generated by Roundup -# -# Revision 1.23 2001/11/27 03:17:13 richard -# oops -# -# Revision 1.22 2001/11/27 03:00:50 richard -# couple of bugfixes from latest patch integration -# -# Revision 1.21 2001/11/26 22:55:56 richard -# Feature: -# . Added INSTANCE_NAME to configuration - used in web and email to identify -# the instance. -# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup -# signature info in e-mails. -# . Some more flexibility in the mail gateway and more error handling. -# . Login now takes you to the page you back to the were denied access to. -# -# Fixed: -# . Lots of bugs, thanks Roché and others on the devel mailing list! -# -# Revision 1.20 2001/11/25 10:11:14 jhermann -# Typo fix -# -# Revision 1.19 2001/11/22 15:46:42 jhermann -# Added module docstrings to all modules. -# -# Revision 1.18 2001/11/15 10:36:17 richard -# . incorporated patch from Roch'e Compaan implementing attachments in nosy -# e-mail -# -# Revision 1.17 2001/11/12 22:01:06 richard -# Fixed issues with nosy reaction and author copies. -# -# Revision 1.16 2001/10/30 00:54:45 richard -# Features: -# . #467129 ] Lossage when username=e-mail-address -# . #473123 ] Change message generation for author -# . MailGW now moves 'resolved' to 'chatting' on receiving e-mail for an issue. -# -# Revision 1.15 2001/10/23 01:00:18 richard -# Re-enabled login and registration access after lopping them off via -# disabling access for anonymous users. -# Major re-org of the htmltemplate code, cleaning it up significantly. Fixed -# a couple of bugs while I was there. Probably introduced a couple, but -# things seem to work OK at the moment. -# -# Revision 1.14 2001/10/21 07:26:35 richard -# feature #473127: Filenames. I modified the file.index and htmltemplate -# source so that the filename is used in the link and the creation -# information is displayed. -# -# Revision 1.13 2001/10/21 00:45:15 richard -# Added author identification to e-mail messages from roundup. -# -# Revision 1.12 2001/10/04 02:16:15 richard -# Forgot to pass the protected flag down *sigh*. -# -# Revision 1.11 2001/10/04 02:12:42 richard -# Added nicer command-line item adding: passing no arguments will enter an -# interactive more which asks for each property in turn. While I was at it, I -# fixed an implementation problem WRT the spec - I wasn't raising a -# ValueError if the key property was missing from a create(). Also added a -# protected=boolean argument to getprops() so we can list only the mutable -# properties (defaults to yes, which lists the immutables). -# -# Revision 1.10 2001/08/07 00:24:42 richard -# stupid typo -# -# Revision 1.9 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.8 2001/08/02 06:38:17 richard -# Roundupdb now appends "mailing list" information to its messages which -# include the e-mail address and web interface address. Templates may -# override this in their db classes to include specific information (support -# instructions, etc). -# -# Revision 1.7 2001/07/30 02:38:31 richard -# get() now has a default arg - for migration only. -# -# Revision 1.6 2001/07/30 00:05:54 richard -# Fixed IssueClass so that superseders links to its classname rather than -# hard-coded to "issue". -# -# 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 :) -# -# Revision 1.4 2001/07/29 04:05:37 richard -# Added the fabricated property "id". -# -# Revision 1.3 2001/07/23 07:14:41 richard -# Moved the database backends off into backends. -# -# Revision 1.2 2001/07/22 12:09:32 richard -# Final commit of Grande Splite -# -# Revision 1.1 2001/07/22 11:58:35 richard -# More Grande Splite -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/security.py b/roundup/security.py index 9ff5415..e9f196e 100644 --- a/roundup/security.py +++ b/roundup/security.py @@ -158,3 +158,4 @@ class Security: role = self.role[rolename] role.permissions.append(permission) +# vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/token.py b/roundup/token.py index d90d8b6..4ba5103 100644 --- a/roundup/token.py +++ b/roundup/token.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: token.py,v 1.2 2002-01-02 02:31:38 richard Exp $ +# $Id: token.py,v 1.3 2002-09-10 00:18:20 richard Exp $ # __doc__ = """ @@ -111,12 +111,4 @@ def token_split(s, whitespace=' \r\n\t', quotes='\'"', pos = pos + 1 return l -# -# $Log: not supported by cvs2svn $ -# Revision 1.1 2001/12/31 05:09:20 richard -# Added better tokenising to roundup-admin - handles spaces and stuff. Can -# use quoting or backslashes. See the roundup.token pydoc. -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/roundup/version_check.py b/roundup/version_check.py index 8dfc68e..20ef7d9 100644 --- a/roundup/version_check.py +++ b/roundup/version_check.py @@ -16,7 +16,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: version_check.py,v 1.2 2001-12-14 21:34:06 richard Exp $ +# $Id: version_check.py,v 1.3 2002-09-10 00:18:20 richard Exp $ import sys if not hasattr(sys, 'version_info') or sys.version_info[:3] < (2,1,1): @@ -24,12 +24,4 @@ if not hasattr(sys, 'version_info') or sys.version_info[:3] < (2,1,1): print "Roundup requires Python 2.1.1 or newer." sys.exit(0) -# -# $Log: not supported by cvs2svn $ -# Revision 1.1 2001/12/13 00:20:01 richard -# . Centralised the python version check code, bumped version to 2.1.1 (really -# needs to be 2.1.2, but that isn't released yet :) -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/__init__.py b/test/__init__.py index 92d9f6f..5273971 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: __init__.py,v 1.17 2002-05-29 01:16:17 richard Exp $ +# $Id: __init__.py,v 1.18 2002-09-10 00:19:54 richard Exp $ import os, tempfile, unittest, shutil import roundup.roundupdb @@ -38,84 +38,4 @@ def go(tests=all_tests): runner = unittest.TextTestRunner() runner.run(suite) -# -# $Log: not supported by cvs2svn $ -# Revision 1.16 2002/02/14 23:38:12 richard -# Fixed the unit tests for the mailgw re: the x-roundup-name header. -# Also made the test runner more user-friendly: -# ./run_tests - detect all tests in test/test_.py and run them -# ./run_tests - run only test/test_.py -# eg ./run_tests mailgw - run the mailgw test from test/test_mailgw.py -# -# Revision 1.15 2002/01/22 00:12:20 richard -# oops -# -# Revision 1.14 2002/01/22 00:12:06 richard -# Wrote more unit tests for htmltemplate, and while I was at it, I polished -# off the implementation of some of the functions so they behave sanely. -# -# Revision 1.13 2002/01/21 11:05:48 richard -# New tests for htmltemplate (well, it's a beginning) -# -# Revision 1.12 2002/01/14 06:53:28 richard -# had commented out some tests -# -# Revision 1.11 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.10 2002/01/05 02:09:46 richard -# make setup abort if tests fail -# -# Revision 1.9 2002/01/02 02:31:38 richard -# Sorry for the huge checkin message - I was only intending to implement #496356 -# but I found a number of places where things had been broken by transactions: -# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename -# for _all_ roundup-generated smtp messages to be sent to. -# . the transaction cache had broken the roundupdb.Class set() reactors -# . newly-created author users in the mailgw weren't being committed to the db -# -# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working -# on when I found that stuff :): -# . #496356 ] Use threading in messages -# . detectors were being registered multiple times -# . added tests for mailgw -# . much better attaching of erroneous messages in the mail gateway -# -# Revision 1.8 2001/12/31 05:09:20 richard -# Added better tokenising to roundup-admin - handles spaces and stuff. Can -# use quoting or backslashes. See the roundup.token pydoc. -# -# Revision 1.7 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.6 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.5 2001/08/05 07:45:27 richard -# Added tests for instance initialisation -# -# Revision 1.4 2001/08/03 07:18:22 richard -# Implemented correct mail splitting (was taking a shortcut). Added unit -# tests. Also snips signatures now too. -# -# Revision 1.3 2001/07/29 07:01:39 richard -# Added vim command to all source so that we don't get no steenkin' tabs :) -# -# Revision 1.2 2001/07/28 06:43:02 richard -# Multipart message class has the getPart method now. Added some tests for it. -# -# Revision 1.1 2001/07/27 06:55:07 richard -# moving tests -> test -# -# Revision 1.3 2001/07/25 04:34:31 richard -# Added id and log to tests files... -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_dates.py b/test/test_dates.py index 942aa57..4cbfd70 100644 --- a/test/test_dates.py +++ b/test/test_dates.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_dates.py,v 1.12 2002-07-14 06:05:50 richard Exp $ +# $Id: test_dates.py,v 1.13 2002-09-10 00:19:54 richard Exp $ import unittest, time @@ -152,53 +152,4 @@ def suite(): return unittest.makeSuite(DateTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# Revision 1.11 2002/02/21 23:34:52 richard -# Oops, there's 24 hours in a day, and subtraction of intervals now works -# properly. -# -# Revision 1.10 2002/02/21 23:11:45 richard -# . fixed some problems in date calculations (calendar.py doesn't handle over- -# and under-flow). Also, hour/minute/second intervals may now be more than -# 99 each. -# -# Revision 1.9 2002/02/21 06:57:39 richard -# . Added popup help for classes using the classhelp html template function. -# - add -# to an item page, and it generates a link to a popup window which displays -# the id, name and description for the priority class. The description -# field won't exist in most installations, but it will be added to the -# default templates. -# -# Revision 1.8 2002/01/16 07:02:57 richard -# . lots of date/interval related changes: -# - more relaxed date format for input -# -# Revision 1.7 2001/08/13 23:01:53 richard -# fixed a 2.1-ism -# -# Revision 1.6 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.5 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.4 2001/07/29 23:32:13 richard -# Fixed bug in unit test ;) -# -# Revision 1.3 2001/07/29 07:01:39 richard -# Added vim command to all source so that we don't get no steenkin' tabs :) -# -# Revision 1.2 2001/07/29 06:42:20 richard -# Added Interval tests. -# -# Revision 1.1 2001/07/27 06:55:07 richard -# moving tests -> test -# -# Revision 1.2 2001/07/25 04:34:31 richard -# Added id and log to tests files... -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_db.py b/test/test_db.py index 88330ec..d935760 100644 --- a/test/test_db.py +++ b/test/test_db.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_db.py,v 1.42 2002-08-23 05:33:32 richard Exp $ +# $Id: test_db.py,v 1.43 2002-09-10 00:19:54 richard Exp $ import unittest, os, shutil, time @@ -676,215 +676,4 @@ def suite(): return unittest.TestSuite(l) -# -# $Log: not supported by cvs2svn $ -# Revision 1.40 2002/08/23 04:48:36 richard -# oops, forgot -# -# Revision 1.39 2002/07/31 23:57:37 richard -# . web forms may now unset Link values (like assignedto) -# -# Revision 1.38 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.37 2002/07/25 07:14:06 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.36 2002/07/19 03:36:34 richard -# Implemented the destroy() method needed by the session database (and possibly -# others). At the same time, I removed the leading underscores from the hyperdb -# methods that Really Didn't Need Them. -# The journal also raises IndexError now for all situations where there is a -# request for the journal of a node that doesn't have one. It used to return -# [] in _some_ situations, but not all. This _may_ break code, but the tests -# pass... -# -# Revision 1.35 2002/07/18 23:07:08 richard -# Unit tests and a few fixes. -# -# Revision 1.34 2002/07/18 11:52:00 richard -# oops -# -# Revision 1.33 2002/07/18 11:50:58 richard -# added tests for number type too -# -# Revision 1.32 2002/07/18 11:41:10 richard -# added tests for boolean type, and fixes to anydbm backend -# -# Revision 1.31 2002/07/14 23:17:45 richard -# minor change to make testing easier -# -# Revision 1.30 2002/07/14 06:06:34 richard -# Did some old TODOs -# -# Revision 1.29 2002/07/14 04:03:15 richard -# Implemented a switch to disable journalling for a Class. CGI session -# database now uses it. -# -# Revision 1.28 2002/07/14 02:16:29 richard -# Fixes for the metakit backend (removed the cut-n-paste IssueClass, removed -# a special case for it in testing) -# -# Revision 1.27 2002/07/14 02:05:54 richard -# . all storage-specific code (ie. backend) is now implemented by the backends -# -# Revision 1.26 2002/07/11 01:11:03 richard -# Added metakit backend to the db tests and fixed the more easily fixable test -# failures. -# -# Revision 1.25 2002/07/09 04:19:09 richard -# Added reindex command to roundup-admin. -# Fixed reindex on first access. -# Also fixed reindexing of entries that change. -# -# Revision 1.24 2002/07/09 03:02:53 richard -# More indexer work: -# - all String properties may now be indexed too. Currently there's a bit of -# "issue" specific code in the actual searching which needs to be -# addressed. In a nutshell: -# + pass 'indexme="yes"' as a String() property initialisation arg, eg: -# file = FileClass(db, "file", name=String(), type=String(), -# comment=String(indexme="yes")) -# + the comment will then be indexed and be searchable, with the results -# related back to the issue that the file is linked to -# - as a result of this work, the FileClass has a default MIME type that may -# be overridden in a subclass, or by the use of a "type" property as is -# done in the default templates. -# - the regeneration of the indexes (if necessary) is done once the schema is -# set up in the dbinit. -# -# Revision 1.23 2002/06/20 23:51:48 richard -# Cleaned up the hyperdb tests -# -# Revision 1.22 2002/05/21 05:52:11 richard -# Well whadya know, bsddb3 works again. -# The backend is implemented _exactly_ the same as bsddb - so there's no -# using its transaction or locking support. It'd be nice to use those some -# day I suppose. -# -# Revision 1.21 2002/04/15 23:25:15 richard -# . node ids are now generated from a lockable store - no more race conditions -# -# We're using the portalocker code by Jonathan Feinberg that was contributed -# to the ASPN Python cookbook. This gives us locking across Unix and Windows. -# -# Revision 1.20 2002/04/03 05:54:31 richard -# Fixed serialisation problem by moving the serialisation step out of the -# hyperdb.Class (get, set) into the hyperdb.Database. -# -# Also fixed htmltemplate after the showid changes I made yesterday. -# -# Unit tests for all of the above written. -# -# Revision 1.19 2002/02/25 14:34:31 grubert -# . use blobfiles in back_anydbm which is used in back_bsddb. -# change test_db as dirlist does not work for subdirectories. -# ATTENTION: blobfiles now creates subdirectories for files. -# -# Revision 1.18 2002/01/22 07:21:13 richard -# . fixed back_bsddb so it passed the journal tests -# -# ... it didn't seem happy using the back_anydbm _open method, which is odd. -# Yet another occurrance of whichdb not being able to recognise older bsddb -# databases. Yadda yadda. Made the HYPERDBDEBUG stuff more sane in the -# process. -# -# Revision 1.17 2002/01/22 05:06:09 rochecompaan -# We need to keep the last 'set' entry in the journal to preserve -# information on 'activity' for nodes. -# -# Revision 1.16 2002/01/21 16:33:20 rochecompaan -# You can now use the roundup-admin tool to pack the database -# -# Revision 1.15 2002/01/19 13:16:04 rochecompaan -# Journal entries for link and multilink properties can now be switched on -# or off. -# -# Revision 1.14 2002/01/16 07:02:57 richard -# . lots of date/interval related changes: -# - more relaxed date format for input -# -# Revision 1.13 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.12 2001/12/17 03:52:48 richard -# Implemented file store rollback. As a bonus, the hyperdb is now capable of -# storing more than one file per node - if a property name is supplied, -# the file is called designator.property. -# I decided not to migrate the existing files stored over to the new naming -# scheme - the FileClass just doesn't specify the property name. -# -# Revision 1.11 2001/12/10 23:17:20 richard -# Added transaction tests to test_db -# -# Revision 1.10 2001/12/03 21:33:39 richard -# Fixes so the tests use commit and not close -# -# Revision 1.9 2001/12/02 05:06:16 richard -# . We now use weakrefs in the Classes to keep the database reference, so -# the close() method on the database is no longer needed. -# I bumped the minimum python requirement up to 2.1 accordingly. -# . #487480 ] roundup-server -# . #487476 ] INSTALL.txt -# -# I also cleaned up the change message / post-edit stuff in the cgi client. -# There's now a clearly marked "TODO: append the change note" where I believe -# the change note should be added there. The "changes" list will obviously -# have to be modified to be a dict of the changes, or somesuch. -# -# More testing needed. -# -# Revision 1.8 2001/10/09 07:25:59 richard -# Added the Password property type. See "pydoc roundup.password" for -# implementation details. Have updated some of the documentation too. -# -# Revision 1.7 2001/08/29 06:23:59 richard -# Disabled the bsddb3 module entirely in the unit testing. See CHANGES for -# details. -# -# Revision 1.6 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.5 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.4 2001/07/30 03:45:56 richard -# Added more DB to test_db. Can skip tests where imports fail. -# -# Revision 1.3 2001/07/29 07:01:39 richard -# Added vim command to all source so that we don't get no steenkin' tabs :) -# -# Revision 1.2 2001/07/29 04:09:20 richard -# Added the fabricated property "id" to all hyperdb classes. -# -# Revision 1.1 2001/07/27 06:55:07 richard -# moving tests -> test -# -# Revision 1.7 2001/07/27 06:26:43 richard -# oops - wasn't deleting the test dir after the read-only tests -# -# Revision 1.6 2001/07/27 06:23:59 richard -# consistency -# -# Revision 1.5 2001/07/27 06:23:09 richard -# Added some new hyperdb tests to make sure we raise the right exceptions. -# -# Revision 1.4 2001/07/25 04:34:31 richard -# Added id and log to tests files... -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_htmltemplate.py b/test/test_htmltemplate.py index fe6c41c..73e5103 100644 --- a/test/test_htmltemplate.py +++ b/test/test_htmltemplate.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_htmltemplate.py,v 1.20 2002-08-13 20:16:10 gmcm Exp $ +# $Id: test_htmltemplate.py,v 1.21 2002-09-10 00:19:54 richard Exp $ import unittest, cgi, time, os, shutil @@ -553,90 +553,4 @@ def suite(): ]) -# -# $Log: not supported by cvs2svn $ -# Revision 1.19 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.18 2002/07/25 07:14:06 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.17 2002/07/18 23:07:07 richard -# Unit tests and a few fixes. -# -# Revision 1.16 2002/07/09 05:20:09 richard -# . added email display function - mangles email addrs so they're not so easily -# scraped from the web -# -# Revision 1.15 2002/07/08 06:39:00 richard -# Fixed unit test support class so the tests ran again. -# -# Revision 1.14 2002/05/15 06:37:31 richard -# ehem and the unit test -# -# Revision 1.13 2002/04/03 05:54:31 richard -# Fixed serialisation problem by moving the serialisation step out of the -# hyperdb.Class (get, set) into the hyperdb.Database. -# -# Also fixed htmltemplate after the showid changes I made yesterday. -# -# Unit tests for all of the above written. -# -# Revision 1.12 2002/03/29 19:41:48 rochecompaan -# . Fixed display of mutlilink properties when using the template -# functions, menu and plain. -# -# Revision 1.11 2002/02/21 23:11:45 richard -# . fixed some problems in date calculations (calendar.py doesn't handle over- -# and under-flow). Also, hour/minute/second intervals may now be more than -# 99 each. -# -# Revision 1.10 2002/02/21 06:57:39 richard -# . Added popup help for classes using the classhelp html template function. -# - add -# to an item page, and it generates a link to a popup window which displays -# the id, name and description for the priority class. The description -# field won't exist in most installations, but it will be added to the -# default templates. -# -# Revision 1.9 2002/02/15 07:08:45 richard -# . Alternate email addresses are now available for users. See the MIGRATION -# file for info on how to activate the feature. -# -# Revision 1.8 2002/02/06 03:47:16 richard -# . #511586 ] unittest FAIL: testReldate_date -# -# Revision 1.7 2002/01/23 20:09:41 jhermann -# Proper fix for failing test -# -# Revision 1.6 2002/01/23 05:47:57 richard -# more HTML template cleanup and unit tests -# -# Revision 1.5 2002/01/23 05:10:28 richard -# More HTML template cleanup and unit tests. -# - download() now implemented correctly, replacing link(is_download=1) [fixed in the -# templates, but link(is_download=1) will still work for existing templates] -# -# Revision 1.4 2002/01/22 22:46:22 richard -# more htmltemplate cleanups and unit tests -# -# Revision 1.3 2002/01/22 06:35:40 richard -# more htmltemplate tests and cleanup -# -# Revision 1.2 2002/01/22 00:12:07 richard -# Wrote more unit tests for htmltemplate, and while I was at it, I polished -# off the implementation of some of the functions so they behave sanely. -# -# Revision 1.1 2002/01/21 11:05:48 richard -# New tests for htmltemplate (well, it's a beginning) -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_indexer.py b/test/test_indexer.py index 5948a04..b170f9a 100644 --- a/test/test_indexer.py +++ b/test/test_indexer.py @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# $Id: test_indexer.py,v 1.1 2002-07-10 06:40:01 richard Exp $ +# $Id: test_indexer.py,v 1.2 2002-09-10 00:19:54 richard Exp $ import os, unittest, shutil @@ -53,8 +53,4 @@ def suite(): return unittest.makeSuite(IndexerTest) -# -# $Log: not supported by cvs2svn $ -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_init.py b/test/test_init.py index 2d454cd..3cd5b27 100644 --- a/test/test_init.py +++ b/test/test_init.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_init.py,v 1.15 2002-07-29 00:56:06 richard Exp $ +# $Id: test_init.py,v 1.16 2002-09-10 00:19:54 richard Exp $ import unittest, os, shutil, errno, imp, sys @@ -153,62 +153,4 @@ def suite(): return unittest.TestSuite(l) -# -# $Log: not supported by cvs2svn $ -# Revision 1.14 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.13 2002/07/14 02:05:54 richard -# . all storage-specific code (ie. backend) is now implemented by the backends -# -# Revision 1.12 2002/07/11 01:13:13 richard -# *** empty log message *** -# -# Revision 1.11 2002/07/11 01:12:34 richard -# Forgot to add to init tests -# -# Revision 1.10 2002/06/11 04:59:14 richard -# enabled testing of bsddb in test_init -# -# Revision 1.9 2002/05/23 04:26:05 richard -# 'I must run unit tests before committing\n' * 100 -# -# Revision 1.8 2002/05/15 03:27:16 richard -# . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope -# (thanks dman) -# . fixed some sorting issues that were breaking some unit tests under py2.2 -# . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*) -# -# fixed bug in the init unit test that meant only the bsddb test ran if it -# could (it clobbered the anydbm test) -# -# Revision 1.7 2001/10/28 22:51:38 richard -# Fixed ENOENT/WindowsError thing, thanks Juergen Hermann -# -# Revision 1.6 2001/09/29 23:48:06 richard -# Bug fix for test_init on Windows. -# More documenation!! -# -# Revision 1.5 2001/08/29 06:23:59 richard -# Disabled the bsddb3 module entirely in the unit testing. See CHANGES for -# details. -# -# Revision 1.4 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.3 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.2 2001/08/05 07:45:27 richard -# Added tests for instance initialisation -# -# Revision 1.1 2001/08/05 07:07:58 richard -# added tests for roundup.init - but they're disabled until I can figure _if_ -# we can run them (import problems). -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_locking.py b/test/test_locking.py index 6f22d9a..0c27f03 100644 --- a/test/test_locking.py +++ b/test/test_locking.py @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# $Id: test_locking.py,v 1.1 2002-04-15 23:25:15 richard Exp $ +# $Id: test_locking.py,v 1.2 2002-09-10 00:19:54 richard Exp $ import os, unittest, tempfile @@ -48,8 +48,4 @@ def suite(): return unittest.makeSuite(LockingTest) -# -# $Log: not supported by cvs2svn $ -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_mailgw.py b/test/test_mailgw.py index b757c24..16e9ce7 100644 --- a/test/test_mailgw.py +++ b/test/test_mailgw.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_mailgw.py,v 1.26 2002-09-09 23:55:29 richard Exp $ +# $Id: test_mailgw.py,v 1.27 2002-09-10 00:19:54 richard Exp $ import unittest, cStringIO, tempfile, os, shutil, errno, imp, sys, difflib @@ -779,148 +779,4 @@ def suite(): return unittest.TestSuite(l) -# -# $Log: not supported by cvs2svn $ -# Revision 1.25 2002/07/29 00:56:06 richard -# Removed the unnecessary volatiledb and the related complications. Security -# much simpler and self-contained now. -# -# Revision 1.24 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.23 2002/07/14 02:02:43 richard -# Fixed the unit tests for the new multilist controls in the mailgw -# -# Revision 1.22 2002/07/09 01:21:24 richard -# Added ability for unit tests to turn off exception handling in mailgw so -# that exceptions are reported earlier (and hence make sense). -# -# Revision 1.21 2002/06/18 03:59:59 dman13 -# Updated message strings to match the RFC822 address quoting performed -# by the 'email' and 'rfc822' modules. The verification really should -# use a RFC2822 message parser rather than literal string comparisions -# to allow for legal variations in messages. -# -# Revision 1.20 2002/05/29 01:16:17 richard -# Sorry about this huge checkin! It's fixing a lot of related stuff in one go -# though. -# -# . #541941 ] changing multilink properties by mail -# . #526730 ] search for messages capability -# . #505180 ] split MailGW.handle_Message -# - also changed cgi client since it was duplicating the functionality -# . build htmlbase if tests are run using CVS checkout (removed note from -# installation.txt) -# . don't create an empty message on email issue creation if the email is empty -# -# Revision 1.19 2002/05/23 04:26:05 richard -# 'I must run unit tests before committing\n' * 100 -# -# Revision 1.18 2002/05/15 03:27:16 richard -# . fixed SCRIPT_NAME in ZRoundup for instances not at top level of Zope -# (thanks dman) -# . fixed some sorting issues that were breaking some unit tests under py2.2 -# . mailgw test output dir was confusing the init test (but only on 2.2 *shrug*) -# -# fixed bug in the init unit test that meant only the bsddb test ran if it -# could (it clobbered the anydbm test) -# -# Revision 1.17 2002/05/02 07:56:34 richard -# . added option to automatically add the authors and recipients of messages -# to the nosy lists with the options ADD_AUTHOR_TO_NOSY (default 'new') and -# ADD_RECIPIENTS_TO_NOSY (default 'new'). These settings emulate the current -# behaviour. Setting them to 'yes' will add the author/recipients to the nosy -# on messages that create issues and followup messages. -# . added missing documentation for a few of the config option values -# -# Revision 1.16 2002/03/19 21:58:11 grubert -# . for python2.1 test_mailgw compareString allows an extra trailing empty line (for quopri. -# -# Revision 1.15 2002/03/19 06:37:00 richard -# Made the email checking spit out a diff - much easier to spot the problem! -# -# Revision 1.14 2002/03/18 18:32:00 rochecompaan -# All messages sent to the nosy list are now encoded as quoted-printable. -# -# Revision 1.13 2002/02/15 07:08:45 richard -# . Alternate email addresses are now available for users. See the MIGRATION -# file for info on how to activate the feature. -# -# Revision 1.12 2002/02/15 00:13:38 richard -# . #503204 ] mailgw needs a default class -# - partially done - the setting of additional properties can wait for a -# better configuration system. -# -# Revision 1.11 2002/02/14 23:38:12 richard -# Fixed the unit tests for the mailgw re: the x-roundup-name header. -# Also made the test runner more user-friendly: -# ./run_tests - detect all tests in test/test_.py and run them -# ./run_tests - run only test/test_.py -# eg ./run_tests mailgw - run the mailgw test from test/test_mailgw.py -# -# Revision 1.10 2002/02/12 08:08:55 grubert -# . Clean up mail handling, multipart handling. -# -# Revision 1.9 2002/02/05 14:15:29 grubert -# . respect encodings in non multipart messages. -# -# Revision 1.8 2002/02/04 09:40:21 grubert -# . add test for multipart messages with first part being encoded. -# -# Revision 1.7 2002/01/22 11:54:45 rochecompaan -# Fixed status change in mail gateway. -# -# Revision 1.6 2002/01/21 10:05:48 rochecompaan -# Feature: -# . the mail gateway now responds with an error message when invalid -# values for arguments are specified for link or multilink properties -# . modified unit test to check nosy and assignedto when specified as -# arguments -# -# Fixed: -# . fixed setting nosy as argument in subject line -# -# Revision 1.5 2002/01/15 00:12:40 richard -# #503340 ] creating issue with [asignedto=p.ohly] -# -# Revision 1.4 2002/01/14 07:12:15 richard -# removed file writing from tests... -# -# Revision 1.3 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.2 2002/01/11 23:22:29 richard -# . #502437 ] rogue reactor and unittest -# in short, the nosy reactor was modifying the nosy list. That code had -# been there for a long time, and I suspsect it was there because we -# weren't generating the nosy list correctly in other places of the code. -# We're now doing that, so the nosy-modifying code can go away from the -# nosy reactor. -# -# Revision 1.1 2002/01/02 02:31:38 richard -# Sorry for the huge checkin message - I was only intending to implement #496356 -# but I found a number of places where things had been broken by transactions: -# . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename -# for _all_ roundup-generated smtp messages to be sent to. -# . the transaction cache had broken the roundupdb.Class set() reactors -# . newly-created author users in the mailgw weren't being committed to the db -# -# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working -# on when I found that stuff :): -# . #496356 ] Use threading in messages -# . detectors were being registered multiple times -# . added tests for mailgw -# . much better attaching of erroneous messages in the mail gateway -# -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_mailsplit.py b/test/test_mailsplit.py index 039abf9..ccfd84f 100644 --- a/test/test_mailsplit.py +++ b/test/test_mailsplit.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_mailsplit.py,v 1.10 2002-04-23 16:18:18 rochecompaan Exp $ +# $Id: test_mailsplit.py,v 1.11 2002-09-10 00:19:55 richard Exp $ import unittest, cStringIO @@ -212,37 +212,4 @@ def suite(): return unittest.makeSuite(MailsplitTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# Revision 1.9 2002/01/10 06:19:20 richard -# followup lines directly after a quoted section were being eaten. -# -# Revision 1.8 2001/10/28 23:22:28 richard -# fixed bug #474749 ] Indentations lost -# -# Revision 1.7 2001/10/23 00:57:32 richard -# Removed debug print from mailsplit test. -# -# Revision 1.6 2001/10/21 03:35:13 richard -# bug #473125: Paragraph in e-mails -# -# Revision 1.5 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.4 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.3 2001/08/05 07:06:25 richard -# removed some print statements -# -# Revision 1.2 2001/08/03 07:23:09 richard -# er, removed the innocent from the the code :) -# -# Revision 1.1 2001/08/03 07:18:22 richard -# Implemented correct mail splitting (was taking a shortcut). Added unit -# tests. Also snips signatures now too. -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_multipart.py b/test/test_multipart.py index 29385a0..e583629 100644 --- a/test/test_multipart.py +++ b/test/test_multipart.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_multipart.py,v 1.4 2001-08-07 00:24:43 richard Exp $ +# $Id: test_multipart.py,v 1.5 2002-09-10 00:19:55 richard Exp $ import unittest, cStringIO @@ -112,17 +112,4 @@ def suite(): return unittest.makeSuite(MultipartTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# Revision 1.3 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# 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 :) -# -# Revision 1.1 2001/07/28 06:43:02 richard -# Multipart message class has the getPart method now. Added some tests for it. -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_schema.py b/test/test_schema.py index 89a78ce..f124282 100644 --- a/test/test_schema.py +++ b/test/test_schema.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: test_schema.py,v 1.8 2002-07-14 02:05:54 richard Exp $ +# $Id: test_schema.py,v 1.9 2002-09-10 00:19:55 richard Exp $ import unittest, os, shutil @@ -87,39 +87,4 @@ def suite(): return unittest.makeSuite(SchemaTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# Revision 1.7 2002/01/14 02:20:15 richard -# . changed all config accesses so they access either the instance or the -# config attriubute on the db. This means that all config is obtained from -# instance_config instead of the mish-mash of classes. This will make -# switching to a ConfigParser setup easier too, I hope. -# -# At a minimum, this makes migration a _little_ easier (a lot easier in the -# 0.5.0 switch, I hope!) -# -# Revision 1.6 2001/12/03 21:33:39 richard -# Fixes so the tests use commit and not close -# -# Revision 1.5 2001/10/09 07:25:59 richard -# Added the Password property type. See "pydoc roundup.password" for -# implementation details. Have updated some of the documentation too. -# -# Revision 1.4 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.3 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# 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 :) -# -# Revision 1.1 2001/07/27 06:55:07 richard -# moving tests -> test -# -# Revision 1.3 2001/07/25 04:34:31 richard -# Added id and log to tests files... -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_security.py b/test/test_security.py index f55656f..df55be4 100644 --- a/test/test_security.py +++ b/test/test_security.py @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# $Id: test_security.py,v 1.3 2002-07-29 21:53:29 richard Exp $ +# $Id: test_security.py,v 1.4 2002-09-10 00:19:55 richard Exp $ import os, unittest, shutil @@ -104,24 +104,4 @@ def suite(): return unittest.makeSuite(PermissionTest) -# -# $Log: not supported by cvs2svn $ -# Revision 1.2 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.1 2002/07/25 07:14:06 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.1 2002/07/10 06:40:01 richard -# ehem, forgot to add -# -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_template_parser.py b/test/test_template_parser.py index 90c79d8..fb2c70f 100644 --- a/test/test_template_parser.py +++ b/test/test_template_parser.py @@ -1,4 +1,4 @@ -# $Id: test_template_parser.py,v 1.1 2002-08-02 23:45:41 richard Exp $ +# $Id: test_template_parser.py,v 1.2 2002-09-10 00:19:55 richard Exp $ import unittest from roundup import template_parser @@ -43,56 +43,4 @@ def suite(): return unittest.makeSuite(TemplateParserTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# Revision 1.12 2002/07/14 06:05:50 richard -# . fixed the date module so that Date(". - 2d") works -# -# Revision 1.11 2002/02/21 23:34:52 richard -# Oops, there's 24 hours in a day, and subtraction of intervals now works -# properly. -# -# Revision 1.10 2002/02/21 23:11:45 richard -# . fixed some problems in date calculations (calendar.py doesn't handle over- -# and under-flow). Also, hour/minute/second intervals may now be more than -# 99 each. -# -# Revision 1.9 2002/02/21 06:57:39 richard -# . Added popup help for classes using the classhelp html template function. -# - add -# to an item page, and it generates a link to a popup window which displays -# the id, name and description for the priority class. The description -# field won't exist in most installations, but it will be added to the -# default templates. -# -# Revision 1.8 2002/01/16 07:02:57 richard -# . lots of date/interval related changes: -# - more relaxed date format for input -# -# Revision 1.7 2001/08/13 23:01:53 richard -# fixed a 2.1-ism -# -# Revision 1.6 2001/08/07 00:24:43 richard -# stupid typo -# -# Revision 1.5 2001/08/07 00:15:51 richard -# Added the copyright/license notice to (nearly) all files at request of -# Bizar Software. -# -# Revision 1.4 2001/07/29 23:32:13 richard -# Fixed bug in unit test ;) -# -# Revision 1.3 2001/07/29 07:01:39 richard -# Added vim command to all source so that we don't get no steenkin' tabs :) -# -# Revision 1.2 2001/07/29 06:42:20 richard -# Added Interval tests. -# -# Revision 1.1 2001/07/27 06:55:07 richard -# moving tests -> test -# -# Revision 1.2 2001/07/25 04:34:31 richard -# Added id and log to tests files... -# -# # vim: set filetype=python ts=4 sw=4 et si diff --git a/test/test_token.py b/test/test_token.py index 60a06be..7318a0c 100644 --- a/test/test_token.py +++ b/test/test_token.py @@ -8,7 +8,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: test_token.py,v 1.1 2001-12-31 05:09:20 richard Exp $ +# $Id: test_token.py,v 1.2 2002-09-10 00:19:55 richard Exp $ import unittest, time @@ -53,8 +53,4 @@ def suite(): return unittest.makeSuite(TokenTestCase, 'test') -# -# $Log: not supported by cvs2svn $ -# -# # vim: set filetype=python ts=4 sw=4 et si -- 2.30.2