summaryrefslogtreecommitdiff
path: root/src/mailman/rest (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup.Barry Warsaw2009-11-041-1/+0
|
* Use lazr.smtptest instead of our own SMTPServer and test SMTPd.Barry Warsaw2009-10-153-4/+5
| | | | | Update the lazr.restful IWebServiceConfiguration implementation to include the new hop_by_hop_headers attribute, by way of BaseWSGIWebServiceConfiguration.
* Instead of using an adapter, use a utility to get the mailing list manager.Barry Warsaw2009-08-263-3/+6
|
* Test updates and repair.xoBarry Warsaw2009-08-213-3/+6
|
* Clean ups.Barry Warsaw2009-08-171-5/+1
|
* Use an adapter instead of custom handleException() code to return a 404Barry Warsaw2009-08-172-10/+10
| | | | instead of a 500 for NotFound errors.
* We don't need the AadminWebServiceRequest any more.Barry Warsaw2009-08-172-11/+5
|
* Use the new lazr.restful.simple.Publication as a base class.Barry Warsaw2009-08-171-50/+7
|
* Fix some urls returned by the api. Instead of 'mailing_lists' use 'lists'.Barry Warsaw2009-08-072-8/+23
| | | | | Also, extend the ListManager so that it implements IResolvePathNames, so that it can get() sub-mailing lists.
* 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-063-6/+20
| | | | | | the improvement of the publication's handleException() method. Pick some lint in traverse.py.
* Move BadDomainSpecificationError to domain.txt interface. Try to set this toBarry Warsaw2009-07-261-0/+43
| | | | | | 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-253-8/+51
| | | | | | * 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-212-5/+45
| | | | | | | | 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-206-17/+67
| | | | | | | | | 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-181-10/+10
|
* Wow. Put domains into the database.Barry Warsaw2009-07-164-48/+73
| | | | | | | | 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-108-65/+27
| | | | | | | | | | | | | | 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.
* Remove some unused stuff and pick some lint.Barry Warsaw2009-07-012-74/+2
|
* 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-294-10/+48
| | | | to the varnish.
* Set testing threads as daemon so they won't hang.Barry Warsaw2009-06-292-4/+4
| | | | Fix system absolute url.
* More REST server updates.Barry Warsaw2009-06-297-14/+70
| | | | | | | * 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
|
* Allow for setting the doctest layer in the doctest package's __init__. If notBarry Warsaw2009-05-272-11/+32
| | | | given, then SMTPLayer is used by default.
* Get rid of some useless stuff.Barry Warsaw2009-05-252-11/+8
|
* Add initialization pre- and post- hooks, configurable in the config file.Barry Warsaw2009-05-151-7/+0
| | | | | | | | | | | 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
|
* More tests for the REST server, this time, for the queue runner.Barry Warsaw2009-05-102-2/+5
| | | | | | | | | | | 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-063-9/+32
| | | | | | * 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-044-6/+115
| | | | useful information. It's GET only atm.
* The very basics of a working REST server. Only works for localhost:8001/sysBarry Warsaw2009-05-033-17/+45
|
* Moving closer now.Barry Warsaw2009-05-027-58/+176
| | | | | | | | | * 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-026-2/+219
| | | | understand. Cargo culting FTW.
* Checkpointing more REST stuffBarry Warsaw2009-04-013-0/+98