<?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: Four Tips on Identity Testing</title>
	<atom:link href="http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/</link>
	<description>The Ramblings of a Freelance Software Developer</description>
	<pubDate>Sat, 22 Nov 2008 03:26:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Jamie</title>
		<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/#comment-6658</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 19 Sep 2007 18:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/06/02/identity-testing-technicalities/#comment-6658</guid>
		<description>I'm very new to Turbogears.  I downloaded your "full source code of a minimal identity testable project."

from the WindowsXP commandline I ran:
python start-idtest.py
which loads up the webserver to port 8080 (just like all the other tutorials etc I've run).

I thought I'd view the site in a browser (IE 6.0) by going to the following URL:  http://localhost:8080/

I'm shown an ERROR page:
-----------------------------------------
500 Internal error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\_cphttptools.py", line 103, in _run
    applyFilters('before_main')
  File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\filters\__init__.py", line 151, in applyFilters
    method()
  File "c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\visit\api.py", line 146, in before_main
    visit = _manager.new_visit_with_key(visit_key)
  File "c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\visit\sovisit.py", line 44, in new_visit_with_key
    visit= visit_class( visit_key=visit_key, expiry=datetime.now()+self.timeout )
  File "c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\declarative.py", line 98, in _wrapper
    return fn(self, *args, **kwargs)
  File "c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py", line 1218, in __init__
    self._create(id, **kw)
  File "c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py", line 1246, in _create
    self.set(**kw)
  File "c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py", line 1093, in set
    kw[name] = dbValue = from_python(value, self._SO_validatorState)
  File "c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\col.py", line 596, in from_python
    (self.name, type(value), value), value, state)
Invalid: expected an int in the IntCol 'user_id', got   instead

-----------------------------------------

I've also run 'nosetests' from the root folder of the project and 3 of the 4 tests fail.  I decided to print out self.user.response and it mentions the INTERNAL 500 ERROR in the response.  Here is the body text:
-----------------------------------------    
        500 Internal error
        The server encountered an unexpected condition which prevented it fro
m fulfilling the request.
        Traceback (most recent call last):
  File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\_cphttpt
ools.py", line 103, in _run
    applyFilters('before_main')
  File "c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\filters\
__init__.py", line 151, in applyFilters
    method()
  File "c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\vi
sit\api.py", line 146, in before_main
    visit = _manager.new_visit_with_key(visit_key)
AttributeError: 'NoneType' object has no attribute 'new_visit_with_key'

    
    Powered by &lt;a href="http://www.cherrypy.org" rel="nofollow"&gt;CherryPy 2.2.1&lt;/a&gt;

    
    
--------------------------------------

