summaryrefslogtreecommitdiff
path: root/paste/registry.py
Commit message (Collapse)AuthorAgeFilesLines
* Made Registries work in EvalException (prepare, register, replace, cleanup)pjenvey2006-12-071-53/+92
| | | | | | | | o Registries get their state restored from the restorer when EvalException begins executing, and their state changes are maintained by the restorer o StackedObjectProxy's _push/pop_object will no-op in that context o made get_saved_proxied_obj handle proxies having their objects de-registered within EvalException
* Fixed issue with pushing obj twice.bbangert2006-12-041-1/+0
|
* Added replace method to registry for replacing registered objects with a new ↵bbangert2006-12-041-0/+13
| | | | one.
* small refactorpjenvey2006-12-021-2/+2
|
* StackedObjectRestorer tests. fixed a couple edge cases:pjenvey2006-12-011-20/+30
| | | | | | | | | o get_saved_proxied_obj needed to delve down to allow access to older (overlaid) RegistryManagers' objects (test_restorer_nested_middleman) o save_registry_state needed to save all state, so restoration can get to every overlaid RegistryManagers' objects (test_restorer_middlemen_nested_evalexception). cleaned it up to do all the saving at once, instead of piecemeal
* StackedObjectProxies now work within the interactive debugger. Whenpjenvey2006-12-011-1/+136
| | | | | | | | | | | EvalException is enabled and RegistryManager and or EvalException detect an unexpected exception, they'll call StackedObjectRestorer to: o save the Registry state o change currently registered StackedObjectProxies to detect when they're being used within the interactive debugger via a threadlocal (resulting in a small performance hit). They'll get their proxied object from the restorer when they detect the presence of the debugger, otherwise they'll continue to work as normal
* use repr instead of __repr__ directlypjenvey2006-11-301-1/+1
|
* A big commit, primarily aesthetic/whitespace in nature. This is the result ↵ianb2006-10-201-1/+0
| | | | of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
* Adding code-block directive to Python code samples.bbangert2006-09-021-3/+9
|
* exception message cleanuppjenvey2006-08-181-6/+5
|
* moved/deprecated StackedObjectProxy's function names to be precededpjenvey2006-08-161-19/+45
| | | | with underscores, so they're less likely to clash with the contained object's attributes
* RegistryManager was close()ing the app_iter, when it needs to simply ↵pjenvey2006-08-111-2/+0
| | | | propagate it up the chain
* Fixed issue with attempting to clean-up the Registry environment twice under ↵bbangert2006-08-101-8/+7
| | | | certain exception tossing conditions.
* Fixed issue with Registry still referring to the wrong place if an app down ↵bbangert2006-08-091-11/+7
| | | | the chain uses Registry and returns an iter. Apps returning iter's should hold their own ref to any objects that used a StackedObjectProxy.
* having StackedObjectProxy.__repr__ avoid raising an exception when itpjenvey2006-08-031-1/+6
| | | | does not contain an internal object
* fix docstringianb2006-04-241-1/+1
|
* More docs, passing __len__ into objectbbangert2006-03-271-0/+39
|
* Added naming capability to StackedObject for better debugging when a object ↵bbangert2006-03-191-2/+4
| | | | isn't registered
* Fixed bug in setattr for stacked objectbbangert2006-03-191-1/+1
|
* Added unit tests to ensure that TypeError is thrown if no default is ↵bbangert2006-03-121-5/+21
| | | | | | provided and no object is pushed to the Proxy. Added ability to define a default object for a StackedObjectProxy
* Adding copyright/license infobbangert2006-03-101-0/+4
|
* Doc change to make it clear that paste.registry is a Registry instancebbangert2006-03-101-1/+1
|
* Updating docsbbangert2006-03-101-48/+90
|
* Didn't need custom app_iter, as my unit test wasn't following WSGI spec by ↵bbangert2006-03-101-17/+2
| | | | calling close on the response. Unit tests for registry all passing
* Fixes iterable issue by using new IterWrap, likely need to break it into ↵bbangert2006-03-101-1/+15
| | | | wsgilib still, added test case for iterable app
* Adding registry unit tests, fixed registry to not use weakref's so any ↵bbangert2006-03-101-14/+3
| | | | object can be proxied (including dicts)
* Initial creation of registry and stacked object proxy, hasn't been tested ↵bbangert2006-03-101-0/+197
yet but I'm feeling lucky