Commit Graph

11 Commits

Author SHA1 Message Date
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
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
7d1c2b6615 [svn r8190] MOre work on abstracting the file locations on scanned survey notes 2009-01-18 22:04:00 +01:00
julian
0701ce3ee2 [svn r8187] Got rid of data relating to specific machines 2009-01-18 19:15:06 +01:00
julian
8f817b424e [svn r8173] Continued file abstracted work, to get survey files from either hard disk or the web. 2009-01-18 01:45:56 +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
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
0404030f87 [svn r8155] Added some actual funtionality to virtual survey binder. 2009-01-16 00:21:55 +01:00
aaron
95d6ae7011 [svn r8154] Whoops, commented out lines with were just for my local debugging. 2009-01-15 20:32:41 +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