<?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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	>
<channel>
	<title>Comments on: Django AMF service</title>
	<atom:link href="http://bgcooper.com/2007/05/06/django-amf-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://bgcooper.com/2007/05/06/django-amf-service/</link>
	<description>Coffee is my EPO</description>
	<lastBuildDate>Sat, 06 Mar 2010 06:19:55 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joel Johnston</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-29002</link>
		<dc:creator>Joel Johnston</dc:creator>
		<pubDate>Sat, 24 Jan 2009 02:08:21 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-29002</guid>
		<description>@Brian Cragin - Great App!!!  I&#039;m especially enthused about it because I live in Encinitas, so this turns out be a SWEET resource for me personally.  I&#039;m also putting together some internal apps for my company here in the university city area, and I like your app layout concept, very good idea.</description>
		<content:encoded><![CDATA[<p>@Brian Cragin &#8211; Great App!!!  I&#8217;m especially enthused about it because I live in Encinitas, so this turns out be a SWEET resource for me personally.  I&#8217;m also putting together some internal apps for my company here in the university city area, and I like your app layout concept, very good idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Cooper</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-10283</link>
		<dc:creator>Ben Cooper</dc:creator>
		<pubDate>Mon, 28 Jan 2008 02:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-10283</guid>
		<description>Here&#039;s the thing. I&#039;m sure it&#039;s a problem with the Flash plugin, but I get annoyed by flash heavy interfaces which cause my browser to use almost 100% CPU and my Mac&#039;s fans to start whirring loudly! 

Wouldn&#039;t such an interface be better served with an AJAX style approach (with django serving JSON)? Check out django serialisation:

http://www.djangoproject.com/documentation/serialization/

On saying that, however, fantastic that we&#039;ve got more and more people using django as a backend for fetching data. I&#039;m particularly interested in using django for lightweight web services at the moment. Great stuff!</description>
		<content:encoded><![CDATA[<p>Here&#8217;s the thing. I&#8217;m sure it&#8217;s a problem with the Flash plugin, but I get annoyed by flash heavy interfaces which cause my browser to use almost 100% CPU and my Mac&#8217;s fans to start whirring loudly! </p>
<p>Wouldn&#8217;t such an interface be better served with an AJAX style approach (with django serving JSON)? Check out django serialisation:</p>
<p><a href="http://www.djangoproject.com/documentation/serialization/" rel="nofollow">http://www.djangoproject.com/documentation/serialization/</a></p>
<p>On saying that, however, fantastic that we&#8217;ve got more and more people using django as a backend for fetching data. I&#8217;m particularly interested in using django for lightweight web services at the moment. Great stuff!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Cragin</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-10099</link>
		<dc:creator>Brian Cragin</dc:creator>
		<pubDate>Thu, 24 Jan 2008 02:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-10099</guid>
		<description>http://golfreview.signonsandiego.com/

This is our first Flex app. Its built using Modest maps, djangoAMF and Django. Please give it a test drive and tell us what you think.</description>
		<content:encoded><![CDATA[<p><a href="http://golfreview.signonsandiego.com/" rel="nofollow">http://golfreview.signonsandiego.com/</a></p>
<p>This is our first Flex app. Its built using Modest maps, djangoAMF and Django. Please give it a test drive and tell us what you think.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thijs</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-8661</link>
		<dc:creator>Thijs</dc:creator>
		<pubDate>Mon, 24 Dec 2007 01:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-8661</guid>
		<description>There&#039;s now a generic AMF library for Python that you might want to try out (includes gateways for wsgi, django, twisted): http://pyamf.org</description>
		<content:encoded><![CDATA[<p>There&#8217;s now a generic AMF library for Python that you might want to try out (includes gateways for wsgi, django, twisted): <a href="http://pyamf.org" rel="nofollow">http://pyamf.org</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Cooper</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-4483</link>
		<dc:creator>Ben Cooper</dc:creator>
		<pubDate>Mon, 01 Oct 2007 22:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-4483</guid>
		<description>From a quick glance I can&#039;t see the AMF_GATEWAY_PATH set in your settings. Try setting the following:

AMF_GATEWAY_PATH = &#039;/gateway/&#039;

AMF logging might also help:

AMF_LOG_LEVEL = &#039;DEBUG&#039;
AMF_LOG_FILE = &#039;log/amf.txt&#039;
AMF_LOG_FILE_ENCODING = &#039;utf8&#039;
AMF_LOG_FILE_MODE = &#039;a&#039;</description>
		<content:encoded><![CDATA[<p>From a quick glance I can&#8217;t see the AMF_GATEWAY_PATH set in your settings. Try setting the following:</p>
<p>AMF_GATEWAY_PATH = &#8216;/gateway/&#8217;</p>
<p>AMF logging might also help:</p>
<p>AMF_LOG_LEVEL = &#8216;DEBUG&#8217;<br />
AMF_LOG_FILE = &#8216;log/amf.txt&#8217;<br />
AMF_LOG_FILE_ENCODING = &#8216;utf8&#8242;<br />
AMF_LOG_FILE_MODE = &#8216;a&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-3986</link>
		<dc:creator>Arthur</dc:creator>
		<pubDate>Wed, 19 Sep 2007 23:29:25 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-3986</guid>
		<description>Dear Sir,
I do the following steps but unfortunately kept getting error message, 
would you please help me?
-----------------------
/www/Django# django-admin.py startproject calculate; cd calculate;
/www/Django/calculate# md example

--- vi settings.py ---
#install applications
INSTALLED_APPS = (
&#039;django.contrib.auth&#039;,
&#039;django.contrib.contenttypes&#039;,
&#039;django.contrib.sessions&#039;,
&#039;django.contrib.sites&#039;,
&#039;example&#039;,
)


--- vi /www/Django/calculate/example/views.py --
def calculate(request, arg1, arg2): #1
    return arg1 + arg2
def calculate2(request, obj):       #2
    obj[&#039;sum&#039;] = obj[&#039;arg1&#039;] + obj[&#039;arg2&#039;]
    return obj
def getCurrentDatetime(request):    #3
    import datetime.datetime
    return datetime.now()
def getAllCustomers(request):       #4
    from example.models import Customer
    return Customer.objects.all()
------------------------------------------------------------

--------------- vi urls.py ----------------------------------------------
from django.conf.urls.defaults import *
import amf.django

urlpatterns = patterns(&#039;&#039;,
  (r&#039;^gateway/calculateService/(.*)&#039;, &#039;amf.django.views&#039;, {&#039;views&#039;:&#039;example.views&#039;}), #1

  (r&#039;^gateway/timeService/whatTimeIsItNow&#039;, &#039;exampe.views.getCurrentDatetime&#039;),       #2
)

----------test AMF in python -------------------------
import amf;
service = amf.RemotingService(&#039;http://bsd6.tv:8000/gateway/&#039;, &#039;calculateService&#039;, 3);
print service.calculate(2, 3); 

===&gt; Then, I get the error: 

Traceback (most recent call last):
  File &quot;&quot;, line 1, in ?
  File &quot;/usr/local/lib/python2.4/site-packages/amf/__init__.py&quot;, line 255, in __call__
    faultString=result.get(&#039;description&#039;, &#039;&#039;),
AttributeError: &#039;NoneType&#039; object has no attribute &#039;get&#039;
-----

Would you please give me some hints for debugging? Thanks a lots.

-- Arthur</description>
		<content:encoded><![CDATA[<p>Dear Sir,<br />
I do the following steps but unfortunately kept getting error message,<br />
would you please help me?<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
/www/Django# django-admin.py startproject calculate; cd calculate;<br />
/www/Django/calculate# md example</p>
<p>&#8212; vi settings.py &#8212;<br />
#install applications<br />
INSTALLED_APPS = (<br />
&#8216;django.contrib.auth&#8217;,<br />
&#8216;django.contrib.contenttypes&#8217;,<br />
&#8216;django.contrib.sessions&#8217;,<br />
&#8216;django.contrib.sites&#8217;,<br />
&#8216;example&#8217;,<br />
)</p>
<p>&#8212; vi /www/Django/calculate/example/views.py &#8211;<br />
def calculate(request, arg1, arg2): #1<br />
    return arg1 + arg2<br />
def calculate2(request, obj):       #2<br />
    obj['sum'] = obj['arg1'] + obj['arg2']<br />
    return obj<br />
def getCurrentDatetime(request):    #3<br />
    import datetime.datetime<br />
    return datetime.now()<br />
def getAllCustomers(request):       #4<br />
    from example.models import Customer<br />
    return Customer.objects.all()<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212; vi urls.py &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
from django.conf.urls.defaults import *<br />
import amf.django</p>
<p>urlpatterns = patterns(&#8221;,<br />
  (r&#8217;^gateway/calculateService/(.*)&#8217;, &#8216;amf.django.views&#8217;, {&#8217;views&#8217;:'example.views&#8217;}), #1</p>
<p>  (r&#8217;^gateway/timeService/whatTimeIsItNow&#8217;, &#8216;exampe.views.getCurrentDatetime&#8217;),       #2<br />
)</p>
<p>&#8212;&#8212;&#8212;-test AMF in python &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
import amf;<br />
service = amf.RemotingService(&#8217;http://bsd6.tv:8000/gateway/&#8217;, &#8216;calculateService&#8217;, 3);<br />
print service.calculate(2, 3); </p>
<p>===&gt; Then, I get the error: </p>
<p>Traceback (most recent call last):<br />
  File &#8220;&#8221;, line 1, in ?<br />
  File &#8220;/usr/local/lib/python2.4/site-packages/amf/__init__.py&#8221;, line 255, in __call__<br />
    faultString=result.get(&#8217;description&#8217;, &#8221;),<br />
AttributeError: &#8216;NoneType&#8217; object has no attribute &#8216;get&#8217;<br />
&#8212;&#8211;</p>
<p>Would you please give me some hints for debugging? Thanks a lots.</p>
<p>&#8211; Arthur</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Cooper</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-2359</link>
		<dc:creator>Ben Cooper</dc:creator>
		<pubDate>Mon, 30 Jul 2007 22:43:47 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-2359</guid>
		<description>No problem. Please see my about page for contact information.</description>
		<content:encoded><![CDATA[<p>No problem. Please see my about page for contact information.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Cragin</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-2356</link>
		<dc:creator>Brian Cragin</dc:creator>
		<pubDate>Mon, 30 Jul 2007 20:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-2356</guid>
		<description>Greetings, would it be possible to discuss your methods of connection more indepth via email?</description>
		<content:encoded><![CDATA[<p>Greetings, would it be possible to discuss your methods of connection more indepth via email?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Cooper</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-1113</link>
		<dc:creator>Ben Cooper</dc:creator>
		<pubDate>Thu, 10 May 2007 11:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-1113</guid>
		<description>I didn&#039;t see that error unfortunately. I must say though that it took me a while to figure out how to make the AMF call in Flex. I&#039;m a Python developer and getting it going was my first ever use of Flex.</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t see that error unfortunately. I must say though that it took me a while to figure out how to make the AMF call in Flex. I&#8217;m a Python developer and getting it going was my first ever use of Flex.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://bgcooper.com/2007/05/06/django-amf-service/comment-page-1/#comment-1111</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 10 May 2007 07:05:09 +0000</pubDate>
		<guid isPermaLink="false">http://bgcooper.com/2007/05/06/django-amf-service/#comment-1111</guid>
		<description>Hi,

I&#039;ve just tried it myself.  was about to go post on the sourceforge site...but trolling around google led me here.

Are you using FlexBuilder?  If you are, do you get a security sandbox violation when you try to run or debug the app from FlexBuilder?

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:

Just curious if you did, and if you did happen to -- if you found a workaround ;)

Cheers,
Steve</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve just tried it myself.  was about to go post on the sourceforge site&#8230;but trolling around google led me here.</p>
<p>Are you using FlexBuilder?  If you are, do you get a security sandbox violation when you try to run or debug the app from FlexBuilder?</p>
<p>Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:</p>
<p>Just curious if you did, and if you did happen to &#8212; if you found a workaround <img src='http://bgcooper.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Cheers,<br />
Steve</p>
]]></content:encoded>
	</item>
</channel>
</rss>
