Mercurial > p > roundup > code
comparison doc/customizing.txt @ 1800:a3b1b1dcf639
Use getuid(), not figure_curuserid()
- Extended getuid() to replace figure_curuserid().
- Replace all references to curuserid with calls to getuid().
- Changed the docs to point to always point to getuid() and mention the change
in upgrading.txt.
| author | Johannes Gijsbers <jlgijsbers@users.sourceforge.net> |
|---|---|
| date | Mon, 08 Sep 2003 20:39:18 +0000 |
| parents | d2801a2b0a77 |
| children | 3ac35c8e1782 |
comparison
equal
deleted
inserted
replaced
| 1799:071ea6fc803f | 1800:a3b1b1dcf639 |
|---|---|
| 1 =================== | 1 =================== |
| 2 Customising Roundup | 2 Customising Roundup |
| 3 =================== | 3 =================== |
| 4 | 4 |
| 5 :Version: $Revision: 1.96 $ | 5 :Version: $Revision: 1.97 $ |
| 6 | 6 |
| 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: | 7 .. This document borrows from the ZopeBook section on ZPT. The original is at: |
| 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx | 8 http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx |
| 9 | 9 |
| 10 .. contents:: | 10 .. contents:: |
| 1633 | 1633 |
| 1634 db/user | 1634 db/user |
| 1635 python:db.user | 1635 python:db.user |
| 1636 | 1636 |
| 1637 Also, the current id of the current user is available as | 1637 Also, the current id of the current user is available as |
| 1638 ``db.curuserid``. This isn't so useful in templates (where you have | 1638 ``db.getuid()``. This isn't so useful in templates (where you have |
| 1639 ``request/user``), but it can be useful in detectors or interfaces. | 1639 ``request/user``), but it can be useful in detectors or interfaces. |
| 1640 | 1640 |
| 1641 The access results in a `hyperdb class wrapper`_. | 1641 The access results in a `hyperdb class wrapper`_. |
| 1642 | 1642 |
| 1643 | 1643 |
