<?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 for Code. Design. Explore.</title>
	<atom:link href="http://www.janisb.com/blog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.janisb.com/blog</link>
	<description>The World Through the Eyes of John Brennan</description>
	<pubDate>Sun, 06 Jul 2008 12:45:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Comment on My trip to the middle east by Zvi Band</title>
		<link>http://www.janisb.com/blog/2008/05/my-trip-to-the-middle-east/#comment-39</link>
		<dc:creator>Zvi Band</dc:creator>
		<pubDate>Sun, 08 Jun 2008 22:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=64#comment-39</guid>
		<description>Hey John!
Hope you had an amazing time in Israel. Can't wait to see your pictures and hear your experience.
-Zvi</description>
		<content:encoded><![CDATA[<p>Hey John!<br />
Hope you had an amazing time in Israel. Can&#8217;t wait to see your pictures and hear your experience.<br />
-Zvi</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zero to 60 with Pylons&#8230; in just minutes (Part 2) by phipster &#187; Blog Archive &#187; More Pylons</title>
		<link>http://www.janisb.com/blog/2008/04/zero-to-60-with-pylons-in-just-minutes-part-2/#comment-25</link>
		<dc:creator>phipster &#187; Blog Archive &#187; More Pylons</dc:creator>
		<pubDate>Fri, 02 May 2008 20:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=43#comment-25</guid>
		<description>[...] John promised, Zero to 60 with Pylons in just minutes (Part 2) is online! Now if I only had the time to play with this [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] John promised, Zero to 60 with Pylons in just minutes (Part 2) is online! Now if I only had the time to play with this [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zero to 60 with Pylons&#8230; in just minutes (Part 1) by John Brennan</title>
		<link>http://www.janisb.com/blog/2008/04/zero-to-60-with-pylons-in-just-minutes-part-1/#comment-24</link>
		<dc:creator>John Brennan</dc:creator>
		<pubDate>Fri, 02 May 2008 17:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=39#comment-24</guid>
		<description>@thekid: 

Glad you like the tutorial.  Based on your comments I probably should update the post a bit.  Here are some answers to your Qs.

1) you are probably using paster to create the controllers.  in 0.9.6 they changed the name, but because I had upgraded from 0.9.5 I had the old folder names still.  I'll update this.  Thanks
----------

2) Thanks.  I'll test it and update the post.
----------

3) Again, thanks.  What don't you understand about AuthKit?
Basically the way it works is by authenticating the user before he enters the code requiring auth.  I put it in base.py: __before__() because base always gets called before entering the desired controller.  Also, the __before__ method tells the program to execute that code before any other functions.

For example, if you were calling method add() in your FooController class, but you also defined a __before__ method in that class, then even though you are making a call to add(), __before__() will execute first.

Does that help?
----------

4) Rosetta was actually the app that I was using.  I thought I renamed all instances to MYFIRSTAPP, but I guess not.  I will change this.  So, when I say "config['pylons.h'] = rosetta.lib.helpers" I mean "config['pylons.h'] = MYFIRSTAPP.lib.helpers"


5) [e.g. 2nd post] This may be a problem with Routes.  Routes are executed from top to bottom, but as soon as it finds a regex match it will stop further processing and jump into the specified controller.  Make sure /favicon.ico is going to the image and not a bogus controller.  What is your signin method pointing to?  All of my controllers require authentication, so I placed it in base.  In this case, even though I said that /signin should go to the non-existant auth controller, it is actually being caught by lib/base.py first, and I'm defining the template there, so it never actually hits the authcontroller.

