Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# rbourque 6/15/2005 9:13 AM
I was testing out the Downloads module and uploaded my exim.conf as a test and got an exception error when viewing the file list.

Tracked it down to "public static string GetIconFilename(string extension)" method and made the following changes to allow for extensions that aren't listed. I'm sure it can be done more elegantly but I'm swamped with work today....

		public static string GetIconFilename(string extension)
		{
			if (fileTypesMap == null)
			{
				InitMap();
			}

			string iconFilename;
			try 
			{
				iconFilename = fileTypesMap[extension].ToString();
			}
			catch (Exception)
			{
				iconFilename = null;
			}
			finally
			{
				if (iconFilename == null)
				{
					iconFilename = "file.gif";
				}
			}
			return iconFilename;
		}
		

Keep up the good work Martijn!
# martijnb 6/15/2005 9:55 AM
Thanks Richard! I'm a little ashamed that this stupid bug has crept in. Note to self: test, test, test!

Expect a 0.8.1 release very soon. I have found some other bugs that need to be fixed. Besides that I'm stress testing Cuyahoga with some interesting results that need to be adressed too :).
# rbourque 6/15/2005 10:12 AM (edited 6/15/2005 10:38 AM)
No problem! You've saved me a lot of work because I've made an invoice approval module and company/project directory module with your framework. You have no idea how much time you saved me since making modules for your system is so easy. (Although I was 80% done making a file module but you beat me so I threw mine away)

Please just don't make moduletypeid's in the 1000's and 2000's otherwise my two module assemblies will overlap!!!