#2104: tg.url missing in tg.devtools templates ?
------------------------+---------------------------------------------------
Reporter: lszyba1 | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 2.0b1
Component: TurboGears | Version: trunk
Severity: blocker | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by lszyba1):
In addition to the missing tg.url() in quick started template the login
logout doesn't seem to redirect properly.
print devtools.__file__
/usr/local/pythonenv/BASELINE6/lib/python2.5/site-
packages/tg.devtools-2.0b1dev_r5976-py2.5.egg/devtools/__init__.pyc
When using modwsgi I set the script name like this:
WSGIScriptAlias /mainweb /path/to/myapp/mainweb.wsgi
What above does is set script_name for tg2 app.
script_name = /mainweb
This script name is not used after I click "login" or "logout"
http://localhost/mainweb/login
I fill in user:pass and when I click login, I am redirected to:
http://localhost/
instead I should be redirected to
http://localhost/mainweb/
Similar situation happens on logout:
http://localhost/login?came_from=http%3A%2F%2Flocalhost%2Fmainweb%2F
instead of
http://localhost/mainweb/login?came_from=http%3A%2F%2Flocalhost%2Fmainweb%2F
If you could tell me which part of the tg2 quick started app this
happens in then maybe I can fix it or point you to exactly where it
fails.
I think in a previous version the logon would work like this:
http://localhost/mainweb/login
this would required login and pass.
After you login the
def login(self):
would be used to redirect to proper place by using raise or return
self.index. Currently the redirect to '/' is hidden or is in some unknown
place.
Let me know,
Thanks,
Lucas
--
Ticket URL: <http://trac.turbogears.org/ticket/2104#comment:4>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---