Ignore:
Timestamp:
Aug 9, 2009, 6:45:35 PM (15 years ago)
Author:
quentin
Message:

Get username from cherrypy request object

Location:
package_branches/invirt-web/cherrypy/code
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • package_branches/invirt-web/cherrypy/code/main.py

    r2409 r2410  
    140140            subject = [subject]
    141141
    142         return dict(user=cherrypy.request.login,
    143                     simple=simple,
     142        return dict(simple=simple,
    144143                    subjects=subject,
    145144                    mapping=help_mapping)
  • package_branches/invirt-web/cherrypy/code/templates/skeleton.mako

    r2393 r2410  
    4747
    4848% if not simple:
    49 % if user:
    50 <p class="loggedin">Welcome, <span class="name">${user}</span>.</p>
     49% if cherrypy.request.login:
     50<p class="loggedin">Welcome, <span class="name">${cherrypy.request.login}</span>.</p>
    5151% endif
    5252
Note: See TracChangeset for help on using the changeset viewer.