RE: Django_xmlrpc

2007-06-11 Thread John Goodleaf

Nevermind. I got it. I missed that _all_ requests should be forwarded to
handle_xmlrpc. I was expecting the registered ones functions to behave
"normally." Well it was actually your email that tipped me off, but
let's chalk it up as an object lesson on reading code. (For anyone
unfamiliar, the code states clearly that requests should go
handle_xmlrpc. My bad.) I  coulda solved it with a little more reading.
And coffee.

Thanks Graham. I look forward to using this xmlrpc interface since it
hits the sweet spot for my present needs. Simpler than SOAP, less
cutting edge than REST. 

J
 

-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Graham Binns
Sent: Monday, June 11, 2007 12:24 PM
To: Django users
Subject: Re: Django_xmlrpc


Hi John,

I have it up and running using the introspection-dev branch, but then I
wrote it. Or adapted it. Or at least made it into a django app...
Something like that anyway. Anyroadup I'm responsible for it, so if
you've got a problem it's my job to help you solve it :)

I'm sorry that you're having trouble and, for the sake of getting it
said, the documentation that exists sucks and that which doesn't suck
doesn't exist, something that I'm working to fix at present.

Can you give me some more details about your setup? Ideally, I'd need to
see the XMLRPC_METHODS section of settings.py and the entry in your
urlconf (urls.py) that points to handle_xmlrpc.

Cheers,

Graham

John Goodleaf wrote:

> Does anyone have django_xmlrpc running successfully? I have been 
> trying to get the introspection-dev branch running but am running into

> some problems. I feel sure it's my fault. I'm not sure how to wire up 
> django_xmlrpc with settings and urls.py. I can get the system to run 
> and, apparently, register a function, but I've been trying to rest it 
> with xmlrpclib and can't get a response that isn't either a 404 or
500.
> Anyone have an example they can share, including the settings and
urls?
> Thanks,
> J




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Django_xmlrpc

2007-06-11 Thread John Goodleaf

Does anyone have django_xmlrpc running successfully? I have been trying
to get the introspection-dev branch running but am running into some
problems. I feel sure it's my fault. I'm not sure how to wire up
django_xmlrpc with settings and urls.py. I can get the system to run
and, apparently, register a function, but I've been trying to rest it
with xmlrpclib and can't get a response that isn't either a 404 or 500.
Anyone have an example they can share, including the settings and urls?
Thanks,
J

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Get_FIELD_url issues

2007-05-31 Thread John Goodleaf

Awright. I just know I'm missing something stupid here. 

I have a model for file attachments that are uploaded. In one of my
templates, I'd like to display a URL whence the attachment could be
recalled. So I've put in {{ a.get_bugfile_url }} in the template, but
the output HTML looks like Title. I can't retrieve the
URL. However, if I test this in the shell, calling a.get_bugfile_url(),
I get exactly the URL I'm expecting. Interestingly, get_bugfile_filename
also doesn't work in the template, but does in the shell.

Anyone tell me what stupid thing I'm missing? I'm using the most current
SVN version of django (trunk).
Thanks,
J

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



RE: Django IDE

2007-04-05 Thread John Goodleaf

Wing IDE.

I'll second that recommendation. I have both Komodo 4 and Wing at work.
I use Wing pretty much exclusively. From a purely aesthetic standpoint,
Komodo 4 is somewhat "cleaner" looking, but otherwise I think Wing is
stronger. In addition to mentioned debugger, Wing does a very nice job
with autocompletion and project management. Good integration with SVN.
Key bindings can be made to mimic Emacs (or vi or Visual Studio).
Moreover, the support is excellent and the Wing developers are present
and responsive on the company's mailing list.
J

(Not affiliated with WingWare!)

-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of BrandonC
Sent: Thursday, April 05, 2007 8:43 AM
To: Django users
Subject: Re: Django IDE


As a comparison I have to say that Wing IDE has a very nice Python
debugger (fast and it works).  I haven't used Komodo in a while but I
remember my biggest issue with it was that its debugger stopped at
exceptions that truely were handled, and that it was slow.

For django I set my manage.py file as the main debug file, and then add
--noreload --settings=devsettings (my settings for running a test
server) in the debug run arguments and I can run the dev. server locally
to debug.

There may be better editors I don't know, but I find that I'm always
comparing them to what I can do in Wing.

Brandon




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



filter by related data

2006-08-15 Thread John Goodleaf
Title: Message



Django newb. I 
haven't yet read everything (I admit it) but I'm hoping someone can help me out 
with a quick answer.
 
Assuming the 
following model:
 
class 
Patient(models.Model):    study_id = 
models.CharField(maxlength=10)    usubjid = 
models.CharField(maxlength=8, unique=True, primary_key=True, 
db_column='usubjid')    sex = 
models.CharField(maxlength=1,blank=True,null=True)    
birth_date = models.DateField(null=True)    screenfail = 
models.BooleanField(null=True)        def 
__repr__(self):    return "%s:%s" 
%(self.study_id, self.usubjid)
 
class 
Comment(models.Model):    usubjid = 
models.ForeignKey(Patient, db_column='usubjid')    
comment_seq = models.SmallIntegerField()    form_number = 
models.SmallIntegerField(null=True)    visit_id = 
models.SmallIntegerField(null=True)    violation = 
models.BooleanField()    text = 
models.TextField(null=True)    review_status = 
models.SmallIntegerField(null=True)
 
I'm looking for 
django/python syntax to retrieve all the comments that belong to a particular 
study_id (which is an attribute of Patient). In SQL, this'd 
be:
 
SELECT 
FROM Patient JOIN Comment on Patient.usubjid = 
Comment.usubjid
WHERE Patient.study_id = 'CP-AI-005'
 
I'm just not sure 
what django call would yield that. I've tried a few variations on filter() but 
haven't hit the right solution and have failed, so far, to actually go and read 
the source code. (Like everyone else, I'm in a hurry.)
 
Thanks for your 
time.
J
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django users" group.  To post to this group, send email to django-users@googlegroups.com  To unsubscribe from this group, send email to [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/django-users  -~--~~~~--~~--~--~---




RE: filter by related data

2006-08-15 Thread John Goodleaf

Thanks. I had just figured it out this very minute and was about to call
a 'nevermind.'

I had, I suppose out of habit, tried
c=Comments.objects.filter(usubjid.study_id__exact='CP-AI-005') Missed
the initial set of double underscores.

D'oh.

Thanks though. I appreciate your time.
J

-Original Message-
From: django-users@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Shaffer
Sent: Tuesday, August 15, 2006 2:40 PM
To: Django users
Subject: Re: filter by related data



comments = Comment.objects.filter(usubjid__study_id__exact='CP-AI-005')

By using the usubjid__study_id syntax it lets django know that you want
to filter by study_id field in the usubjid (Patient) model.






--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~--~~~~--~~--~--~---