I'm running Python 2.5
SQL:Lite
all defaults as far as I know, I just used easy_install etc.</description>
		<content:encoded><![CDATA[<p>I&#8217;m very new to Turbogears.  I downloaded your &#8220;full source code of a minimal identity testable project.&#8221;</p>
<p>from the WindowsXP commandline I ran:<br />
python start-idtest.py<br />
which loads up the webserver to port 8080 (just like all the other tutorials etc I&#8217;ve run).</p>
<p>I thought I&#8217;d view the site in a browser (IE 6.0) by going to the following URL:  <a href="http://localhost:8080/" rel="nofollow">http://localhost:8080/</a></p>
<p>I&#8217;m shown an ERROR page:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
500 Internal error<br />
The server encountered an unexpected condition which prevented it from fulfilling the request.</p>
<p>Traceback (most recent call last):<br />
  File &#8220;c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\_cphttptools.py&#8221;, line 103, in _run<br />
    applyFilters(&#8217;before_main&#8217;)<br />
  File &#8220;c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\filters\__init__.py&#8221;, line 151, in applyFilters<br />
    method()<br />
  File &#8220;c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\visit\api.py&#8221;, line 146, in before_main<br />
    visit = _manager.new_visit_with_key(visit_key)<br />
  File &#8220;c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\visit\sovisit.py&#8221;, line 44, in new_visit_with_key<br />
    visit= visit_class( visit_key=visit_key, expiry=datetime.now()+self.timeout )<br />
  File &#8220;c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\declarative.py&#8221;, line 98, in _wrapper<br />
    return fn(self, *args, **kwargs)<br />
  File &#8220;c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py&#8221;, line 1218, in __init__<br />
    self._create(id, **kw)<br />
  File &#8220;c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py&#8221;, line 1246, in _create<br />
    self.set(**kw)<br />
  File &#8220;c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\main.py&#8221;, line 1093, in set<br />
    kw[name] = dbValue = from_python(value, self._SO_validatorState)<br />
  File &#8220;c:\python25\lib\site-packages\SQLObject-0.9.1-py2.5.egg\sqlobject\col.py&#8221;, line 596, in from_python<br />
    (self.name, type(value), value), value, state)<br />
Invalid: expected an int in the IntCol &#8216;user_id&#8217;, got   instead</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>I&#8217;ve also run &#8216;nosetests&#8217; from the root folder of the project and 3 of the 4 tests fail.  I decided to print out self.user.response and it mentions the INTERNAL 500 ERROR in the response.  Here is the body text:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
        500 Internal error<br />
        The server encountered an unexpected condition which prevented it fro<br />
m fulfilling the request.<br />
        Traceback (most recent call last):<br />
  File &#8220;c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\_cphttpt<br />
ools.py&#8221;, line 103, in _run<br />
    applyFilters(&#8217;before_main&#8217;)<br />
  File &#8220;c:\python25\lib\site-packages\cherrypy-2.2.1-py2.5.egg\cherrypy\filters\<br />
__init__.py&#8221;, line 151, in applyFilters<br />
    method()<br />
  File &#8220;c:\python25\lib\site-packages\TurboGears-1.0.3.2-py2.5.egg\turbogears\vi<br />
sit\api.py&#8221;, line 146, in before_main<br />
    visit = _manager.new_visit_with_key(visit_key)<br />
AttributeError: &#8216;NoneType&#8217; object has no attribute &#8216;new_visit_with_key&#8217;</p>
<p>    Powered by <a href="http://www.cherrypy.org" rel="nofollow">CherryPy 2.2.1</a></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>I&#8217;m running Python 2.5<br />
SQL:Lite<br />
all defaults as far as I know, I just used easy_install etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thesamet</title>
		<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/#comment-6483</link>
		<dc:creator>thesamet</dc:creator>
		<pubDate>Tue, 05 Jun 2007 13:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/06/02/identity-testing-technicalities/#comment-6483</guid>
		<description>Hi Josh,

Can't remember at the moment why... As this was posted a while ago, it might have been an issue with tg which is already fixed.</description>
		<content:encoded><![CDATA[<p>Hi Josh,</p>
<p>Can&#8217;t remember at the moment why&#8230; As this was posted a while ago, it might have been an issue with tg which is already fixed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/#comment-6482</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 05 Jun 2007 13:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/06/02/identity-testing-technicalities/#comment-6482</guid>
		<description>Hmm.. any reason turbogears.startup.stopTurbogears() is commented out in the downloaded source's tearDown()?</description>
		<content:encoded><![CDATA[<p>Hmm.. any reason turbogears.startup.stopTurbogears() is commented out in the downloaded source&#8217;s tearDown()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Russell</title>
		<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/#comment-120</link>
		<dc:creator>Peter Russell</dc:creator>
		<pubDate>Sat, 22 Jul 2006 18:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/06/02/identity-testing-technicalities/#comment-120</guid>
		<description>It's worth noting that if you have a quickstarted project then you will probably have classes in your model called User, Group and Permission, rather than the TG_User, TG_Group and TG_Permission that is used by default in turbogears.identity.  You therefore have to set those correctly in your test configuration.  Look at config/app.cfg to see what those values are.</description>
		<content:encoded><![CDATA[<p>It&#8217;s worth noting that if you have a quickstarted project then you will probably have classes in your model called User, Group and Permission, rather than the TG_User, TG_Group and TG_Permission that is used by default in turbogears.identity.  You therefore have to set those correctly in your test configuration.  Look at config/app.cfg to see what those values are.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Clune</title>
		<link>http://www.thesamet.com/blog/2006/06/02/four-tips-on-identity-testing/#comment-27</link>
		<dc:creator>Arthur Clune</dc:creator>
		<pubDate>Mon, 19 Jun 2006 09:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://thesamet.com/blog/2006/06/02/identity-testing-technicalities/#comment-27</guid>
		<description>Many thanks for these tips - I've now got it all working nicely.

Cheers!

Arthur</description>
		<content:encoded><![CDATA[<p>Many thanks for these tips - I&#8217;ve now got it all working nicely.</p>
<p>Cheers!</p>
<p>Arthur</p>
]]></content:encoded>
	</item>
</channel>
</rss>

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