Commit graph

24 commits

Author SHA1 Message Date
Shaun McDonald
0ff1214f86 Make the role in relations optional, with a test to make sure it is. Also start moving the errors reading the xml to exceptions, thus making it possible to give meaningful error messages, when bad xml is sent (More work is required on this including doing the same for nodes and ways). With the latest gems update it seems that the lib xml handling was broken, using the newer method. Adding the content type for the exceptions. 2008-11-24 18:55:24 +00:00
Shaun McDonald
d74e2196a0 Freezing composite primary key so that we can apply TomH's patch to it, and that way Potlatch will work in Rails mode without a problem. Please test. 2008-11-15 01:11:27 +00:00
Richard Fairhurst
3065af398d 0.6-friendly Potlatch (work in progress). DO NOT SET POTLATCH_USE_SQL=false as it won't work 2008-11-09 23:50:03 +00:00
Shaun McDonald
bf29550db8 Resyncing from head 10895:11795 2008-11-08 11:52:58 +00:00
Shaun McDonald
b4c46ba4b8 add a comment about why the error handler is required, as per mail from TomH. Also adding the option so that we are using the old style of migrations, rather than the 2.1+ migrations. 2008-10-29 15:45:48 +00:00
Shaun McDonald
252c2f7022 Updating to use Rails 2.1.2. Moving the gem dependancies to the config/environment.rb file. Moving the vendor/plugins externals into our svn. 2008-10-28 20:42:48 +00:00
Tom Hughes
0d8e4b4337 Disable the query cache. 2008-10-13 23:13:34 +00:00
Tom Hughes
6d7e69d4d3 Make the location of the GPX traces configurable. 2008-08-07 11:31:42 +00:00
Tom Hughes
fb5f6bb4a2 Rework GPX import daemon to use libxml2 for speed. 2008-07-30 08:37:05 +00:00
Tom Hughes
2ac6340a7b Try and improve libxml error handling. 2008-07-20 17:08:27 +00:00
Tom Hughes
1cd26357f0 Default to using rails. 2008-07-16 22:59:10 +00:00
Tom Hughes
49637fed70 Move Potlatch configuration to a separate initialiser file. 2008-07-15 18:05:22 +00:00
Tom Hughes
e8293baf8f Let's have one last try... 2008-06-07 00:03:27 +00:00
Tom Hughes
d29defa7cc Magic foo to make composite_primary_keys work. 2008-06-06 23:53:20 +00:00
Tom Hughes
e7346e5903 Go back to rails 2.0.2 for now as 2.1.0 doesn't quite work... 2008-06-06 23:32:21 +00:00
Tom Hughes
c0d2ad40c3 Work round ruby's half assed Tempfile class which, because for some
reason it is implemented by delegating to File (by inheriting from
DelegateClass(File)) rather than by inheriting from it, does not
actually look like a File, and hence does not look like an IO (in
that it does not respond to kind_of? IO calls).

In ruby 1.8.5 this doesn't matter as REXML checks that the source
it has been given responds to the methods it wants (using respond_to?
which is handled properly by DelegateClass) but in 1.8.4 which we
are running on rails2 REXML uses kind_of? to see if the source is
one it can use.
2008-03-06 12:43:10 +00:00
Steve Coast
e13337354d preference stuff 2008-02-23 11:12:42 +00:00
Xin Zheng
6de965520b added application.yml, refactored map method 2008-01-23 16:43:30 +00:00
Tom Hughes
ea132b001d Rename initialiser to fix typo. 2008-01-23 14:07:14 +00:00
Tom Hughes
07e8449625 Allow a GPX to be fetched in XML format by fetching data.xml instead
of data (the data method returns it in the format it is stored in).

Closes #534.
2008-01-23 13:40:47 +00:00
Tom Hughes
33afd6fa7e Rename requires.rb to composite_primary_keys.rb so we have one file for
each system we are initialising.
2008-01-22 17:16:08 +00:00
Xin Zheng
726836f31e extracted require statement from environment.rb to intializers/requires.rb 2008-01-22 16:50:14 +00:00
Tom Hughes
065d3dc16b Don't try and limit the address space if the OS does not support it. 2008-01-15 00:41:07 +00:00
Tom Hughes
7fc2dbecd5 Migrate web site to use rails 2.0.1. 2008-01-06 12:17:58 +00:00