added deprecation warning for mako tuple
| | |
| | | import posixpath |
| | | import sys |
| | | import threading |
| | | import warnings |
| | | |
| | | from zope.interface import ( |
| | | implementer, |
| | |
| | | system['_context'] = context |
| | | # tuple returned to be deprecated |
| | | if isinstance(value, tuple): |
| | | warnings.warn( |
| | | 'Using a tuple in the form (\'defname\', {}) to render a ' |
| | | 'Mako partial will be deprecated in the future. Use a ' |
| | | 'Mako template renderer as documented in the "Using A ' |
| | | 'Mako def name Within a Renderer Name" chapter of the ' |
| | | 'Pyramid narrative documentation instead', |
| | | DeprecationWarning, |
| | | 3) |
| | | self.defname, value = value |
| | | try: |
| | | system.update(value) |