need help: Is there is a way to get someone's calendar from mail exchange server with python

2010-07-15 Thread aimeixu

Hi guys,
I really need help to figure out a way to get someone's calendar from 
mail exchange server with python. I have no idea about how to make it 
.Or could some nice guys give me some hint?Thank a lot .

--
http://mail.python.org/mailman/listinfo/python-list


an error about DJANGO_SETTINGS_MODULE

2010-07-22 Thread aimeixu

Hi,
I use python Django framework to make a bookmark website, when I 
clicked  login button on  the user login page .and I  import "from 
django.contrib.auth.models import User" in the console,It will occur the 
following error:

>>> from django.contrib.auth.models import User
Traceback (most recent call last):
 File "", line 1, in ?
 File "/usr/lib/python2.4/site-packages/django/contrib/auth/models.py", 
line 6, in ?

   from django.db import models
 File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 
14, in ?

   if not settings.DATABASES:
 File "/usr/lib/python2.4/site-packages/django/utils/functional.py", 
line 276, in __getattr__

   self._setup()
 File "/usr/lib/python2.4/site-packages/django/conf/__init__.py", line 
38, in _setup
   raise ImportError("Settings cannot be imported, because environment 
variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable 
DJANGO_SETTINGS_MODULE is undefined.
'cause I am a newbie to python .Please help me find out where the error 
is and how to solve this problem. Thanks a lot.

Best Wishes,
--
http://mail.python.org/mailman/listinfo/python-list


how to change a string into dictionary

2010-08-09 Thread aimeixu

Hi,
I am newbie for python ,Here is my question:
a = "{'a':'1','b':'2'}"
how to change a into a dictionary ,says, a = {'a':'1','b':'2'}
Thanks a lot .Really need help.
--
http://mail.python.org/mailman/listinfo/python-list