Files @ ff3f10a6a203
Branch filter:

Location: kallithea/rhodecode/lib/dbmigrate/schema/__init__.py

Mads Kiilerich
pullrequest: just replace children of other_ref when other_repo changes

We were inserting a full select statement as innerHTML of a select and would
thus get nested select statements. IE did not render that correctly ... and
other browsers did strange things.

Instead we now create a in memory DOM object and move the optgroups. After
appending children to the selector we have to set selectedIndex on all
browsers.
# -*- coding: utf-8 -*-
"""
    rhodecode.lib.dbmigrate.schema
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    Schemas for migrations


    :created_on: Nov 1, 2011
    :author: marcink
    :copyright: (C) 2009-2010 Marcin Kuzminski <marcin@python-works.com>
    :license: <name>, see LICENSE_FILE for more details.
"""