On Mon, Jan 25, 2010 at 6:16 AM, harryos <[email protected]> wrote:

> On Jan 24, 10:45 pm, Daniel Roseman <[email protected]> wrote:
> > You put them in your project's settings.py (which, through some magic,
> > is imported via django.conf). You should not be editing any of the
> > code inside Django itself, unless you know what you're doing.
>
>
> Thanks for the reply..I added the login data to my project settings
> and tried to post a link to delicious site using my yahoo id as
> below.I can manually login at yahoo page using the same login
> data .But when I try to do the following I get an
> raise PyDeliciousUnauthorized, "Check credentials." error
>
>  >>> from pydelicious import DeliciousAPI; from getpass import getpass
>  >>> pwd = getpass('Pwd:')
>  Pwd:        #i entered my password here
>  >>> a = DeliciousAPI('myusername', pwd)
>  >>> a.posts_add("http://my.com/";, "title", tags="my tags")
>
> can anyone help me find out why this is happening?
>
>
A guess - whatever format getpass() is returning isn't the format/encoding
that the DeliciousAPI call is needing.  Commonly that's because one is
dealing with the password in plaintext, and the other in some hashed format.

As I say - a guess.  I've never looked at either, but that's where I'd
start.  Oh and step into the DeliciousAPI code to see what's happening/where
the error is occurring.

Malcolm

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to