Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/cherrypy/tutorial/__pycache__/tut06_default_method.cpython-39.pyc
Ðазад
a v�h� � @ sT d Z ddlZddlZG dd� d�Zej�ej�e�d�Z e dkrPeje� e d� dS )a� Tutorial - The default method Request handler objects can implement a method called "default" that is called when no other suitable method/object could be found. Essentially, if CherryPy2 can't find a matching request handler object for the given request URI, it will use the default method of the object located deepest on the URI path. Using this mechanism you can easily simulate virtual URI structures by parsing the extra URI string, which you can access through cherrypy.request.virtualPath. The application in this tutorial simulates an URI structure looking like /users/<username>. Since the <username> bit will not be found (as there are no matching methods), it is handled by the default method. � Nc @ s( e Zd Zejdd� �Zejdd� �ZdS )� UsersPagec C s dS )Nz� <a href="./remi">Remi Delon</a><br/> <a href="./hendrik">Hendrik Mans</a><br/> <a href="./lorenzo">Lorenzo Lamas</a><br/> � )�selfr r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/cherrypy/tutorial/tut06_default_method.py�index s zUsersPage.indexc C s6 |dkrd}n |dkrd}n|dkr*d}nd}d| S ) NZremiz#Remi Delon, CherryPy lead developerZhendrikz2Hendrik Mans, CherryPy co-developer & crazy GermanZlorenzoz'Lorenzo Lamas, famous actor and singer!zUnknown user. :-(z%s (<a href="./">back</a>)r )r �user�outr r r �default% s zUsersPage.defaultN)�__name__� __module__�__qualname__�cherrypyZexposer r r r r r r s r z tutorial.conf�__main__)�config)�__doc__�os.path�osr r �path�join�dirname�__file__Ztutconfr Z quickstartr r r r �<module> s
| ver. 1.1 | |
.
| PHP 8.3.30 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка