fpweb does not generate action names of web modules properly into the source code
Original Reporter info from Mantis: bobo
-
Reporter name: Attila Borka
Original Reporter info from Mantis: bobo
- Reporter name: Attila Borka
Description:
When creating a web application, for example CGI Application in Lazarus, and adding an action to the web module, the automatically generated procedure name only contains a number and not the given action name:
Creating an web action with a name ABC will generate an OnRequest procedure (by double clicking in the Object Inspector on the Events -> OnRequest) like:
TFPWebActions0Request(Sender: TObject;
ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);
instead of
TFPWebActionsABCRequest(Sender: TObject;
ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);
Additional information:
This makes the code not readable easily.
Also IIRC this did work before.
Tested with latest FPC and Lazarus SVN.
Mantis conversion info:
- Mantis ID: 15820
- Fixed in version: 2.4.4
- Fixed in revision: 16655 (#b58539a4)
- Monitored by: » luizamerico (Luiz Americo)