summaryrefslogtreecommitdiff
path: root/Mailman/HyperDatabase.py
Commit message (Collapse)AuthorAgeFilesLines
* code cleanup: put all the web archive related stuff into it's own subcotton1998-10-221-316/+0
| | | | | | | | | | | | | | | | | | | | | | | | package. Details: changed Makefile to add the sub package as a directory to make recursively in changed configure to make the replacements to Mailman/Archiver/Makefile.in changed Mailman/Makefile.in to add Archiver as a sub package moved Mailman/Archiver.py to Mailman/Archiver/Archiver.py and Mailman/Hyper* to Mailman/Archiver Mailman/pipermail.py to Mailman/Archiver/ created Mailman/Archiver/__init__.py to do a "from Archiver import *" in order to make it's interface identical to previously. import change: changed imports to import Mailman.<module> from import <module> in order to accomodate the package import semantics, also localized <module> by calling <module> = Mailman.<module>. see diffs for details if this sounds confusing, it's not. this change was applied to all of the moved files except pipermail, which didn't need it. did a basic new installation test to make sure all the Makefile/configure changes took place atleast basically correctly. scott
* bug fix: Archiving mechansimcotton1998-10-221-4/+29
| | | | | | | | | | | | | | | | the native python bsddb replacement wasn't protected in all cases from HyperArch.Archive's locking. added a single global lock uses the flock module to HyperDatabase.DumbBTree so that only one process may access it at a time. specifics: 1) removed previously added locking around the pipermail.T.__init__ line in HyperArch.Archive.__init__, as the database locking should take care of this 2) added lock and unlock methods to HyperDatabase.DumbBTree making multple calls to unlock, and therefore multple calls to HyperDatabase.DumbBTree.close() ok, as the comments from pipermail indicate this might happen. scott
* added GNU copyright notice at the topcotton1998-10-131-0/+15
| | | | scott
* All these changes are for implemented integrated pipermail based archives.cotton1998-10-091-0/+276
Original patches are from The Dragon de Monsyne with the following changes: -added support for private archives as well as public -added support for archiving daily and weekly -made archiving happen in real time -replaced use of pipermail's BSDBDatabase with homegrown python version -took out the need for DocumentTemplate here's a listing of changed files and relevant changes: Makefile.in - added public_html/archives to installdirs Mailman/Archiver.py - changed ArchiveMail to do real time archiving Mailman/Defaults.py.in - added archive frequency and and archive url extension variables Mailman/MailList.py - changed .Save() to alter perms on public vs. private archives Mailman/htmlformat.py - changes directly from The Dragon do Monsyne's patches. I don't know what they are exactly, but all the cgi's seem to work fine, so I assume they are OK. Mailman/versions.py - changes to add archiving based variables back to the list Mailman/Cgi/private - changed to make it work with default installation and made background white on login page src/Makefile.in - changes to make all wrappers setuid mailman: since various processes may access an archive, and the archiving mechanism uses "chmod", all archives must be owned by mailman, so all wrappers need to be owned by and setuid mailman added files: Mailman/HyperArch.py - from The Dragon de Monsyne with changes made noted above Mailman/HyperDatabase.py - the replacement for pipermail.BSDBDatabase scott