<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Django Authorization from Flex/AIR via PyAMF</title>
	<atom:link href="http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/feed/" rel="self" type="application/rss+xml" />
	<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/</link>
	<description>[without unit tests] you&#039;re not refactoring; you&#039;re just changing shit. -Hamlet D&#039;Arcy</description>
	<lastBuildDate>Mon, 14 May 2012 21:01:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Bryce Barrand</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-856</link>
		<dc:creator>Bryce Barrand</dc:creator>
		<pubDate>Tue, 11 Oct 2011 20:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-856</guid>
		<description>Don&#039;t you need to add something to the urls.py as well? Like (r&#039;^gateway/$&#039;, gateway.gw),</description>
		<content:encoded><![CDATA[<p>Don&#8217;t you need to add something to the urls.py as well? Like (r&#8217;^gateway/$&#8217;, gateway.gw),</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogev Shelly</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-695</link>
		<dc:creator>Yogev Shelly</dc:creator>
		<pubDate>Fri, 11 Mar 2011 13:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-695</guid>
		<description>login is successful and i do get the user object in flash.&lt;br&gt;but when using the netConnection to call the @login_required&lt;br&gt;def - registered_user_protected_function, django prints - anonymous user.&lt;br&gt;&lt;br&gt;this page and one more are the only examples in the entire web!!!!&lt;br&gt;&lt;br&gt;Should i forget about auth sessions in django with flash? what about piston api , is that the solution for non-browser usage?&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>login is successful and i do get the user object in flash.<br />but when using the netConnection to call the @login_required<br />def &#8211; registered_user_protected_function, django prints &#8211; anonymous user.</p>
<p>this page and one more are the only examples in the entire web!!!!</p>
<p>Should i forget about auth sessions in django with flash? what about piston api , is that the solution for non-browser usage?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jasper Westra</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-618</link>
		<dc:creator>Jasper Westra</dc:creator>
		<pubDate>Sun, 31 Oct 2010 18:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-618</guid>
		<description>absolutely not relative</description>
		<content:encoded><![CDATA[<p>absolutely not relative</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loi</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-471</link>
		<dc:creator>Loi</dc:creator>
		<pubDate>Wed, 22 Jul 2009 01:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-471</guid>
		<description>Hi Joel,&lt;br&gt;&lt;br&gt;I follow your Pyamf guide and on django site, it return the user for example: &lt;Request target=u&#039;_get_user_permissions&#039;&gt;[u&#039;loi&#039;, u&#039;0000&#039;]&lt;/Request&gt;. But, in flash site, it run into error:&lt;br&gt;&lt;br&gt;ArgumentError: Error #2004: One of the parameters is invalid.&lt;br&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;br&gt;	at Authentication/::onResult()&lt;br&gt;&lt;br&gt;Could you please give advice for this?&lt;br&gt;Thanks,&lt;br&gt;Loi</description>
		<content:encoded><![CDATA[<p>Hi Joel,</p>
<p>I follow your Pyamf guide and on django site, it return the user for example: &lt;Request target=u&#39;_get_user_permissions&#39;&gt;[u&#39;loi&#39;, u&#39;0000&#39;]&lt;/Request&gt;. But, in flash site, it run into error:</p>
<p>ArgumentError: Error #2004: One of the parameters is invalid.<br />TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />	at Authentication/::onResult()</p>
<p>Could you please give advice for this?<br />Thanks,<br />Loi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loi</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-202</link>
		<dc:creator>Loi</dc:creator>
		<pubDate>Tue, 21 Jul 2009 19:13:21 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-202</guid>
		<description>Hi Joel,&lt;br&gt;&lt;br&gt;I follow your Pyamf guide and on django site, it return the user for example: &lt;Request target=u&#039;_get_user_permissions&#039;&gt;[u&#039;loi&#039;, u&#039;0000&#039;]&lt;/Request&gt;. But, in flash site, it run into error:&lt;br&gt;&lt;br&gt;ArgumentError: Error #2004: One of the parameters is invalid.&lt;br&gt;TypeError: Error #1009: Cannot access a property or method of a null object reference.&lt;br&gt;	at Authentication/::onResult()&lt;br&gt;&lt;br&gt;Could you please give advice for this?&lt;br&gt;Thanks,&lt;br&gt;Loi</description>
		<content:encoded><![CDATA[<p>Hi Joel,</p>
<p>I follow your Pyamf guide and on django site, it return the user for example: &lt;Request target=u&#39;_get_user_permissions&#39;&gt;[u&#39;loi&#39;, u&#39;0000&#39;]&lt;/Request&gt;. But, in flash site, it run into error:</p>
<p>ArgumentError: Error #2004: One of the parameters is invalid.<br />TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />	at Authentication/::onResult()</p>
<p>Could you please give advice for this?<br />Thanks,<br />Loi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay Wood</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-201</link>
		<dc:creator>Jay Wood</dc:creator>
		<pubDate>Wed, 12 Nov 2008 18:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-201</guid>
		<description>Joel,

Working for a large news organization for the past year I&#039;ve created a dozen or so Flex applications that use Django with DjangoAMF on the back end. Recently I&#039;ve been seeking a replacement for DjangoAMF, something that will work with Django 1.0. It is encouraging to see your success stories and helpful code samples posted here. Thank you for that, and keep up the good work.

Jay</description>
		<content:encoded><![CDATA[<p>Joel,</p>
<p>Working for a large news organization for the past year I&#8217;ve created a dozen or so Flex applications that use Django with DjangoAMF on the back end. Recently I&#8217;ve been seeking a replacement for DjangoAMF, something that will work with Django 1.0. It is encouraging to see your success stories and helpful code samples posted here. Thank you for that, and keep up the good work.</p>
<p>Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-200</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Wed, 01 Oct 2008 14:30:59 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-200</guid>
		<description>Hi Albert,

I would highly recommend asking on the pyAMF User List. The developers are &gt;extremely&lt; helpful.

Also, look at the example files on the pyAMF web site. There are several related to mapping objects.</description>
		<content:encoded><![CDATA[<p>Hi Albert,</p>
<p>I would highly recommend asking on the pyAMF User List. The developers are >extremely< helpful.</p>
<p>Also, look at the example files on the pyAMF web site. There are several related to mapping objects.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raghavendra</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-199</link>
		<dc:creator>raghavendra</dc:creator>
		<pubDate>Tue, 30 Sep 2008 14:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-199</guid>
		<description>i was thinking about cant we make the normal screen to work as touch screen applications ,my question is that i want to build the touch screen application for the normal screen which works like touchscreen so i saw this blog and i wanted to know this because many people say that there are touchscreen application and we have to use touch screen monitor built for those application if we can create the same this will be useful so that normal person can experience it right. so i had doubt in my mind ok i know u r the right person for this so could able to help me joel</description>
		<content:encoded><![CDATA[<p>i was thinking about cant we make the normal screen to work as touch screen applications ,my question is that i want to build the touch screen application for the normal screen which works like touchscreen so i saw this blog and i wanted to know this because many people say that there are touchscreen application and we have to use touch screen monitor built for those application if we can create the same this will be useful so that normal person can experience it right. so i had doubt in my mind ok i know u r the right person for this so could able to help me joel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-198</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Tue, 30 Sep 2008 11:09:53 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-198</guid>
		<description>Hi Joel

  I am wondering the details of mapping classes between FLEX and python
for example how the register_class functions and how shall I do that in my application, if please would you send me your example on that, thanks alot.
  Besides, recently I encountered problems when retreiving a list data in side another list from djangogateway to flex. the inner list was filtered so that I can&#039;t get those data, do you know how to figure this out?
thanks a lot</description>
		<content:encoded><![CDATA[<p>Hi Joel</p>
<p>  I am wondering the details of mapping classes between FLEX and python<br />
for example how the register_class functions and how shall I do that in my application, if please would you send me your example on that, thanks alot.<br />
  Besides, recently I encountered problems when retreiving a list data in side another list from djangogateway to flex. the inner list was filtered so that I can&#8217;t get those data, do you know how to figure this out?<br />
thanks a lot</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel</title>
		<link>http://joelhooks.com/2008/09/21/django-authorization-from-flex-air-actionscript-via-pyamf/comment-page-1/#comment-197</link>
		<dc:creator>Joel</dc:creator>
		<pubDate>Sun, 28 Sep 2008 15:41:53 +0000</pubDate>
		<guid isPermaLink="false">http://joelhooks.com/?p=88#comment-197</guid>
		<description>Hi Wolfgang,

I just noticed that I didn&#039;t register the methods for registered_user_protected_function and staff_protected_function in the gateway.py in my example code. This is necessary, of course, to call them from Flex.

Since login returns a user, I usually have a corresponding class mapped on the Flex side as a VO. The result will be a UserVO in this case so your function would be like this:

private function handleLoginResult(user:UserVO) { if(user)//do some stuff }</description>
		<content:encoded><![CDATA[<p>Hi Wolfgang,</p>
<p>I just noticed that I didn&#8217;t register the methods for registered_user_protected_function and staff_protected_function in the gateway.py in my example code. This is necessary, of course, to call them from Flex.</p>
<p>Since login returns a user, I usually have a corresponding class mapped on the Flex side as a VO. The result will be a UserVO in this case so your function would be like this:</p>
<p>private function handleLoginResult(user:UserVO) { if(user)//do some stuff }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