Does that help?</description>
		<content:encoded><![CDATA[<p>@thekid: </p>
<p>Glad you like the tutorial.  Based on your comments I probably should update the post a bit.  Here are some answers to your Qs.</p>
<p>1) you are probably using paster to create the controllers.  in 0.9.6 they changed the name, but because I had upgraded from 0.9.5 I had the old folder names still.  I&#8217;ll update this.  Thanks<br />
&#8212;&#8212;&#8212;-</p>
<p>2) Thanks.  I&#8217;ll test it and update the post.<br />
&#8212;&#8212;&#8212;-</p>
<p>3) Again, thanks.  What don&#8217;t you understand about AuthKit?<br />
Basically the way it works is by authenticating the user before he enters the code requiring auth.  I put it in base.py: __before__() because base always gets called before entering the desired controller.  Also, the __before__ method tells the program to execute that code before any other functions.</p>
<p>For example, if you were calling method add() in your FooController class, but you also defined a __before__ method in that class, then even though you are making a call to add(), __before__() will execute first.</p>
<p>Does that help?<br />
&#8212;&#8212;&#8212;-</p>
<p>4) Rosetta was actually the app that I was using.  I thought I renamed all instances to MYFIRSTAPP, but I guess not.  I will change this.  So, when I say &#8220;config[&#8217;pylons.h&#8217;] = rosetta.lib.helpers&#8221; I mean &#8220;config[&#8217;pylons.h&#8217;] = MYFIRSTAPP.lib.helpers&#8221;</p>
<p>5) [e.g. 2nd post] This may be a problem with Routes.  Routes are executed from top to bottom, but as soon as it finds a regex match it will stop further processing and jump into the specified controller.  Make sure /favicon.ico is going to the image and not a bogus controller.  What is your signin method pointing to?  All of my controllers require authentication, so I placed it in base.  In this case, even though I said that /signin should go to the non-existant auth controller, it is actually being caught by lib/base.py first, and I&#8217;m defining the template there, so it never actually hits the authcontroller.</p>
<p>Does that help?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zero to 60 with Pylons&#8230; in just minutes (Part 1) by thekid</title>
		<link>http://www.janisb.com/blog/2008/04/zero-to-60-with-pylons-in-just-minutes-part-1/#comment-23</link>
		<dc:creator>thekid</dc:creator>
		<pubDate>Wed, 30 Apr 2008 22:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=39#comment-23</guid>
		<description>My apology for saying that I would post my next question in the Part 2 page. I think my question is more appropriate to be asked here, because I know my Pylons project doesn't reach the database at all =p

So, after I made changes needed just to squash all compile errors, I have this "Internal Server Error" on the browser page, and in the command prompt it says:
AssertionError: Forwarding loop detected; '/signin' visited twice (internal redirect path: ['/favicon.ico', '/signin'])

Do you have any idea what causes it and how to fix it?

