summaryrefslogtreecommitdiff
path: root/paste/registry.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix pyflakes warningsVictor Stinner2015-04-221-1/+0
| | | | | | * Remove unused variables * Remove unused imports * Remove dead code
* Revert changeset 9f19797dffaa to fix test_registryVictor Stinner2015-04-211-11/+4
| | | | Reverted change: "Don't penalize streaming applications"
* Python 3: fix more submodulesVictor Stinner2014-03-191-3/+3
| | | | | * print syntax * replace "except Exception, exc:" with "except Exception as exc:"
* Python 3: Replace "for ... in dict.items()" with "for ... in ↵Cyril Roelandt2014-03-181-2/+3
| | | | | | six.iteritems(dict)" Same change for itervalues().
* Python 3: Replace "except Exception, exc" with "except Exception as exc:"Cyril Roelandt2014-03-181-2/+2
|
* Don't penalize streaming applicationsKristian Kvilekval2012-10-121-4/+11
|
* Catch a case where .objects doesn't exist ↵Ian Bicking2010-09-011-57/+61
| | | | (http://trac.pythonpaste.org/pythonpaste/ticket/408)
* Adding multiple registry functionbbangert2009-02-091-6/+28
|
* Speed tweak to registry accessbbangert2009-02-081-9/+12
|
* small docstring formatting fixesianb2008-04-271-3/+3
|
* Adding streaming iter option to Registrybbangert2008-04-061-1/+35
|
* have StackedObjectProxies utilize 2.6's __dir__pjenvey2008-03-311-0/+12
|
* Replace and register are identical, aliasing the method.bbangert2007-10-081-15/+3
|
* Failing to pop proper obj during register.bbangert2007-10-081-1/+1
|
* Registry fix that doesn't break restorerbbangert2007-10-041-10/+13
|
* * Fixed memory leak with ``paste.registry`` not properly removingbbangert2007-10-031-6/+9
| | | | | all references to registered objects should register be called multiple times during a single context for a StackedObjectProxy.
* Add __call__ to StackedObjectProxy. For cmlenzianb2007-04-261-0/+3
|
* Added StackedObjectProxy._object_stack()ianb2007-04-061-0/+10
|
* o self.__class__.__module__ is more appropriate than __name__ herepjenvey2007-02-181-3/+3
| | | | o no need to pad the pointer address
* removed deprecated current_obj/push_object/pop_boject methodspjenvey2007-02-151-26/+0
|
* removed unused importpjenvey2007-01-201-1/+0
|
* Patch from Jason Kirtland to allow false defaults fro StackedObjectProxy, ↵ianb2007-01-161-6/+11
| | | | and to proxy bool()/__nonzero__
* On StackedObjectProxy: Make repr() safer; use better overrides for delattr, ↵ianb2007-01-111-6/+5
| | | | delitem, iter, contains
* Added entry point for paste.registry; from suggestion from Jochen Kupperschmidtianb2007-01-081-0/+7
|
* spellingpjenvey2006-12-271-6/+6
|
* changing restorer's 'evalexception' nomenclature to 'restoration', ↵pjenvey2006-12-271-33/+37
| | | | | | continuing on r6015, as the restorer is/can be utilized outside of evalexception
* renamed restorer evalcontext_begin/end in_evalcontext to ↵pjenvey2006-12-221-12/+11
| | | | restoration_begin/end in_restoration
* rename proxy's variables to have many underscores: to avoid clashing with ↵pjenvey2006-12-211-13/+13
| | | | the proxy'd object
* 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
|