Multiple classes in tasks.py?

2010-11-04 Thread wawa wawawa
Hi All, I'm sure this is a very stupid question. But, here we go. I am using celery / rabbitmq. It's all working great. Until I try to move more of my code into my asynchronous tasks to be handled by celery. I think my problem is because my classes are subclasses of Task... It's confusing me (no

Re: rabbitmq + celery + django + celery.views.task_status ... simple example?

2010-11-03 Thread wawa wawawa
Tom - many thanks again. This is good stuff. W On 3 November 2010 11:36, Tom Evans wrote: > On Wed, Nov 3, 2010 at 10:16 AM, wawa wawawa wrote: >> You Sir, are awesome. >> >> I think this seems to be exactly what I was looking for... >> >> Can I ask for JS co

Re: rabbitmq + celery + django + celery.views.task_status ... simple example?

2010-11-03 Thread wawa wawawa
t 5:12 PM, wawa wawawa wrote: >> Hi All, >> >> So, I've got my django app, rabbitmq and celery working and processing >> my uploaded files. Next step is to get the client to display status >> results provided by JSON, ultimately refreshing to a results page when

Re: rabbitmq + celery + django + celery.views.task_status ... simple example?

2010-11-03 Thread wawa wawawa
Hi, I'm using a message queue because the task is really "offline" and could take 1sec or 30 seconds (or longer). I'll look at b-list. Thankyou W On 3 November 2010 07:09, Prashanth wrote: > > > On Tue, Nov 2, 2010 at 10:42 PM, wawa wawawa wrote: >> >

rabbitmq + celery + django + celery.views.task_status ... simple example?

2010-11-02 Thread wawa wawawa
Hi All, So, I've got my django app, rabbitmq and celery working and processing my uploaded files. Next step is to get the client to display status results provided by JSON, ultimately refreshing to a results page when complete. I'm a little new to JSON / AJAX (AJAJ!) and I'm struggling a little w

Re: Is it madness to process uploaded tars and zips completely in memory?

2010-11-02 Thread wawa wawawa
On 2 November 2010 14:03, Cal Leeming [Simplicity Media Ltd] wrote: > All depends on whether; > > you have enough memory > you are going to enforce the file size > you have appropriate resource limitations in place on the server > you are going to enforce the maximum number of processing requests

Is it madness to process uploaded tars and zips completely in memory?

2010-11-02 Thread wawa wawawa
Hi, I am writing an app to "apply some rainbows and unicorns" to a bunch of uploaded XML files (which can be uploaded as a compressed tar or zip file). Celery and rabbitmq will be used for the asynchronous tasks with jQuery (maybe with dajaxproject) to get updates on progress to the browser. I'm

Re: using python-magic on request.FILES['datafile']

2010-10-29 Thread wawa wawawa
2010 18:15, wawa wawawa wrote: > Hi All, > I'm trying to allow some flexibility for my end users. I want to > support the uploading of multiple file archive types (tar.gz, > tar.bzip2, zip, rar etc). > I want to use python-magic to guess the filetype from the files magic > nu

using python-magic on request.FILES['datafile']

2010-10-29 Thread wawa wawawa
Hi All, I'm trying to allow some flexibility for my end users. I want to support the uploading of multiple file archive types (tar.gz, tar.bzip2, zip, rar etc). I want to use python-magic to guess the filetype from the files magic number and then use the appropriate decompression modules to get at

Re: problems using apps in main project (NameErrors)

2010-10-27 Thread wawa wawawa
7;apps')) NameError: name 'site' is not defined Apologies if I'm being very stupid! Thanks W > zalun > > On 10/27/10 14:50, wawa wawawa wrote: >> Hi All, >> >> I've spent the last hour or so looking for a clear and simple >> explanation to

problems using apps in main project (NameErrors)

2010-10-27 Thread wawa wawawa
Hi All, I've spent the last hour or so looking for a clear and simple explanation to this but I've been unsuccessful. Maybe someone here could help me (please!) What do I need to do to make sure my created apps are useable? This is the structure of my "XMLmunger" project. In order to simplify m

Re: Newbie question: How should I structure my very simple project / app?

2010-10-20 Thread wawa wawawa
Just a quick response to thank everyone for the suggestions. I'll let you all know how I get on. ;-) (Actually, you'll probably guess from the quality or absurdity of my questions that may come up over the coming days / weeks) WZ On 20 October 2010 00:01, timc3 wrote: > Take a look at: > > h

Re: Newbie question: How should I structure my very simple project / app?

2010-10-19 Thread wawa wawawa
Hi Javier, Many thanks for your comments. On 19 October 2010 15:57, Javier Guerra Giraldez wrote: > first and foremost, yes, you have to read the manual, and do the > tutorial. ideally, you should forget about your specific project > while doing it. it's not too long, should take a few hours

Newbie question: How should I structure my very simple project / app?

2010-10-19 Thread wawa wawawa
Hi All, I'm new to Django (and to be honest, a little bit hazy on the subtleties of MVC, but if you don't try, you don't learn). I want to create a simple web frontend for a Python program I have already (mostly) written and I'd like to use Django (which may be overkill... not sure). - Users hav