Many thanks for the tutorial.</description>
		<content:encoded><![CDATA[<p>My apology for saying that I would post my next question in the Part 2 page. I think my question is more appropriate to be asked here, because I know my Pylons project doesn&#8217;t reach the database at all =p</p>
<p>So, after I made changes needed just to squash all compile errors, I have this &#8220;Internal Server Error&#8221; on the browser page, and in the command prompt it says:<br />
AssertionError: Forwarding loop detected; &#8216;/signin&#8217; visited twice (internal redirect path: [&#8217;/favicon.ico&#8217;, &#8216;/signin&#8217;])</p>
<p>Do you have any idea what causes it and how to fix it?</p>
<p>Many thanks for the tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Zero to 60 with Pylons&#8230; in just minutes (Part 1) by thekid</title>
		<link>http://www.janisb.com/blog/2008/04/zero-to-60-with-pylons-in-just-minutes-part-1/#comment-22</link>
		<dc:creator>thekid</dc:creator>
		<pubDate>Wed, 30 Apr 2008 22:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=39#comment-22</guid>
		<description>Hi, this is a very interesting tutorial.

I have a few issues and questions, and I will post them in this page and Part 2 page.
Also, here's my environment:
Python 2.5; Pylons 0.9.6.1; setuptools 0.6c8; PasteScript 1.6.2; SQLAlchemy 0.4.5; AuthKit 0.4.0
I run all these on Windows XP.

Ok, here we go.

1. I had to change MYFIRSTAPP.models to MYFIRSTAPP.model because it's "model" instead of "models" in my Pylons project directory.

2. [code]app = authkit.authenticate.middleware(app, config_paste=app_conf)[/code]
I changed the second argument to "app_conf"
Please see http://wiki.pylonshq.com/display/pysbook/Authentication+and+Authorization#authentication-middleware

3. I think your development.ini is still using the "old convention" for AuthKit. This is what I have:
authkit.setup.enable = true
authkit.setup.method = forward
authkit.cookie.secret = a random dtk string
authkit.forward.internalpath = /signin
authkit.cookie.signout = /signout

Honestly, I don't really understand how to use AuthKit, so your help will be appreciated.

4. Last thing for this page, a question:
How do you install Rosetta? Or perhaps it's not possible at all on a Windows machine?

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi, this is a very interesting tutorial.</p>
<p>I have a few issues and questions, and I will post them in this page and Part 2 page.<br />
Also, here&#8217;s my environment:<br />
Python 2.5; Pylons 0.9.6.1; setuptools 0.6c8; PasteScript 1.6.2; SQLAlchemy 0.4.5; AuthKit 0.4.0<br />
I run all these on Windows XP.</p>
<p>Ok, here we go.</p>
<p>1. I had to change MYFIRSTAPP.models to MYFIRSTAPP.model because it&#8217;s &#8220;model&#8221; instead of &#8220;models&#8221; in my Pylons project directory.</p>
<p>2. [code]app = authkit.authenticate.middleware(app, config_paste=app_conf)[/code]<br />
I changed the second argument to &#8220;app_conf&#8221;<br />
Please see <a href="http://wiki.pylonshq.com/display/pysbook/Authentication+and+Authorization#authentication-middleware" rel="nofollow">http://wiki.pylonshq.com/display/pysbook/Authentication+and+Authorization#authentication-middleware</a></p>
<p>3. I think your development.ini is still using the &#8220;old convention&#8221; for AuthKit. This is what I have:<br />
authkit.setup.enable = true<br />
authkit.setup.method = forward<br />
authkit.cookie.secret = a random dtk string<br />
authkit.forward.internalpath = /signin<br />
authkit.cookie.signout = /signout</p>
<p>Honestly, I don&#8217;t really understand how to use AuthKit, so your help will be appreciated.</p>
<p>4. Last thing for this page, a question:<br />
How do you install Rosetta? Or perhaps it&#8217;s not possible at all on a Windows machine?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A checklist to stock investing by M-Sizzle</title>
		<link>http://www.janisb.com/blog/2008/04/a-checklist-to-stock-investing/#comment-21</link>
		<dc:creator>M-Sizzle</dc:creator>
		<pubDate>Mon, 28 Apr 2008 20:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=52#comment-21</guid>
		<description>Nice Post Johnny B! Well said.  Armed with this new knowledge I'm going to buy the first stock Cramer suggests tonight!</description>
		<content:encoded><![CDATA[<p>Nice Post Johnny B! Well said.  Armed with this new knowledge I&#8217;m going to buy the first stock Cramer suggests tonight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A checklist to stock investing by Zvi Band</title>
		<link>http://www.janisb.com/blog/2008/04/a-checklist-to-stock-investing/#comment-20</link>
		<dc:creator>Zvi Band</dc:creator>
		<pubDate>Mon, 28 Apr 2008 15:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=52#comment-20</guid>
		<description>Great post John!
I had tried getting into investing earlier on (I will admit that Jim Cramer was a big influence), but ended up selling out, due to lack of time and understanding. I hope to get back in know, and this definitely helps.
-Zvi</description>
		<content:encoded><![CDATA[<p>Great post John!<br />
I had tried getting into investing earlier on (I will admit that Jim Cramer was a big influence), but ended up selling out, due to lack of time and understanding. I hope to get back in know, and this definitely helps.<br />
-Zvi</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A checklist to stock investing by Jason Rakowski</title>
		<link>http://www.janisb.com/blog/2008/04/a-checklist-to-stock-investing/#comment-18</link>
		<dc:creator>Jason Rakowski</dc:creator>
		<pubDate>Mon, 28 Apr 2008 01:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=52#comment-18</guid>
		<description>Good Layout and design.  I like your blog.  I just added your RSS feed to my Google News Reader.  .

Jason Rakowski</description>
		<content:encoded><![CDATA[<p>Good Layout and design.  I like your blog.  I just added your RSS feed to my Google News Reader.  .</p>
<p>Jason Rakowski</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on A checklist to stock investing by Allen Taylor</title>
		<link>http://www.janisb.com/blog/2008/04/a-checklist-to-stock-investing/#comment-17</link>
		<dc:creator>Allen Taylor</dc:creator>
		<pubDate>Mon, 28 Apr 2008 01:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=52#comment-17</guid>
		<description>Nice writing.  You are on my RSS reader now so I can read more from you down the road.

Allen Taylor</description>
		<content:encoded><![CDATA[<p>Nice writing.  You are on my RSS reader now so I can read more from you down the road.</p>
<p>Allen Taylor</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Debugging JavaScript in IE&#8230; ahh! by JFR</title>
		<link>http://www.janisb.com/blog/2008/04/debugging-javascript-in-ie-ahh/#comment-16</link>
		<dc:creator>JFR</dc:creator>
		<pubDate>Wed, 23 Apr 2008 07:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.janisb.com/blog/?p=49#comment-16</guid>
		<description>Hi,

You can also try DebugBar (http://www.debugbar.com/) which adds to IE DOM inspector, http sniffer, javascript console, and a lot of other features.
Companion.JS (http://www.my-debugbar.com/wiki/CompanionJS/HomePage) which gives detailled JSscript errors, and console.log feature compatible with Firebug.

Hope this helps.

JFR
http://www.debugbar.com</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You can also try DebugBar (http://www.debugbar.com/) which adds to IE DOM inspector, http sniffer, javascript console, and a lot of other features.<br />
Companion.JS (http://www.my-debugbar.com/wiki/CompanionJS/HomePage) which gives detailled JSscript errors, and console.log feature compatible with Firebug.</p>
<p>Hope this helps.</p>
<p>JFR<br />
<a href="http://www.debugbar.com" rel="nofollow">http://www.debugbar.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
