|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Import/Conversion Question (fwd) Whoops, I meant to send this to the entire list.
---------- Forwarded message ---------- Date: Fri, 3 Aug 2007 12:46:23 -0400 (Eastern Daylight Time) From: Anthony Foglia <afoglia@...> To: Thomas_Hinkle@... Subject: Re: [Grecipe-manager-devel] Import/Conversion Question On Fri, 3 Aug 2007, Thomas Mills Hinkle wrote: > No -- I'm not sure why notes wouldn't be stored as notes. The > "modifications" was the original name I gave them -- notes is more apt, > which is why I changed the name in the UI, but it wasn't worth the hassle > to change the name in the back end. That's what I figured. I'll try changing it so the notes fields correspond, and I'll make that the default fallback for any other fields (e.g. Mastercook's description, which currently is added to the instructions). > The fix you've already done looks good. Any chance you could submit the fix > as a patch against CVS HEAD -- that would be the most useful. If not, a > patch against whatever version you have would also be useful. If memory > serves, the mastercook code has not changed in some time. Here's a patch against CVS HEAD. (The file probably needs cleaning as it's just the output from a "cvs diff" command.) There was only one small change in the Mastercook import code between 0.13.4 and 0.13.6. But because 0.13.6 hasn't been updated since bug 1749492 <http://sourceforge.net/tracker/index.php?func=detail&aid=1749492&group_id=108118&atid=649652>, I just went to the CVS. --Anthony ------------------------------------------------------------------- "The secret of life is honesty and fair dealing. If you can fake that, you've got it made." -- Groucho Marx ? build ? mc5_attr_fix.patch ? src/lib/version.pyc ? src/lib/importers/mc5_attr_fix.patch ? tools/__init__.pyc ? tools/gourmet_distutils.pyc Index: src/lib/importers/mastercook_importer.py =================================================================== RCS file: /cvsroot/grecipe-manager/grm/src/lib/importers/mastercook_importer.py,v retrieving revision 1.6 diff -u -r1.6 mastercook_importer.py --- src/lib/importers/mastercook_importer.py 27 Jun 2007 17:32:21 -0000 1.6 +++ src/lib/importers/mastercook_importer.py 3 Aug 2007 01:03:40 -0000 @@ -14,7 +14,7 @@ self.toss_regexp = self.toss_regexp + r + "|" self.toss_regexp = self.toss_regexp[0:-1] + ")" self.toss_regexp = re.compile(self.toss_regexp) - self.attr_regexp = '(<[^>]+?)\"([^=]+\"[^=]+)\"' + self.attr_regexp = '(<[^>]+?)\"([^=]+[\"<>][^=]+)\"' self.attr_regexp = re.compile(self.attr_regexp) self.encodings = ['cp1252','iso8859','ascii','latin_1','cp850','utf-8'] ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Grecipe-manager-devel mailing list Grecipe-manager-devel@... https://lists.sourceforge.net/lists/listinfo/grecipe-manager-devel |
| Free embeddable forum powered by Nabble | Forum Help |