Moved src/web to src/webapp

svn: r18329
This commit is contained in:
Doug Blank 2011-10-15 20:30:34 +00:00
parent 3773107669
commit d2eac17b4f
9 changed files with 21 additions and 21 deletions

View File

@ -178,7 +178,7 @@ RULE_GLADE = os.path.join(GLADE_DIR, "rule.glade")
PLUGINS_DIR = os.path.join(ROOT_DIR, "plugins") PLUGINS_DIR = os.path.join(ROOT_DIR, "plugins")
DATA_DIR = os.path.join(ROOT_DIR, "data") DATA_DIR = os.path.join(ROOT_DIR, "data")
WEB_DIR = os.path.join(ROOT_DIR, 'web') WEB_DIR = os.path.join(ROOT_DIR, 'webapp')
#SYSTEM_FILTERS = os.path.join(DATA_DIR, "system_filters.xml") #SYSTEM_FILTERS = os.path.join(DATA_DIR, "system_filters.xml")
TIP_DATA = os.path.join(DATA_DIR, "tips.xml") TIP_DATA = os.path.join(DATA_DIR, "tips.xml")
WEBSTUFF_DIR = os.path.join(PLUGINS_DIR, "webstuff") WEBSTUFF_DIR = os.path.join(PLUGINS_DIR, "webstuff")

View File

@ -1,4 +1,4 @@
from web.grampsdb.models import * from webapp.grampsdb.models import *
from django.contrib import admin from django.contrib import admin
for type_name in get_tables("all"): for type_name in get_tables("all"):

View File

@ -1,7 +1,7 @@
# forms.py forms for Django web project # forms.py forms for Django web project
from django import forms from django import forms
from web.grampsdb.models import * from webapp.grampsdb.models import *
from django.forms.models import inlineformset_factory from django.forms.models import inlineformset_factory
from django.forms.models import BaseModelFormSet from django.forms.models import BaseModelFormSet
from django.forms.widgets import TextInput from django.forms.widgets import TextInput

View File

@ -36,7 +36,7 @@ from django.contrib.contenttypes import generic
from gen.lib.date import Date as GDate, Today from gen.lib.date import Date as GDate, Today
from Utils import create_id, create_uid from Utils import create_id, create_uid
from web.grampsdb.profile import Profile from webapp.grampsdb.profile import Profile
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# #

View File

@ -41,10 +41,10 @@ from django.db.models import Q
# Gramps Modules # Gramps Modules
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import web import webapp
from web.grampsdb.models import * from webapp.grampsdb.models import *
from web.grampsdb.forms import * from webapp.grampsdb.forms import *
from web.dbdjango import DbDjango from webapp.dbdjango import DbDjango
import gen.proxy import gen.proxy
from Utils import create_id from Utils import create_id
@ -248,8 +248,8 @@ def send_file(request, filename, mimetype):
return response return response
def process_action(request, view, handle, action): def process_action(request, view, handle, action):
from web.reports import import_file from webapp.reports import import_file
from web.reports import export_file from webapp.reports import export_file
from cli.plug import run_report from cli.plug import run_report
db = DbDjango() db = DbDjango()
if view == "report": if view == "report":

View File

@ -9,7 +9,7 @@ import os
# ------------------------------ # ------------------------------
# from cli.plug import run_report # from cli.plug import run_report
# from django.conf import settings # from django.conf import settings
# import web.settings as default_settings # import webapp.settings as default_settings
# try: # try:
# settings.configure(default_settings) # settings.configure(default_settings)
# except: # except:

View File

@ -71,7 +71,7 @@ MIDDLEWARE_CLASSES = (
# 'debug_toolbar.middleware.DebugToolbarMiddleware', # 'debug_toolbar.middleware.DebugToolbarMiddleware',
) )
ROOT_URLCONF = 'web.urls' ROOT_URLCONF = 'webapp.urls'
TEMPLATE_DIRS = ( TEMPLATE_DIRS = (
# Use absolute paths, not relative paths. # Use absolute paths, not relative paths.
@ -83,7 +83,7 @@ TEMPLATE_CONTEXT_PROCESSORS = (
# "django.core.context_processors.debug", # "django.core.context_processors.debug",
"django.core.context_processors.i18n", "django.core.context_processors.i18n",
"django.core.context_processors.media", "django.core.context_processors.media",
"web.grampsdb.views.context_processor", "webapp.grampsdb.views.context_processor",
) )
INSTALLED_APPS = ( INSTALLED_APPS = (
@ -92,7 +92,7 @@ INSTALLED_APPS = (
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.sites', 'django.contrib.sites',
'django.contrib.admin', 'django.contrib.admin',
'web.grampsdb', 'webapp.grampsdb',
# 'django_extensions', # 'django_extensions',
# 'debug_toolbar', # 'debug_toolbar',
) )

View File

@ -38,7 +38,7 @@ from django.conf.urls.defaults import *
from django.contrib import admin from django.contrib import admin
admin.autodiscover() admin.autodiscover()
from web.grampsdb.views import (main_page, user_page, logout_page, from webapp.grampsdb.views import (main_page, user_page, logout_page,
process_action, view, view_detail, process_action, view, view_detail,
view_name_detail) view_name_detail)

View File

@ -43,10 +43,10 @@ from django.contrib.contenttypes.models import ContentType
# Gramps-Connect Modules # Gramps-Connect Modules
# #
#------------------------------------------------------------------------ #------------------------------------------------------------------------
import web.grampsdb.models as models import webapp.grampsdb.models as models
import web.grampsdb.forms as forms import webapp.grampsdb.forms as forms
from web import libdjango from webapp import libdjango
from web.dbdjango import DbDjango from webapp.dbdjango import DbDjango
#------------------------------------------------------------------------ #------------------------------------------------------------------------
# #