<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Testing Multi-user TurboGears Applications</title>
	<atom:link href="http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/</link>
	<description>The Ramblings of a Freelance Software Developer</description>
	<pubDate>Sat, 22 Nov 2008 02:38:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: jorge.vargas</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-585</link>
		<dc:creator>jorge.vargas</dc:creator>
		<pubDate>Wed, 11 Oct 2006 03:12:31 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-585</guid>
		<description>Hey I was looking at http://trac.turbogears.org/turbogears/ticket/930

could you incorporate the comments here and make it a full grown patch to turbogears/testutil.py</description>
		<content:encoded><![CDATA[<p>Hey I was looking at <a href="http://trac.turbogears.org/turbogears/ticket/930" rel="nofollow">http://trac.turbogears.org/turbogears/ticket/930</a></p>
<p>could you incorporate the comments here and make it a full grown patch to turbogears/testutil.py</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-6</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Fri, 02 Jun 2006 15:54:32 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-6</guid>
		<description>Arthur, you should set identity.failure_url manually in your testing module.

I've added a follow-up article which discuss exactly this kind of issues (see the next post in this blog)</description>
		<content:encoded><![CDATA[<p>Arthur, you should set identity.failure_url manually in your testing module.</p>
<p>I&#8217;ve added a follow-up article which discuss exactly this kind of issues (see the next post in this blog)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Clune</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-5</link>
		<dc:creator>Arthur Clune</dc:creator>
		<pubDate>Thu, 01 Jun 2006 16:50:31 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-5</guid>
		<description>This looks like just what I need, but I can't get this to work.

The minor point is that you need an
import turbogears
in the BrowserSession code. Also it might be good to document the best way of setting up the cherrypy session when using this code. I had to add

cherrypy.root = Root()

to my test case code, or I got various cherrypy errors.

The more serious problem is that trying to visit a URL when un-authenicated gives me an error page

  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/identity/exceptions.py", line 64, in __init__
    raise IdentityConfigurationException( msg )
IdentityConfigurationException: Missing URL for identity failure

when in my app.cfg file I have

identity.failure_url="/login"

This could all just be me being foolish of course, so any hints welcome!

Cheers,

Arthur</description>
		<content:encoded><![CDATA[<p>This looks like just what I need, but I can&#8217;t get this to work.</p>
<p>The minor point is that you need an<br />
import turbogears<br />
in the BrowserSession code. Also it might be good to document the best way of setting up the cherrypy session when using this code. I had to add</p>
<p>cherrypy.root = Root()</p>
<p>to my test case code, or I got various cherrypy errors.</p>
<p>The more serious problem is that trying to visit a URL when un-authenicated gives me an error page</p>
<p>  File &#8220;/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/TurboGears-0.9a6-py2.4.egg/turbogears/identity/exceptions.py&#8221;, line 64, in __init__<br />
    raise IdentityConfigurationException( msg )<br />
IdentityConfigurationException: Missing URL for identity failure</p>
<p>when in my app.cfg file I have</p>
<p>identity.failure_url=&#8221;/login&#8221;</p>
<p>This could all just be me being foolish of course, so any hints welcome!</p>
<p>Cheers,</p>
<p>Arthur</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-4</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 01 Jun 2006 09:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-4</guid>
		<description>It didn't work for me.

I read through identity source code and noticed that parameters you pass in login url must match the names it expects, plus login button name must be present as well. E.g.:
    br.goto('/login?user_name=anna&#38;password=x&#38;login=Login')

Nevertheless, it still doesn't work for some reason so I gave up (for now).</description>
		<content:encoded><![CDATA[<p>It didn&#8217;t work for me.</p>
<p>I read through identity source code and noticed that parameters you pass in login url must match the names it expects, plus login button name must be present as well. E.g.:<br />
    br.goto(&#8217;/login?user_name=anna&amp;password=x&amp;login=Login&#8217;)</p>
<p>Nevertheless, it still doesn&#8217;t work for some reason so I gave up (for now).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Dangoor</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-3</link>
		<dc:creator>Kevin Dangoor</dc:creator>
		<pubDate>Thu, 01 Jun 2006 04:03:26 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-3</guid>
		<description>Would you mind submitting this to the track for milestone 1.0b1? You're right that we don't have one obvious way to do this, and this looks like a good solution!</description>
		<content:encoded><![CDATA[<p>Would you mind submitting this to the track for milestone 1.0b1? You&#8217;re right that we don&#8217;t have one obvious way to do this, and this looks like a good solution!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Compound Thinking &#187; TurboGears Identity testing</title>
		<link>http://www.thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-2</link>
		<dc:creator>Compound Thinking &#187; TurboGears Identity testing</dc:creator>
		<pubDate>Thu, 01 Jun 2006 02:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/05/31/testing-multi-user-turbogears-applications/#comment-2</guid>
		<description>[...] Or you could just do the simplist thing that could work, like Nadav Samet. [...]</description>
		<content:encoded><![CDATA[<p>[...] Or you could just do the simplist thing that could work, like Nadav Samet. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.236 seconds -->
