diff options
author | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-23 16:51:21 +0100 |
---|---|---|
committer | substantialnoninfringinguser <substantialnoninfringinguser@gmail.com> | 2009-05-23 16:51:21 +0100 |
commit | 97e423ba86a5be31ff4ef951a1c92293b6029882 (patch) | |
tree | 31caf29613f2e397097c606309fcdcc5f15fba92 /parsers/logbooks.py | |
parent | 3033f1eecd297c1602659cefde516f987e6e82fb (diff) | |
download | troggle-97e423ba86a5be31ff4ef951a1c92293b6029882.tar.gz troggle-97e423ba86a5be31ff4ef951a1c92293b6029882.tar.bz2 troggle-97e423ba86a5be31ff4ef951a1c92293b6029882.zip |
[svn] fix imports
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r-- | parsers/logbooks.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 3ea36bd..6017f15 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -1,10 +1,10 @@ #.-*- coding: utf-8 -*-
-import troggle.settings as settings
-import troggle.expo.models as models
+from django.conf import settings
+import expo.models as models
-from troggle.parsers.people import GetPersonExpeditionNameLookup
-from troggle.parsers.cavetab import GetCaveLookup
+from parsers.people import GetPersonExpeditionNameLookup
+from parsers.cavetab import GetCaveLookup
from django.template.defaultfilters import slugify
@@ -82,8 +82,8 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ cave=GetCaveLookup().get(lplace)
#Check for an existing copy of the current entry, and save
- lookupAttribs={'date':date, 'title':title[:50]}
- nonLookupAttribs={'place':place, 'text':text, 'author':author, 'expedition':expedition, 'cave':cave}
+ lookupAttribs={'date':date, 'title':title}
+ nonLookupAttribs={'place':place, 'text':text, 'author':author, 'expedition':expedition, 'cave':cave, 'slug':slugify(title)[:50]}
lbo, created=save_carefully(models.LogbookEntry, lookupAttribs, nonLookupAttribs)
for tripperson, time_underground in trippersons:
|