Code

Changes between Version 4 and Version 5 of CookBookIPAccessMiddleware


Ignore:
Timestamp:
12/21/06 16:02:58 (7 years ago)
Author:
Manuel Saelices <msaelices@…>
Comment:

sorry, another tipo fix (i'm spanish)

Legend:

Unmodified
Added
Removed
Modified
  • CookBookIPAccessMiddleware

    v4 v5  
    33== The idea == 
    44 
    5 Control IP access in your web app. The idea provided in this cookbook let you define specific ip addresses, and controlling accessing from those ips. If an user access from a certain IP, automatically authenticates with a defined user. 
     5Controling IP access in your web app. The idea provided in this cookbook let you define specific ip addresses, and controlling accessing from those ips. If an user access from a certain IP, automatically authenticates with a defined user. 
    66 
    77== IPAccess Model == 
     
    3434== IPAccess Middleware == 
    3535 
    36 The middleware mission is authenticate automatically with an user defined in models, '''only if''' the remote ip address exists in IPAccess table.  
     36Middleware mission is authenticate automatically with an user defined in models, '''only if''' the remote ip address exists in ''IPAccess'' table.  
    3737 
    3838This is the code (in file ''myapp/middleware.py''): 
     
    5858== Settings == 
    5959 
    60 The middleware installation requires you insert ''IPAccessMiddleware'' into ''MIDDLEWARE_CLASSES''. Obviusly, it also requires the installation of !''AutenticationMiddleware''. 
     60The middleware installation requires you insert ''IPAccessMiddleware'' into ''MIDDLEWARE_CLASSES''. Obviusly, it also requires the installation of !''AuthenticationMiddleware''. 
    6161 
    6262The code would be like that: