Re: import you mother f*!*er

Andrew Stuart
Tue, 16 Aug 2005 11:15:29 -0000

I use Jim Willsher''s bulk rename utility under windows to rename
thousands
of files and strip out stuff like spaces from filenames.

http://www.pcworld.com/downloads/file_description/0,fid,22983,00.asp

AS


----- Original Message -----
From: "Aaron Ransley"
<jomdom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>
Sent: Tuesday, August 16, 2005 2:09 PM
Subject: Re: [Rails] import you mother f*!*er


Have you considered doing a UNIX kind of replace on the filenames?
Replace all + in the .textile files with spaces?

Just throwing it out there.

On 8/15/05, John Evans <john-M6MfiH3Ctdn10XsdtD+oqA@public.gmane.org>
wrote:
> OK so its simple. I had a couple of .9x installations, I am moving
> them to the latest stable version and so I follow some tweaks and
> guides here and there and enable file uploads and so crate and empty
> web, go to the new_web/import page, select a zip exported by the same
> instiki version, hit import and wait. Then I get the file import
> success or whatever and now look at the ''all pages''  and
low and
> behold lots of orphaned pages. and lots of missing pages.
>
> The reason? any page with a space for example
>
> I am a page
>
> becomes on export
>
> I+am+a+page.textile
>
> which when reimported becomes
>
> I%26am%26a%26page
>
> which is wrong, oh so so so wrong. So my exports are useless, I cant
> g back to .9 easily because of upgrading rby and a bunch of other stuff.
>
> WHY WHY WHY WHY, I really need a fix now I have hundreds of pages
> which I need to get back online and looking over the code (I am more
> a php guy) I get the jist of whats going on but I dont see a way to
> fix it easily. Anyone who can just give me a quick fix, even if its
> change this line to this I will be eternally grateful....
>
> perhaps a simple url decode of the filename would do?
>
> (now using latest stable trunk version, latest ruby)
>
> john
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
- Aaron ''Jomdom'' Ransley
- Web: www.jomdom.net
- Mail: jomdom-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org