comparison doc/upgrading.txt @ 8567:9eab8b7de1b3

doc: clarify input -> input_payload transition.
author John Rouillard <rouilj@ieee.org>
date Thu, 09 Apr 2026 12:23:05 -0400
parents e4191aa7b402
children 052f4536fb85
comparison
equal deleted inserted replaced
8566:e4191aa7b402 8567:9eab8b7de1b3
585 the url. 585 the url.
586 586
587 Modify Custom Rest Endpoints (required) 587 Modify Custom Rest Endpoints (required)
588 --------------------------------------- 588 ---------------------------------------
589 589
590 As part of code maintenance and cleanup, the ``input`` variable used 590 If there is no interfaces.py file in your tracker home, you can
591 when defining new REST endpoints was renamed to ``input_payload``. The 591 skip this section.
592 ``input`` variable was shadowing the ``input`` built-in function and 592
593 was renamed. 593 In the course of code maintenance and cleanup, variable ``input``
594 594 used when defining new REST endpoints was renamed to
595 So if you defined a custom REST endpoint in interfaces.py and it looks 595 ``input_payload``. The ``input`` variable was renamed because it
596 was shadowing the ``input`` built-in function.
597
598 If you defined a custom REST endpoint in interfaces.py that looks
596 like:: 599 like::
597 600
598 def summary2(self, input): 601 def summary2(self, input):
599 602
600 you should change it to read:: 603 you should change it to::
601 604
602 def summary2(self, input_payload): 605 def summary2(self, input_payload):
603 606
604 and change any references to input inside the function to 607 Then change any references to ``input`` inside the function to
605 ``input_payload``. The section :ref:`adding_new_rest_endpoints` has 608 ``input_payload``. The section :ref:`adding_new_rest_endpoints`
606 been updated if you need additional examples. 609 has been updated if you need additional examples.
607 610
608 Deprecation Notices (required) 611 Deprecation Notices (required)
609 ------------------------------ 612 ------------------------------
610 613
611 * Support for SQLite version 2 has been removed in 2.5.0. 614 * Support for SQLite version 2 has been removed in 2.5.0.

Roundup Issue Tracker: http://roundup-tracker.org/