Permalink
Browse files

Project Meta info for 2.0

git-svn-id: http://svn.code.sf.net/p/formunculous/code/trunk@6 73555b9c-cbee-463b-918c-5b0eed200513
  • Loading branch information...
carsongee committed Jan 29, 2010
1 parent 913b9e7 commit 916e8e2a3f5ac1b737236efe756edd432b5a2ad2
Showing with 114 additions and 10 deletions.
  1. +34 −0 CHANGES
  2. +15 −0 README
  3. +0 −2 TODO
  4. +19 −5 harness/settings.py
  5. +5 −3 harness/urls.py
  6. +41 −0 upgrade/update_db_schema_1.x_to_2.0.sql
View
34 CHANGES
@@ -0,0 +1,34 @@
Second major version:
New features:
* Builder now integrated with Django admin interface
* Forms can now be designated by django Site
* Subforms now exist and enable many to one forms
* There are new fields available including:
. US Phone Number
. US Zip code
. US State
* You can now have authenticated forms that can be filled out multiple times
* You can choose to display drop down form elements with radio buttons
* You can now have multi select drop down elements displayed either as
checkboxes or via a select widget
* All templates used for forms are customizable (i.e. confirmation, thankyou,
completion) by creating a template directory with the same name as the form
definition's slug (i.e. contact-us/thankyou.html)
* Fields are marked as dropdown safe to prevent having a file field with
dropdown selections, as this doesn't make sense.
* Completed forms are now searchable via the reviewing index
* Completed forms now have pagination, the number displayed is configurable
* CKEditor/WYSIWYG available on all HTML capable fields via a button
Bug fixes:
* Massive style cleanup and prettifying, more compatible with IE
* Fixed a sorting issue with submission date.
* Boolean fields now default to False, previously they defaulted to Null/None
Future release plans:
* Add bulk copying/per item copying of form elements in the building interface
* Show user previous submissions for multiple authenticated forms
View
15 README
@@ -34,4 +34,19 @@ If you intend on using the email notifications you will need to define
the SERVER_EMAIL and EMAIL_HOST constants in your settings file. See the
django settings documentation for more details/options.
There are also required media files for formunculous, so you will need to
copy symlink in the $PYTHON_PATH/formunculous/media/formunculous directory
into your MEDIA_ROOT directory for the CSS/JS/Images used by formunculous
** Upgrading **
If you are upgrading from a previous of version of formunculous there are
likely to be DB Schema changes for added functionality. After upgrading
always run "python manage.py syncdb" and then check the upgrade directory
for sql files for upgrading the schema. So if you went from 1.0 to 1.2
for example you will want to apply any and all .sql files that are designated
between those versions to your database.
Of course if you have been using something like Django Evolution, this isn't
an issue, and running "manage.py syncdb" should be adequate.
View
2 TODO

This file was deleted.

Oops, something went wrong.
View
@@ -1,12 +1,18 @@
import os
import sys
# Django settings for application project.
SERVER_EMAIL = 'ecs-auto@ku.edu'
EMAIL_HOST = 'smtp.ku.edu'
# Django settings for formunculous project.
SERVER_EMAIL = 'root@localhost'
EMAIL_HOST = '127.0.0.1'
FORMUNCULOUS_REVIEW_PAGE_SIZE = 10
APP_STORAGE_ROOT = '/home/cgee/tmp'
APP_STORAGE_URL = '/apply/'
LOGIN_REDIRECT_URL = '/'
APP_STORAGE_ROOT = '/Users/cgee/tmp'
APP_STORAGE_URL = '/'
#Create path to application for correct pathing.
project_path = os.path.dirname(__file__)
@@ -78,6 +84,14 @@
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
"django.core.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.i18n",
"django.core.context_processors.media",
"django.core.context_processors.request",
)
ROOT_URLCONF = 'harness.urls'
TEMPLATE_DIRS = (
View
@@ -1,10 +1,12 @@
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
import os
admin.autodiscover()
project_path = os.path.dirname(__file__)
app_path = os.path.normpath(project_path + '/..')
print('%s/formunculous/media/' % app_path)
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
@@ -17,7 +19,7 @@
urlpatterns += patterns('',
(r'^', include('formunculous.urls')),
(r'^apply/', include('formunculous.urls')),
# Example:
# (r'^application/', include('application.foo.urls')),
@@ -26,5 +28,5 @@
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(admin.site.urls)),
(r'^admin/', include(admin.site.urls)),
)
@@ -0,0 +1,41 @@
ALTER TABLE formunculous_fielddefinition
ADD COLUMN multi_select bool NOT NULL DEFAULT False;
-- Comment out if using SQLite as it does not support dropping constraints
ALTER TABLE formunculous_fielddefinition
ALTER COLUMN multi_select DROP DEFAULT;
ALTER TABLE formunculous_fielddefinition
ADD COLUMN use_radio bool NOT NULL DEFAULT False;
-- Comment out if using SQLite as it does not support dropping constraints
ALTER TABLE formunculous_fielddefinition
ALTER COLUMN use_radio DROP DEFAULT;
ALTER TABLE formunculous_applicationdefinition
ADD COLUMN authentication_multi_submit bool NOT NULL DEFAULT False;
-- Comment out if using SQLite as it does not support dropping constraints
ALTER TABLE formunculous_applicationdefinition
ALTER COLUMN authentication_multi_submit DROP DEFAULT;
ALTER TABLE formunculous_application
ADD COLUMN parent_id integer;
-- Django won't create new m2m tables with a syncdb....
-- http://code.djangoproject.com/ticket/2229
--This is for SQLLite
--CREATE TABLE "formunculous_applicationdefinition_sites" (
-- "id" integer NOT NULL PRIMARY KEY,
-- "applicationdefinition_id" integer NOT NULL REFERENCES "formunculous_applicationdefinition" ("id"),
-- "site_id" integer NOT NULL REFERENCES "django_site" ("id"),
-- UNIQUE ("applicationdefinition_id", "site_id")
--)
--;
--This is for postgresql
CREATE TABLE "formunculous_applicationdefinition_sites" (
"id" serial NOT NULL PRIMARY KEY,
"applicationdefinition_id" integer NOT NULL REFERENCES "formunculous_applicationdefinition" ("id") DEFERRABLE INITIALLY DEFERRED,
"site_id" integer NOT NULL REFERENCES "django_site" ("id") DEFERRABLE INITIALLY DEFERRED,
UNIQUE ("applicationdefinition_id", "site_id")
)
;

0 comments on commit 916e8e2

Please sign in to comment.