From 9006016bfd0485a6aae5c1a7eca781b90baf3a70 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Sat, 23 May 2009 16:51:21 +0100 Subject: [PATCH] [svn] fix imports --- parsers/logbooks.py | 12 ++++++------ 1 file 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: