Commit graph

144 commits

Author SHA1 Message Date
Tom Hughes
5294e4d989 Send notification messages in the target user's language. 2009-05-31 16:10:53 +00:00
Tom Hughes
3d906fe8c6 Merge 15165:15373 from trunk. 2009-05-31 11:32:32 +00:00
Shaun McDonald
ae70ea2858 Remove the languages hash since we are now storing the languages in a table. Translated the posted by line in diary entry list. 2009-05-27 15:50:55 +00:00
Tom Hughes
68eeaabb9d Altered to match rails 2.3.2 implementation. 2009-05-22 23:49:08 +00:00
Shaun McDonald
6fe22d41a9 Reverting config file that shouldn't have been committed. 2009-05-22 18:41:33 +00:00
Shaun McDonald
53b4d645d8 First stage of i18n. Some migrations and extra plugins. 2009-05-22 18:36:17 +00:00
Matt Amos
95c6974763 Disabled automatic parsing of XML to a hash in request bodies for a modest 15% speedup. 2009-05-21 23:48:34 +00:00
Tom Hughes
4f6dc55683 Check for wrapped timeout errors properly. 2009-05-21 21:55:30 +00:00
Shaun McDonald
d4954bc7b1 Raising an exception in Ruby requires a .new. Add a timeout line to the capabilities call. 2009-05-21 14:05:09 +00:00
Tom Hughes
e3cbeeae94 Monkey patch rails to ensure OSM::APITimeoutError exceptions are not lost. 2009-05-21 09:57:21 +00:00
Tom Hughes
d6e605414d Set a custom return path so that we can ignore bounces. 2009-05-09 12:17:10 +00:00
Tom Hughes
72b05157ae Remove old code to exit after 10000 requests as the memory limit code
should do a better job of controlling things.
2009-04-26 23:14:20 +00:00
Tom Hughes
1bd3710134 Increase the hard memory limit and set a lower soft limit that does a
clean restart between requests.
2009-04-26 16:56:40 +00:00
Tom Hughes
66c95aa3f9 Work out which session store class to use automatically. 2009-04-16 20:29:18 +00:00
Shaun McDonald
90ec90f13d reverting last change, which included posgres config specific things 2009-04-13 00:10:37 +00:00
Shaun McDonald
2c52b06716 Remove duplication that is in the test helper. Adding tests for the passing of no content, and the wrong method used. Also ensuring that there has been a changeset added to the db when it is created. 2009-04-13 00:04:24 +00:00
Tom Hughes
c8ee135104 Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
Tom Hughes
07c1cd6b98 Update to use libxml 1.0.0 gem. 2009-03-08 11:34:46 +00:00
Paul Gillard
302fd06d46 2009-02-10 22:50:13 +00:00
Paul Gillard
3f30bc53f5 Ensure homepage source validates. 2009-02-10 22:42:45 +00:00
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