Closed Bug 464184 Opened 17 years ago Closed 16 years ago

[PATCH] Mozootle can now import users.prefs data into database

Categories

(Webtools Graveyard :: Verbatim, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla, Unassigned)

Details

Attachments

(1 file)

4.28 KB, text/x-python
clouserw
: review-
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008101315 Ubuntu/8.10 (intrepid) Firefox/3.0.3 Build Identifier: I wrote an extra file for Mozootle that lets it import users.prefs data into the SQLite DB. (Is this the right way to be suggesting Mozootle improvements?) Reproducible: Always
Attached file Importer
This way of submitting patches is fairly frustrating.
Attachment #347466 - Flags: review?(clouserw)
Attachment #347466 - Flags: review?(clouserw) → review-
Comment on attachment 347466 [details] Importer When I run this I get an error: $ python import_users_prefs.py pootle.prefs users.prefs Traceback (most recent call last): File "import_users_prefs.py", line 134, in ? main() File "import_users_prefs.py", line 26, in main01.mozilla.org set_up_db_then_import_users(parsed_prefs, parsed_users) File "import_users_prefs.py", line 43, in set_up_db_then_import_users import_users(alchemysession, parsed_users) File "import_users_prefs.py", line 106, in import_users _get_user_attribute(data, user_name, 'viewrows', unicode_me=False, default=10)) File "import_users_prefs.py", line 62, in try_type if value.isnumeric(): AttributeError: 'str' object has no attribute 'isnumeric'
> (Is this the right way to be suggesting Mozootle improvements?) Any suggestion with a patch is the right way :) > This way of submitting patches is fairly frustrating. What would make it better?
Status: UNCONFIRMED → NEW
Ever confirmed: true
I don't think Pootle uses user.prefs anymore, correct me if I am wrong and if we still need this bug. Thanks, anyway, for your work, Asheesh!
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
The current trunk doesn't use .prefs files but of course older installs do have prefs files that need to be migrated, I think that this bug deals with that situation.
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: