Browse files

Fix a few missed repoze.what references

  • Loading branch information...
1 parent 85a0b4c commit 157f66df1c508f55e1e544aa1fbd9869b0b90525 @amol- amol- committed May 8, 2012
Showing with 6 additions and 4 deletions.
  1. +2 −2 docs/main/Auth/Authorization.rst
  2. +2 −2 docs/main/CakePHPIntro.rst
  3. +2 −0 docs/main/Config.rst
View
4 docs/main/Auth/Authorization.rst
@@ -103,7 +103,7 @@ to do is pass the predicate to that decorator. For example::
# ...
from tg import require
- from repoze.what.predicates import Any, is_user, has_permission
+ from tg.predicates import Any, is_user, has_permission
# ...
class MyCoolController(BaseController):
# ...
@@ -237,7 +237,7 @@ class. For example, if your predicate is "Check that the current month is the
specified one", your predicate checker may look like this::
from datetime import date
- from repoze.what.predicates import Predicate
+ from tg.predicates import Predicate
class is_month(Predicate):
message = 'The current month must be %(right_month)s'
View
4 docs/main/CakePHPIntro.rst
@@ -44,7 +44,7 @@ easy to use forms creation & validation framework:
+-------------------------+-----------------------------+-------------------------------------------+
| Testing Framework: | Based on SimpleTest | ``nose`` |
+-------------------------+-----------------------------+-------------------------------------------+
-| Security Framework: | Security component | ``repoze.who`` & ``repoze.what`` |
+| Security Framework: | Security component | ``repoze.who`` & ``Authentication`` |
+-------------------------+-----------------------------+-------------------------------------------+
| Forms Framework: | Form helper | ``tw2.forms`` & ``formencode`` |
+-------------------------+-----------------------------+-------------------------------------------+
@@ -197,7 +197,7 @@ A Comparison of Components
+------------------------+--------------------------------------------------------+
| CakePHP [#]_ | TurboGears |
+========================+========================================================+
-| ACL, Auth & Security | ``repoze.who`` and ``repoze.what`` |
+| ACL, Auth & Security | ``repoze.who`` and ``tg.predicates`` |
+------------------------+--------------------------------------------------------+
| Cookie | ``from tg import response``, ``response.set_cookie()`` |
| | & ``from tg import request``, ``request.cookies`` |
View
2 docs/main/Config.rst
@@ -279,6 +279,8 @@ Available Hooks
* ``before_render(remainder, params, output)`` - Called before rendering a controller template, ``output`` is the controller return value
* ``after_render(response)`` - Called after finishing rendering a controller template
+
+
Static Files
++++++++++++++++

0 comments on commit 157f66d

Please sign in to comment.