Changeset 2845

Show
Ignore:
Timestamp:
04/06/07 07:42:32 (1 year ago)
Author:
alberto
Message:

enforcing the need of a require attribute in SecureResource?

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/CHANGELOG.txt

    r2843 r2845  
    77*Changes* 
    88 
     9* SecureResource now raises an AttributeError when no require attribute is 
     10  present in the controller class or in the config file. Closes #1336. 
     11  (Note: This might break some "broken" apps, fortunately a detailed exception 
     12   is raised advising how to fix it). 
    913* slight quickstart css modification for tables 
    1014* Add default css to highlight the validation error 
  • branches/1.0/turbogears/identity/conditions.py

    r1849 r2845  
    294294 
    295295            if predicate is None: 
    296                 return value 
     296                raise AttributeError("SecureResource requires a require " 
     297                                     "attribute either on the controller class " 
     298                                     "itself or in the config file") 
    297299 
    298300            errors= []