summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Pick some lint.Barry Warsaw2009-08-063-4/+2
|
* Minor fixes.Barry Warsaw2009-08-062-2/+1
|
* Get rid of the Traverse class by checking for None returned from ob.get().Barry Warsaw2009-08-063-54/+5
|
* Fix the turning of application level exceptions into HTTP 400 errors, throughBarry Warsaw2009-08-064-7/+22
| | | | | | the improvement of the publication's handleException() method. Pick some lint in traverse.py.
* Whitespace cleanupBarry Warsaw2009-08-051-1/+0
|
* Move BadDomainSpecificationError to domain.txt interface. Try to set this toBarry Warsaw2009-07-269-14/+87
| | | | | | return an HTTP 400 error, though it does not seem to work. Expose list creation through the API.
* * Expose IMailingLists in the API.Barry Warsaw2009-07-254-14/+59
| | | | | | * Better titles in the IMailingList interface. * Expose the real_name attribute. * Refactor URL mappers.
* Expose 'transaction' as an alias for config.db in the doctest globs. ThisBarry Warsaw2009-07-216-9/+50
| | | | | | | | means commit() is now transaction.commit() in doctests. Add tests of extended domain creation, which exposes the need to unlock the database (via transaction.abort()) so that the foreground test process doesn't lock the background REST server process.
* Our first writable REST API! You can now create new domains through theBarry Warsaw2009-07-209-24/+112
| | | | | | | | | webserver. Fix the https/http urls. Add the adapter for HTTPCharsets so POSTs work properly. Nice little cargo cult from lazr.restful.
* De-u-literal-ify our doctests.Barry Warsaw2009-07-1852-415/+461
|
* De-u-literal-ify our doctests.Barry Warsaw2009-07-1717-163/+164
|
* Wow. Put domains into the database.Barry Warsaw2009-07-1629-263/+515
| | | | | | | | Add an IDomainManager and a global domain manager which can be gotten by adapting the global config object. Add an IDomainCollection interface for exposing the domain manager onto the API.
* Clean a few more lints.Barry Warsaw2009-07-1014-90/+106
| | | | | | | | | | | | | | Add get_mailing_lists() which is used just for the web interface. Because of a bug in lazr.restful, this cannot be a generator. Similar change in IDomainSet. Instrument IListManager to be vended through the api. The REST server must be run in a separate process since SQLite does not like objects created in one thread to be used in another thread. Note that this breaks the domain.txt test, but domains really need to be in the database anyway.
* Pick some lintBarry Warsaw2009-07-103-10/+3
|
* More lint picking.Barry Warsaw2009-07-044-11/+15
| | | | Fix a documentation link.
* Remove some unused stuff and pick some lint.Barry Warsaw2009-07-012-74/+2
|
* Basic Sphinx documentation generation.Barry Warsaw2009-06-302-2/+17
|
* Many pylint cleanups.Barry Warsaw2009-06-3014-39/+198
|
* Integrate pylint and Sphinx documentation buildout targets.Barry Warsaw2009-06-302-0/+99
| | | | | | | | * bin/lint.sh runs the linter (be very afraid) * bin/docs runs Sphinx over the documentation (needs refining) src/sphinxconf.py is an ugly hack to hook the buildout recipe so that we can ignore text files in our tree that are not documentation.
* Implement returning multiple domains, a single specific domain, and raising aBarry Warsaw2009-06-292-1/+87
| | | | 404 if the named domain is missing.
* Add an adapter for IDomain to IAbsoluteURL and add some zope.security onionsBarry Warsaw2009-06-295-11/+56
| | | | to the varnish.
* Set testing threads as daemon so they won't hang.Barry Warsaw2009-06-293-4/+6
| | | | Fix system absolute url.
* More REST server updates.Barry Warsaw2009-06-2915-103/+157
| | | | | | | * Get rid of in-Python adapter registration in favor of ZCML. Eventually, I'd like to get rid of the ZCML. * Set the view_permission to None, but it's still not right. * Add IDomainSet and an adapter from Configuration to IDomainSet.
* typoBarry Warsaw2009-05-271-1/+1
|
* When cleaning up the artifacts of a list being deleted, be more careful forBarry Warsaw2009-05-275-9/+51
| | | | | | | | | | | | | | artifacts that don't exist. In that case, just skimp them rather than complain. Docstring style cleanup. Allow for doctest layer specification in the package's __init__.py, defaulting to SMTPLayer if not given. This is probably too coarse for long term use, but it works for now. Make sure pipelines.txt properly cleans up its digest; it must be flushed after clearing.
* Allow for setting the doctest layer in the doctest package's __init__. If notBarry Warsaw2009-05-274-16/+68
| | | | given, then SMTPLayer is used by default.
* Get rid of some useless stuff.Barry Warsaw2009-05-252-11/+8
|
* Refactor __import__'s into a separate utility module.Barry Warsaw2009-05-1613-52/+95
|
* rsplit -> rpartitionBarry Warsaw2009-05-1510-30/+30
|
* Back out that last change in override order between the environment variableBarry Warsaw2009-05-151-2/+4
| | | | and -C.
* Add initialization pre- and post- hooks, configurable in the config file.Barry Warsaw2009-05-157-17/+169
| | | | | | | | | | | This lets you run a bit of Python at various stages of the initialization process. Move the warnings filters to the top mailman package __init__.py so you always get it. lazr.restful is too chatty. The environment variable $MAILMAN_CONFIG_FILE now overrides -C. Hmm, I think we really want it the original way.
* A little bit of cleanup.Barry Warsaw2009-05-112-7/+2
|
* Linux signal management appears to work differently than OS X. Introduce aBarry Warsaw2009-05-114-2/+16
| | | | | runner flag to indicate whether the qrunner parent process should intercept signals or not. The REST server should not intercept signals.
* More tests for the REST server, this time, for the queue runner.Barry Warsaw2009-05-107-18/+83
| | | | | | | | | | | Add logging to the RESTRunner. Also, use pkg_resources.resource_stream() instead of .resource_string() where appropriate. Add a bunch of XXX comments for things I need to figure out about the Zope-ish parts of the lazr.restful implementation. Change __getitem__() api to _lookup().
* Several RESTful updates.Barry Warsaw2009-05-064-10/+33
| | | | | | * Fix a typo in the runner * Add support for 404 Not Found exceptions * Suppress sha module deprecation warnings from lazr.restful
* /sys -> /systemBarry Warsaw2009-05-044-9/+8
|
* A working test of the REST server. http://localhost:8001/3.0/sys returnsBarry Warsaw2009-05-046-8/+136
| | | | useful information. It's GET only atm.
* The very basics of a working REST server. Only works for localhost:8001/sysBarry Warsaw2009-05-037-23/+111
|
* Moving closer now.Barry Warsaw2009-05-028-61/+179
| | | | | | | | | * Use the source version of lazr.restful until it's cheeseshopped. * IHasGet -> IResolvePathNames * path_override -> None; we don't need this * Simplify publication. We don't need anything fancy, except that what sucks is that it seems like we need to unwrap the security proxy in callObject() * Adaptation to IAbsoluteURL still doesn't work right.
* Make things import.Barry Warsaw2009-04-022-3/+98
|
* More checkpointing.Barry Warsaw2009-04-025-4/+14
|
* Checking pointing all the ZCA and restful wiring that I really don'tBarry Warsaw2009-04-028-2/+235
| | | | understand. Cargo culting FTW.
* Checkpointing more REST stuffBarry Warsaw2009-04-014-0/+134
|
* Checkpointing restful annotations.Barry Warsaw2009-04-013-6/+19
|
* Hook in lazr.restful (which isn't in the Cheeseshop yet).Barry Warsaw2009-04-016-19/+132
| | | | | | | Add infrastructure that the first REST interface will use, i.e. providing the Mailman and Python versions. Update bin/version
* Oops!Barry Warsaw2009-03-291-31/+0
|
* Add argparse 'cause I think this might end up being cool.Barry Warsaw2009-03-2919-151/+108
| | | | | | | | Refactor the finding of components so that it's much easier to find and register the ones that come with Mailman by default. Move all the old cmd_*.py commands into the attic. These will eventually be ported to the new framework.
* Bye bye plugins module.Barry Warsaw2009-03-291-74/+0
|
* Last few conversions to pkg_resources instead of listdir'ing the file systemBarry Warsaw2009-03-292-6/+4
| | | | directly.
* typoBarry Warsaw2009-03-291-1/+1
|