summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/__init__.py (renamed from expo/__init__.py)0
-rw-r--r--core/admin.py (renamed from expo/admin.py)6
-rw-r--r--core/context.py5
-rw-r--r--core/fileAbstraction.py (renamed from expo/fileAbstraction.py)0
-rw-r--r--core/forms.py (renamed from expo/forms.py)0
-rw-r--r--core/imagekit_specs.py (renamed from expo/imagekit_specs.py)0
-rw-r--r--core/models.py (renamed from expo/models.py)4
-rw-r--r--core/models_survex.py (renamed from expo/models_survex.py)0
-rw-r--r--core/randSent.py (renamed from expo/randSent.py)2
-rw-r--r--core/search.py (renamed from expo/search.py)0
-rw-r--r--core/templatetags/__init__.py (renamed from expo/templatetags/__init__.py)0
-rw-r--r--core/templatetags/link.py (renamed from expo/templatetags/link.py)0
-rw-r--r--core/templatetags/survex_markup.py (renamed from expo/templatetags/survex_markup.py)0
-rw-r--r--core/templatetags/wiki_markup.py (renamed from expo/templatetags/wiki_markup.py)2
-rw-r--r--core/view_surveys.py (renamed from expo/view_surveys.py)0
-rw-r--r--core/views.py (renamed from expo/views.py)0
-rw-r--r--core/views_caves.py (renamed from expo/views_caves.py)4
-rw-r--r--core/views_logbooks.py (renamed from expo/views_logbooks.py)4
-rw-r--r--core/views_other.py (renamed from expo/views_other.py)4
-rw-r--r--core/views_survex.py (renamed from expo/views_survex.py)0
-rw-r--r--expo/context.py5
-rw-r--r--export/tocavetab.py2
-rw-r--r--export/toqms.py2
-rw-r--r--parsers/QMs.py2
-rw-r--r--parsers/cavetab.py2
-rw-r--r--parsers/logbooks.py2
-rw-r--r--parsers/subcaves.py7
-rw-r--r--parsers/survex.py2
-rw-r--r--parsers/surveys.py4
-rw-r--r--profiles/views.py2
-rw-r--r--save_carefully.py2
-rw-r--r--settings.py6
-rw-r--r--urls.py8
33 files changed, 36 insertions, 41 deletions
diff --git a/expo/__init__.py b/core/__init__.py
index e69de29..e69de29 100644
--- a/expo/__init__.py
+++ b/core/__init__.py
diff --git a/expo/admin.py b/core/admin.py
index e88e1cd..e304966 100644
--- a/expo/admin.py
+++ b/core/admin.py
@@ -1,12 +1,12 @@
-from troggle.expo.models import *
+from troggle.core.models import *
from django.contrib import admin
from feincms.admin import editor
from django.forms import ModelForm
import django.forms as forms
-from expo.forms import LogbookEntryForm
+from core.forms import LogbookEntryForm
from django.http import HttpResponse
from django.core import serializers
-from expo.views_other import downloadLogbook
+from core.views_other import downloadLogbook
#from troggle.reversion.admin import VersionAdmin #django-reversion version control
#overriding admin save so we have the new since parsing field
diff --git a/core/context.py b/core/context.py
new file mode 100644
index 0000000..a77de49
--- /dev/null
+++ b/core/context.py
@@ -0,0 +1,5 @@
+from django.conf import settings
+from core.models import Expedition
+
+def troggle_context(request):
+ return { 'settings':settings, 'Expedition':Expedition } \ No newline at end of file
diff --git a/expo/fileAbstraction.py b/core/fileAbstraction.py
index 94b8b0c..94b8b0c 100644
--- a/expo/fileAbstraction.py
+++ b/core/fileAbstraction.py
diff --git a/expo/forms.py b/core/forms.py
index 929c4e9..929c4e9 100644
--- a/expo/forms.py
+++ b/core/forms.py
diff --git a/expo/imagekit_specs.py b/core/imagekit_specs.py
index fd2e0a1..fd2e0a1 100644
--- a/expo/imagekit_specs.py
+++ b/core/imagekit_specs.py
diff --git a/expo/models.py b/core/models.py
index c07b86d..8e00941 100644
--- a/expo/models.py
+++ b/core/models.py
@@ -591,7 +591,7 @@ class Photo(TroggleImageModel):
lat_utm = models.FloatField(blank=True,null=True)
class IKOptions:
- spec_module = 'expo.imagekit_specs'
+ spec_module = 'core.imagekit_specs'
cache_dir = 'thumbs'
image_field = 'file'
@@ -620,7 +620,7 @@ class ScannedImage(TroggleImageModel):
lat_utm = models.FloatField(blank=True,null=True)
class IKOptions:
- spec_module = 'expo.imagekit_specs'
+ spec_module = 'core.imagekit_specs'
cache_dir = 'thumbs'
image_field = 'file'
#content_type = models.ForeignKey(ContentType)
diff --git a/expo/models_survex.py b/core/models_survex.py
index cf339f9..cf339f9 100644
--- a/expo/models_survex.py
+++ b/core/models_survex.py
diff --git a/expo/randSent.py b/core/randSent.py
index a99b974..efcc005 100644
--- a/expo/randSent.py
+++ b/core/randSent.py
@@ -1,6 +1,6 @@
import troggle.settings as settings
from django import forms
-from troggle.expo.models import LogbookEntry
+from troggle.core.models import LogbookEntry
import random
import re
diff --git a/expo/search.py b/core/search.py
index 5ec2ce2..5ec2ce2 100644
--- a/expo/search.py
+++ b/core/search.py
diff --git a/expo/templatetags/__init__.py b/core/templatetags/__init__.py
index e69de29..e69de29 100644
--- a/expo/templatetags/__init__.py
+++ b/core/templatetags/__init__.py
diff --git a/expo/templatetags/link.py b/core/templatetags/link.py
index 5308ace..5308ace 100644
--- a/expo/templatetags/link.py
+++ b/core/templatetags/link.py
diff --git a/expo/templatetags/survex_markup.py b/core/templatetags/survex_markup.py
index 464a04b..464a04b 100644
--- a/expo/templatetags/survex_markup.py
+++ b/core/templatetags/survex_markup.py
diff --git a/expo/templatetags/wiki_markup.py b/core/templatetags/wiki_markup.py
index 4bcd07d..07e6468 100644
--- a/expo/templatetags/wiki_markup.py
+++ b/core/templatetags/wiki_markup.py
@@ -3,7 +3,7 @@ from django.utils.html import conditional_escape
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe
from django.conf import settings
-from expo.models import QM, Photo
+from core.models import QM, Photo
import re, urlparse
register = template.Library()
diff --git a/expo/view_surveys.py b/core/view_surveys.py
index 846b245..846b245 100644
--- a/expo/view_surveys.py
+++ b/core/view_surveys.py
diff --git a/expo/views.py b/core/views.py
index 337989a..337989a 100644
--- a/expo/views.py
+++ b/core/views.py
diff --git a/expo/views_caves.py b/core/views_caves.py
index d633c36..f4327f3 100644
--- a/expo/views_caves.py
+++ b/core/views_caves.py
@@ -1,5 +1,5 @@
-from troggle.expo.models import Cave, CaveAndEntrance, Survey, Expedition, QM
-import troggle.expo.models as models
+from troggle.core.models import Cave, CaveAndEntrance, Survey, Expedition, QM
+import troggle.core.models as models
import troggle.settings as settings
from django.forms.models import formset_factory
import search
diff --git a/expo/views_logbooks.py b/core/views_logbooks.py
index afcdafc..5fa550c 100644
--- a/expo/views_logbooks.py
+++ b/core/views_logbooks.py
@@ -1,10 +1,10 @@
from django.shortcuts import render_to_response
-from troggle.expo.models import Expedition, Person, PersonExpedition, PersonTrip, LogbookEntry
+from troggle.core.models import Expedition, Person, PersonExpedition, PersonTrip, LogbookEntry
import troggle.settings as settings
from django.db import models
from troggle.parsers.logbooks import LoadLogbookForExpedition
from troggle.parsers.people import GetPersonExpeditionNameLookup
-from troggle.expo.forms import PersonForm
+from troggle.core.forms import PersonForm
from django.core.urlresolvers import reverse
from django.http import HttpResponseRedirect
diff --git a/expo/views_other.py b/core/views_other.py
index 790c779..b3da852 100644
--- a/expo/views_other.py
+++ b/core/views_other.py
@@ -1,4 +1,4 @@
-from troggle.expo.models import Cave, Expedition, Person, LogbookEntry, PersonExpedition, PersonTrip, Photo
+from troggle.core.models import Cave, Expedition, Person, LogbookEntry, PersonExpedition, PersonTrip, Photo
import troggle.settings as settings
from django import forms
from django.template import loader, Context
@@ -9,7 +9,7 @@ import randSent
from django.http import HttpResponse, HttpResponseRedirect
from django.core.urlresolvers import reverse
from troggle.alwaysUseRequestContext import render_response # see views_logbooks for explanation on this.
-from expo.models import *
+from core.models import *
def showrequest(request):
return HttpResponse(request.GET)
diff --git a/expo/views_survex.py b/core/views_survex.py
index 554ad4f..554ad4f 100644
--- a/expo/views_survex.py
+++ b/core/views_survex.py
diff --git a/expo/context.py b/expo/context.py
deleted file mode 100644
index bb38a84..0000000
--- a/expo/context.py
+++ /dev/null
@@ -1,5 +0,0 @@
-from django.conf import settings
-from expo.models import Expedition
-
-def troggle_context(request):
- return { 'settings':settings, 'Expedition':Expedition } \ No newline at end of file
diff --git a/export/tocavetab.py b/export/tocavetab.py
index 2ffc5be..bf0170d 100644
--- a/export/tocavetab.py
+++ b/export/tocavetab.py
@@ -1,4 +1,4 @@
-import troggle.expo.models as models
+import troggle.core.models as models
from django.conf import settings
import csv, re, os
diff --git a/export/toqms.py b/export/toqms.py
index dd58fca..a6a264a 100644
--- a/export/toqms.py
+++ b/export/toqms.py
@@ -1,4 +1,4 @@
-import troggle.expo.models as models
+import troggle.core.models as models
from django.conf import settings
import csv
diff --git a/parsers/QMs.py b/parsers/QMs.py
index ef38c3f..b259bf1 100644
--- a/parsers/QMs.py
+++ b/parsers/QMs.py
@@ -2,7 +2,7 @@
import csv
from django.conf import settings
-from expo.models import QM, LogbookEntry, Cave
+from core.models import QM, LogbookEntry, Cave
from datetime import *
from troggle.save_carefully import save_carefully
import re, os
diff --git a/parsers/cavetab.py b/parsers/cavetab.py
index d0fb052..1a73f9e 100644
--- a/parsers/cavetab.py
+++ b/parsers/cavetab.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-import troggle.expo.models as models
+import troggle.core.models as models
from django.conf import settings
import csv, time, re, os, logging
from troggle.save_carefully import save_carefully
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index ebfd54e..70805ca 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -1,7 +1,7 @@
#.-*- coding: utf-8 -*-
from django.conf import settings
-import expo.models as models
+import core.models as models
from parsers.people import GetPersonExpeditionNameLookup
from parsers.cavetab import GetCaveLookup
diff --git a/parsers/subcaves.py b/parsers/subcaves.py
index 024a229..b8ee4d2 100644
--- a/parsers/subcaves.py
+++ b/parsers/subcaves.py
@@ -4,14 +4,9 @@ This module is the part of troggle that parses descriptions of cave parts (subca
import sys, os
-sys.path.append('C:\\troggle')
-sys.path.append('C:\\')
-os.environ['DJANGO_SETTINGS_MODULE']='troggle.settings'
-import troggle.expo as expo
-
import os, re, logging
from django.conf import settings
-from expo.models import Subcave, Cave
+from core.models import Subcave, Cave
from troggle.save_carefully import save_carefully
def getLinksInCaveDescription(cave):
diff --git a/parsers/survex.py b/parsers/survex.py
index 93f708e..2360300 100644
--- a/parsers/survex.py
+++ b/parsers/survex.py
@@ -1,5 +1,5 @@
import troggle.settings as settings
-import troggle.expo.models as models
+import troggle.core.models as models
from troggle.parsers.people import GetPersonExpeditionNameLookup
diff --git a/parsers/surveys.py b/parsers/surveys.py
index da94fe6..0a15d25 100644
--- a/parsers/surveys.py
+++ b/parsers/surveys.py
@@ -3,10 +3,10 @@ import sys, os, types, logging
#from troggle import *
#os.environ['DJANGO_SETTINGS_MODULE']='troggle.settings'
import troggle.settings as settings
-from troggle.expo.models import *
+from troggle.core.models import *
from PIL import Image
#import settings
-#import expo.models as models
+#import core.models as models
import csv
import re
import datetime
diff --git a/profiles/views.py b/profiles/views.py
index b3e3672..aca2a6a 100644
--- a/profiles/views.py
+++ b/profiles/views.py
@@ -14,7 +14,7 @@ from django.template import RequestContext
from django.views.generic.list_detail import object_list
from django import forms
-from expo.models import Person
+from core.models import Person
from troggle.alwaysUseRequestContext import render_response
diff --git a/save_carefully.py b/save_carefully.py
index ee7c0cc..bacd91d 100644
--- a/save_carefully.py
+++ b/save_carefully.py
@@ -7,7 +7,7 @@ def save_carefully(objectType, lookupAttribs={}, nonLookupAttribs={}):
-if instance exists in DB and was not modified using Troggle: overwrite instance, return (instance, False)
The checking is accomplished using Django's get_or_create and the new_since_parsing boolean field
- defined in expo.models.TroggleModel.
+ defined in core.models.TroggleModel.
"""
diff --git a/settings.py b/settings.py
index 45d1867..e4c3407 100644
--- a/settings.py
+++ b/settings.py
@@ -54,7 +54,7 @@ TEMPLATE_LOADERS = (
# 'django.template.loaders.eggs.load_template_source',
)
-TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "expo.context.troggle_context", )
+TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.auth", "core.context.troggle_context", )
LOGIN_REDIRECT_URL = '/'
@@ -70,7 +70,7 @@ ROOT_URLCONF = 'troggle.urls'
ACCOUNT_ACTIVATION_DAYS=3
-AUTH_PROFILE_MODULE = 'expo.person'
+AUTH_PROFILE_MODULE = 'core.person'
INSTALLED_APPS = (
'django.contrib.admin',
@@ -84,7 +84,7 @@ INSTALLED_APPS = (
#'django_evolution',
'troggle.registration',
'troggle.profiles',
- 'troggle.expo',
+ 'troggle.core',
'troggle.imagekit',
'mptt', #This is django-mptt (modifed preorder tree traversal) which allows the tree structure of subcaves.
'feincms' #This is a little content management app that does the javascript admin page for mptt.
diff --git a/urls.py b/urls.py
index 5f0822a..a3686ae 100644
--- a/urls.py
+++ b/urls.py
@@ -1,10 +1,10 @@
from django.conf.urls.defaults import *
import troggle.settings as settings
-from expo.views import * # flat import
-from expo.views_caves import *
-from expo.views_survex import *
-from expo.models import *
+from core.views import * # flat import
+from core.views_caves import *
+from core.views_survex import *
+from core.models import *
from django.views.generic.create_update import create_object
from django.contrib import admin
from django.views.generic.list_detail import object_list