Chris McDonough wrote:
> On 04/29/2010 07:32 AM, Chris Withers wrote:
>> Chris McDonough wrote:
>>> No. You can always override an individual registration (obtained via
>>> imperative configuration, a scan, or via ZCML) with a subsequent
>>> imperative registration.
>>
>> Okay, but how would I override a decorator with another decorator?
> 
> You won't.

Hmmm, that sure would be nice though ;-)

>> What happens if a scan finds two decorators for the same thing?
> 
> Each adds some configuration.  Neither cancels each other out.

I don't follow.

@bfg_view(name='something')
def my_view1(request):
     ...

@bfg_view(name='something')
def my_view2(request):
     ...

Which function gets called when I go to:

http://whatever/something

?

Chris

_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to