Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 5973:fe334430ca07
issue2550919 - Anti-bot signup using 4 second delay
Took the code by erik forsberg and massaged it into the core.
So this is no longer needed in the tracker.
Updated devel and responsive trackers to remove timestamp.py and
update input field name.
Docs, changes and tests complete. Hopefully these tracker changes
won't cause an issue for other tests.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 09 Nov 2019 00:30:37 -0500 |
| parents | 33914dd1160f |
| children | 39b8bc511ed7 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Thu Nov 07 21:09:02 2019 -0500 +++ b/roundup/cgi/templating.py Sat Nov 09 00:30:37 2019 -0500 @@ -35,6 +35,8 @@ from .KeywordsExpr import render_keywords_expression_editor +from roundup.cgi.timestamp import pack_timestamp + import roundup.anypy.random_ as random_ try: import cPickle as pickle @@ -3090,6 +3092,9 @@ def anti_csrf_nonce(self, lifetime=None): return anti_csrf_nonce(self.client, lifetime=lifetime) + def timestamp(self): + return pack_timestamp() + def url_quote(self, url): """URL-quote the supplied text.""" return urllib_.quote(url)
