Questions tagged [pyamf]

Use pyamf for questions related to the pyAMF framework, which is a Python binding for the Action Message Format (AMF) specification.

References

50 questions
7
votes
1 answer

File handling in Django when posting image from service call

I am using PyAMF to transfer a dynamically generated large image from Flex to Django. On the Django side i receive the encodedb64 data as a parameter: My Item model as an imagefield. What i have trouble to do is saving the data as the File Django…
coulix
  • 3,328
  • 6
  • 55
  • 81
4
votes
2 answers

How can I use Flex to access foreign-keyed fields in Django?

I have the following Django and Flex code: Django class Author(models.Model): name = models.CharField(max_length=30) class Book(models.Model): title = models.CharField(max_length=30) author = models.ForeignKeyField(Author) Flex package…
Huuuze
  • 15,528
  • 25
  • 72
  • 91
3
votes
1 answer

httplib binary data and UnicodeDecodeError in python 2.7

I just discovered that starting with Python 2.7, the httplib doesn't work anymore with binary data, breaking modules that where sending binary data over HTTP, one example being PyAMF Python bug: http://bugs.python.org/issue11898 PyAMF bug:…
sorin
  • 161,544
  • 178
  • 535
  • 806
3
votes
1 answer

Where (at which point in the code) does pyAMF client accept SSL certificate?

I've set up a server listening on an SSL port. I am able to connect to it and with proper credentials I am able to access the services (echo service in the example below) The code below works fine, but I don't understand at which point the client…
AnalyticsBuilder
  • 4,111
  • 4
  • 24
  • 36
2
votes
1 answer

Using mx:RemoteObject with web2py's @service.amfrpc decorator

I am using web2py (v1.63) and Flex 3. web2py v1.61 introduced the @service decorators, which allow you to tag a controller function with @service.amfrpc. You can then call that function remotely using http://..../app/default/call/amfrpc/[function].…
Rob Lund
  • 593
  • 1
  • 7
  • 17
2
votes
2 answers

PyAMF / Django - Flex class mapping errors

I'm using PyAmf to communicate with a Flex app. But I keep getting errors. My model: from django.contrib.auth.models import User class Talent(User): street = models.CharField(max_length=100) street_nr = models.CharField(max_length=100) …
Joske
2
votes
1 answer

PyAMF DatabaseError: 'This query is not supported by the database.' when returning the User object

This is the error I'm getting: ERROR 2011-11-19 04:19:55,441 django.py:164] Error encoding AMF request Traceback (most recent call last): File…
b-ryce
  • 5,752
  • 7
  • 49
  • 79
2
votes
2 answers

Issue with PyAMF, Django, and Python's "property" feature

So far, I've had great success using PyAMF to communicate between my Flex front-end and my Django back-end. However, I believe I've encountered a bug. The following example (emphasis on the word "example") demonstrates the (potential) bug: My Flex…
Huuuze
  • 15,528
  • 25
  • 72
  • 91
2
votes
1 answer

i got this error: "ImportError: cannot import name python" How do I fix it?

File "G:\Python25\Lib\site-packages\PyAMF-0.6b2-py2.5-win32.egg\pyamf\util\__init__.py", line 15, in ImportError: cannot import name python How do I fix it? If you need any info to know how to fix this problem, I can explain, just…
Totty.js
  • 15,563
  • 31
  • 103
  • 175
2
votes
2 answers

Can PyAMF support service deployment by way of the filesystem?

I'm evaluating PyAMF to replace our current PHP (ugh) AMF services framework, and I'm unable to find the one crucial piece of information that would allow me to provide a compelling use case for changing over: Right now, new PHP AMF services are…
Chris R
  • 17,546
  • 23
  • 105
  • 172
2
votes
2 answers

return a FaultObject on purpose from pyamf

I am currently migrating from RubyAMF to PyAMF. In RubyAMF you can return a FaultObject deliberately like so: render :amf => FaultObject.new("Thats not your pie!") Is there comparable functionality in PyAMF? I've searched the docs and can't find…
greggreg
  • 11,945
  • 6
  • 37
  • 52
2
votes
1 answer

Using setuptools with install parameters

Is there a way to pass install args through install_requires in setuptools? What I'm trying to do specifically is install PyAMF using the --disable-ext arg. I've tried variations of: from setuptools import setup setup( …
Demian Brecht
  • 21,135
  • 5
  • 42
  • 46
1
vote
2 answers

Hello world Pyamf small error message

Hi i am trying to link flex to django with Pyamf As a first step i tried the basic Hello World http://pyamf.org/wiki/DjangoHowto But that results in an ErrorFault. I use django 1.0.2 amfgateway.py in the root folder of my project (same level as…
coulix
  • 3,328
  • 6
  • 55
  • 81
1
vote
1 answer

How can I convert a TypedObject to a nested dictionary in Python?

I am using pyAMF and I do receive a TypedObject that is in fact a nested dictionary. I want to convert this to a python dictionary.
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

data push using django

I'm interested in doing data-push from django to flex, can this be done using pyamf (tutorials or examples are highly appreciated)? I would like to do it in such a way that when something is changed in the database, the client are notified of that…
Darth Plagueis
  • 910
  • 3
  • 21
  • 39
1
2 3 4