aaron
5438ce9d60
[svn r8313] Decoupled get_absolute_url methods from urlconf by using reverse()
2009-03-30 08:12:50 +02:00
aaron
333705092f
[svn r8308] Logbook entries are now at /YYYY-MM-DD/slug .
...
Try editing a logbook entry title in the admin now. The django built in auto slug field is fun and javascripty.
2009-03-16 20:27:52 +01:00
aaron
5c84cc7674
[svn r8306] Revert change that won't work until we upgrade to django 1.1
2009-03-16 10:00:09 +01:00
aaron
bcd223bc71
[svn r8305] Added QM wiki markup. The format is [[cave:204 QM:2005-04A]] with the 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.
2009-03-16 09:53:24 +01:00
aaron
cb70d8a0cb
[svn r8278] typo dammit
2009-03-14 17:20:51 +01:00
aaron
288df22e31
[svn r8277]
2009-03-14 17:09:41 +01:00
aaron
330ff681aa
[svn r8276] No go... maybe this will help? At a loss here...
2009-03-14 09:59:48 +01:00
aaron
97c9772696
[svn r8274] Reverted the reverts from 8267. Fixed the next / previous trip in personexpedition on the LogbookEntry template -- I had misunderstood what this was supposed to do last time I messed with it. This involved adding the methods PersonTrip.get_persons_next_trip and persons_previous_trip. Couldn't find any other broken things.
...
Kept the productive changes in 8267: extending the logbook parsing back to 1993, changing index page, changes to view_surveys.py
2009-03-14 09:38:55 +01:00
aaron
17a7302afb
[svn r8269] Got QM pages working.
...
Started scripts for exporting to old expo format.
2009-03-12 15:22:21 +01:00
julian
9150ee1229
[svn r8267] revert some of the changes (href element) so that the links work
2009-03-11 11:44:15 +01:00
julian
8473c4a2c3
[svn r8262] Further attempts to make troggle work on windows using surveys stored on an external server
...
settings.PHOTOS changed to setting.PHOTO_ROOT
Made databaseReset.py get info from external server if appropriate (hope this did not break linus disk based scripts)
Still needs more work, to get everything working
Auto create photos directory if it does not already exist
2009-03-02 02:30:45 +01:00
aaron
f5fdfe3793
[svn r8260] Added new abstract base class TroggleModel. Any fields or methods that need to be added to multiple models should be added here.
...
Added edit links to caves, people, logbook entries, and people.
2009-02-26 06:28:04 +01:00
aaron
40e47f368b
[svn r8255]
2009-02-23 05:16:50 +01:00
aaron
4fc8c8ae3c
[svn r8246] Photo file handling and mugshots parsing sorted.
...
Made URL settings more relative, less redundant.
2009-02-18 07:45:45 +01:00
aaron
1baf2cc0d4
[svn r8245]
2009-02-17 02:09:11 +01:00
aaron
6776111c6e
[svn r8244] My crusade to make our project more Djangoic.
...
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.
2009-02-16 09:31:26 +01:00
julian
0d0005ed66
[svn r8232] yorkshire work with tunnel integration
2009-01-30 00:40:56 +01:00
aaron
7c10fc5e39
[svn r8231] Add user registration and user profiles.
...
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!
2009-01-30 00:02:03 +01:00
julian
1f70991566
[svn r8228] cave maps to all logbook entry trips done there
2009-01-25 00:59:45 +01:00
julian
af65239d6e
[svn r8226] I initial work at adding caveareas. (Descirprion of parts of caves)
2009-01-24 19:49:51 +01:00
julian
ca9188bf69
[svn r8225] fix martins front page links
2009-01-24 19:36:58 +01:00
julian
c5e59200b3
[svn r8223] Added links to front page
...
Add names for views in order to link from the main page
2009-01-24 16:11:44 +01:00
aaron
a708accb80
[svn r8201] Survey table improvements, added calendar to urls
2009-01-19 08:19:07 +01:00
julian
9b63d62368
[svn r8199] survey block object
2009-01-19 01:22:54 +01:00
julian
2f0eb4f25f
[svn r8189] new person expedition
2009-01-18 20:50:30 +01:00
julian
918dbf3250
[svn r8180] Julian playing with the logbooks and expoyears
2009-01-18 16:59:37 +01:00
julian
cbb1acd1b4
[svn r8172] Modifications to allow survey files to be pulled from another server. By providing directory listing and download functions,. which could also be used by tunnel
2009-01-18 00:25:59 +01:00
julian
309d706bd7
[svn r8169] julian's quick makework and index page
2009-01-17 20:46:05 +01:00
aaron
1316f7657f
[svn r8164] Got rid of ugly old design; brought in ugly new design. This one works a little better, still needs a lot of work.
2009-01-17 08:11:01 +01:00
aaron
014f390100
[svn r8163] More work on survey images parser and virtual survey binder. Renamed expedition_year field of Survey model to expedition because this makes more sense.
2009-01-16 20:50:23 +01:00
aaron
246bb42545
[svn r8162]
2009-01-16 03:47:39 +01:00
aaron
083b5a3f1d
[svn r8152] Add beginnings of virtual survey binder: new Survey and ScannedImage 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.
2009-01-15 07:22:54 +01:00
aaron
134c6f8694
[svn r8094] QM parser now parses Hauchhoehle QMs.py
...
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.
2008-12-31 03:59:15 +01:00
aaron
7a4f8987f8
[svn r8093] Added QM model and parser. Had to merge models_cave.py and models_logbooks.py into models.py. This is because logbook entries now have an optional foreign key to caves, and QMs have a required foreign key to a logbook entry of the trip that created them. So, the two files became circularly dependent.
...
Also, the urls for the person model now allow lookups using their actual first and last name in the url instead of the primary key. We should do similar things for all models, maybe even using the url as a search which results in a page with multiple model instance results if the input is ambiguous (e.g. they only enter a first name).
2008-12-14 00:17:33 +01:00
aaron
fe81408800
[svn r8092]
2008-12-09 19:58:32 +01:00
aaron
88146c9a25
[svn r8091] undo stupid change
2008-12-09 19:51:11 +01:00
aaron
e783b3b576
[svn r8090]
2008-12-09 18:45:34 +01:00
aaron
4e1b4684cd
[svn r8087] Try and sort out settings mess.
2008-12-09 05:48:56 +01:00
aaron
b04d822383
[svn r8086] whoops, no slash
2008-12-09 03:05:23 +01:00
aaron
262b32bad5
[svn r8085] Trying to fix framos troggle
2008-12-09 03:01:31 +01:00
aaron
6b1555f867
[svn r8082] Remove MEDIA_ROOT from settings.py because it belongs in local settings, and comment out urlconf line for unfinished edit form which I haven't checked in.
2008-12-08 06:10:45 +01:00
aaron
97332b8103
[svn r8081] Added cave and logbook search, collapsible footer navbar, useless statistics page. Also fixed broken css. Toying with forms but not committing those yet.
2008-12-08 05:28:03 +01:00
julian
f08d6b6ecf
[svn r8075] Removed troggle from urls
2008-11-08 16:37:12 +01:00
julian
727c2994fb
[svn r8044] make the person logbooks work
2008-10-30 14:13:35 +01:00
julian
7dc74cf94c
[svn r8038] add personindex templates
2008-10-27 01:36:06 +01:00
julian
8bccfd9ed8
[svn r8034] Initial troggle checkin
...
This is a development site using Django 1.0
2008-10-26 22:04:06 +01:00