google-code-export / django-syncr

Automatically exported from code.google.com/p/django-syncr
0 stars 0 forks source link

delicious model calling undefined variable for local_saved_date #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an instance of DeliciousSyncr from apps/
2. run instance.syncAll()
3. call new bookmark object's "local_saved_date()"

What is the expected output? What do you see instead?

expected output: 
datetime.datetime object

Generated result: 
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Library/Python/2.5/site-packages/syncr/delicious/models.py", line 33, in 
local_saved_date
    zone = pytz.timezone(settings.TIME_ZONE)
NameError: global name 'settings' is not defined

What version of the product are you using? On what operating system?
version = trunk 
OS = Mac OSX 10.5

Please provide any additional information below.
Adding the following import at the top should correct the issue:
- from django.conf import settings

Original issue reported on code.google.com by ner...@gmail.com on 6 Apr 2009 at 1:11

GoogleCodeExporter commented 9 years ago
I have fixed this problem in the repository version and credited you in the 
changelog. Thanks!

Original comment by jesse.l...@gmail.com on 15 Apr 2009 at 12:46