Hi!

Since yesterday I have been trying to figure out this error:
('status', 'body', 'reason')

The error_code is 1000.  I have search it a lot, but what seems to
work for some does not work for me.

Here is an interactive session in Python 2.5.1:

===========
>>> import gdata.apps.service
>>> import sys
>>> import getpass
>>> psw='nonaciel0821'
>>> service = gdata.apps.service.AppsService(email='[EMAIL PROTECTED]', 
>>> domain='cayey.upr.edu',password=psw)
>>> service.ProgrammaticLogin()
>>> service.RetrievePageOfUsers('edwood.ocasio')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/gdata/apps/service.py", line
370, in RetrievePageOfUsers
    raise AppsForYourDomainException(e.args[0])
gdata.apps.service.AppsForYourDomainException: ('status', 'body',
'reason')
>>> service.RetrieveUser('edwood.ocasio')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/gdata/apps/service.py", line
359, in RetrieveUser
    raise AppsForYourDomainException(e.args[0])
gdata.apps.service.AppsForYourDomainException: ('status', 'body',
'reason')
>>> service.RetrieveUser('edwood.nonexistant')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/gdata/apps/service.py", line
359, in RetrieveUser
    raise AppsForYourDomainException(e.args[0])
gdata.apps.service.AppsForYourDomainException: ('status', 'body',
'reason')
===========

I tried to run the script 'user_retrieve.py' in the groups's File
section, with the same result.

I am using Python 2.5.1 and gdata.py-1.1.1.tar.gz  from this page
http://code.google.com/p/gdata-python-client/downloads/list

All included tests in "src/tests" ran fine.

Here is the script I am working on:

============

import gdata.apps.service
import getpass
import sys

psw=getpass.getpass("GAE admin password: ")
service =
gdata.apps.service.AppsService(email='[EMAIL PROTECTED]',
domain='cayey.upr.edu',password=psw)

user_name = "edwood.ocasio2"
family_name = "Ocasio"
given_name = "Edwood"
password = "secret"

try:
        service.ProgrammaticLogin()
except (gdata.apps.service.AppsForYourDomainException) , e:
        print "Problema con autenticacion: "
        print e
        sys.exit(2)

print "Autenticacion ... OK"

print "Tratando de obtener lista de usuarios ..."

try:
        user = service.CreateUser(user_name, family_name, given_name,
password)
except (gdata.apps.service.AppsForYourDomainException) , e:
        print "Problema tratando de generar lista de usuarios: "
        print e.error_code, e
        sys.exit(2)

print user

============

Thanks for any help you can give.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Apps APIs" 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/google-apps-apis?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to