summaryrefslogtreecommitdiffstats
path: root/expo/admin.py
Commit message (Collapse)AuthorAgeFilesLines
* [svn] Renaming troggle.expo to troggle.core. To do this, used:substantialnoninfringinguser2009-07-021-129/+0
| | | | | | perl -p -i -e "s/expo(?=[\s\.']+)/core/g" `find -name \*.py` and then manually checked each change (had to remove a couple)
* [svn] Adding logbook export features. Troggle can now produce .txt or .html ↵substantialnoninfringinguser2009-06-181-0/+11
| | | | logbooks through the controlPanel or via an action in the LogbookEntry admin pages.
* [svn] Just realized it makes no sense to have qms ticked off by a logbook ↵substantialnoninfringinguser2009-06-111-6/+2
| | | | entry as an inline. Instead, we need some kind of drop down list where ticked off qms can be searched for and selected. Should be doable.
* [svn] Fixed a bug with QMs with numbers between 1 and 10, and fixed the ↵substantialnoninfringinguser2009-06-101-6/+5
| | | | links in the recent changes box.
* [svn] * Added admin inlines for QMs in LogbookEntry modelsubstantialnoninfringinguser2009-06-101-10/+17
| | | | | * Added QM list edit view * Fixed "recent changes" box on front page
* [svn] Removed redundant fields "date" and "place" from Persontrip model. A ↵substantialnoninfringinguser2009-06-091-1/+1
| | | | PersonTrip's date and place are stored in its parent LogbookEntry. PersonTrips are the people who participate in the trip in a LogbookEntry, so it would make no sense to have different dates and places from the LogbookEntry they are foreignkeyed to.
* [svn] Fix mistakes in export admin actions. The python serializer only works ↵substantialnoninfringinguser2009-05-231-9/+2
| | | | on simple objects (lists, dicts etc) and not model instances so nix that part.
* [svn] Re-enable JSON and XML export actions in admin pages now that troggle ↵substantialnoninfringinguser2009-05-231-4/+3
| | | | is using latest SVN version of Django.
* [svn] - Remove feature (admin JSON / XML downloads) which won't work until ↵substantialnoninfringinguser2009-05-221-4/+4
| | | | | | we have django 1.1 installed (works on my SVN version, but not on seagrass debian package version). - Copy feincms media to project so that we don't have to serve it separately. Also useful because we may want to customize it.
* [svn] * Make subcave urls work.substantialnoninfringinguser2009-05-221-1/+25
| | | | * Add json and xml download to admin.
* [svn] Updates to allow subcave tree with nice admin.substantialnoninfringinguser2009-05-211-1/+8
|
* [svn] Fixes to deal with reorganization of expo surveys repository. Now that ↵substantialnoninfringinguser2009-05-131-0/+1
| | | | | | | survey scans and Surveys.csv are in different directories, we have two settings variables, settings.SURVEYS for the root of the survey repo, and settings.SURVEY_SCANS for the surveyscans directory. Fixed tab / indent muck in surveys parser. Commented out some "file abstraction" stuff for the time being. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8335 by cucc @ 5/10/2009 7:26 AM
* [svn] Weeks of local changes.substantialnoninfringinguser2009-05-131-10/+14
| | | | | | | | | | | - Import is now non-destructive - Parsers write output to a log file (path be specified in settings) - databaseReset.py content been divided into separate functions which can be called for varying levels of deletion and importing - control panel (view, template, urlpattern) added for deleting and importing - Logins and signup fixed - CaveArea model updated, view, hierarchical url patterns, and beginning of template added - New site style Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8324 by cucc @ 5/3/2009 5:56 AM
* [svn] Added wikilink hints to logbook admin page. Also added some inlines in ↵substantialnoninfringinguser2009-05-131-0/+15
| | | | | | | admin Change get_absolute_url methods to use reverse() to decouple from urlconf. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8314 by aaron @ 3/30/2009 7:24 AM
* [svn] Logbook entries are now at /YYYY-MM-DD/slug .substantialnoninfringinguser2009-05-131-0/+1
| | | | | Try editing a logbook entry title in the admin now. The django built in auto slug field is fun and javascripty. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8308 by aaron @ 3/16/2009 7:27 PM
* [svn] Added QM wiki markup. The format is [[cave:204 QM:2005-04A]] with the ↵substantialnoninfringinguser2009-05-131-2/+11
| | | | | | | grade (A) being optional. The links color red if the QM does not exist, and in that case clicking on them goes to an admin add page with fields prepopulated. Various other little things, e.g. filled in the footer with links. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8305 by aaron @ 3/16/2009 8:53 AM
* [svn] Make qm table export script worksubstantialnoninfringinguser2009-05-131-1/+8
| | | | Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8273 by aaron @ 3/14/2009 4:16 AM
* [svn]substantialnoninfringinguser2009-05-131-0/+2
| | | | Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8255 by aaron @ 2/23/2009 4:16 AM
* [svn] My crusade to make our project more Djangoic.substantialnoninfringinguser2009-05-131-1/+5
| | | | | | | | | Got rid of the url tags in template, replaced them with get_absolute_url method calls where possible. Adding get_absolute_url in models enables direct link to the public model views in admin. The use of get_absolute_url, which is the correct Django way of doing things, eliminates any need for the redundant "href" fields we were using. Those fields now need to be deleted from the models and from the parsers. Made the context processor to pass settings to all templates actually work, although this was a little uglier than expected. I had to put in a new render_response to replace render_to_response. This is because Django uses Context, not RequestContext by default. I wish they would change this, it's annoying. Anyway, I deleted all the manual settings passing in the views. I also eliminated a couple of unnecessary methods and stuff like that. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8244 by aaron @ 2/16/2009 8:31 AM
* [svn] Add user registration and user profiles.substantialnoninfringinguser2009-05-131-0/+5
| | | | | | | | | Used modified versions of django-registration and django-profiles , both on bitbucket. The Person model is now set up as the profile for auth.User s. I set up a requestcontext so that settings is automatically passed to every template, no need to repeat ourselves in views. However, this needs to be refined: I will soon change it to only pass a subset of settings. E.G. we do not need to be passing the DB login and password! Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8231 by aaron @ 1/29/2009 11:02 PM
* [svn] Fixed up calendar with estimated dates from logbook.substantialnoninfringinguser2009-05-131-2/+2
| | | | Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8202 by aaron @ 1/19/2009 8:28 AM
* [svn]substantialnoninfringinguser2009-05-131-2/+8
| | | | Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8175 by aaron @ 1/18/2009 4:42 AM
* [svn] Got rid of ugly old design; brought in ugly new design. This one works ↵substantialnoninfringinguser2009-05-131-3/+6
| | | | | | a little better, still needs a lot of work. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8164 by aaron @ 1/17/2009 7:11 AM
* [svn] Add beginnings of virtual survey binder: new Survey and ScannedImage ↵substantialnoninfringinguser2009-05-131-0/+9
| | | | | | models, survey parser. Still has lots of problems, but I need some help with the file upload aspect so am committing now. Biggest problem is trying to call save() on the images from the API. It needs arguments that I don't understand. Also, the # in our survey paths was causing trouble. I worked around this with a correctURL method which urlencodes the actual URL, but admin still tries to use a URL with a # in it. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8152 by aaron @ 1/15/2009 6:22 AM
* [svn] QM parser now parses Hauchhoehle QMs.pysubstantialnoninfringinguser2009-05-131-1/+2
| | | | | | | | | Photo model added. Logbook parser now puts mugshots in as photo models, and descriptions from the old folk html pages in as "blurbs" on the person model. Experimented with eye candy and a random logbook quote generator. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8094 by aaron @ 12/31/2008 2:59 AM
* [svn] Added survex persons to admin sitesubstantialnoninfringinguser2009-05-131-1/+11
| | | | Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8078 by julian @ 11/8/2008 11:24 PM
* [svn] Add QM model. Note that I had to put models_logbook into models cave ↵substantialnoninfringinguser2009-05-131-0/+1
| | | | | | because it referred to models from both. Will try to split them back up, should be possible. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8042 by aaron @ 10/28/2008 10:21 PM
* [svn] Initial troggle checkinsubstantialnoninfringinguser2009-05-131-0/+15
This is a development site using Django 1.0 Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8034 by julian @ 10/26/2008 9:04 PM