Пример #1
0
def create_new_palette(config):
    model = XMLObject('palette')
    model.attrs['name'] = config.default_name
    model.attrs['guid'] = generate_guid()
    colors = XMLObject('colors')
    model.childs.append(colors)
    page = XMLObject('page')
    colors.childs.append(page)
    return model
Пример #2
0
def create_new_palette(config):
	model = XMLObject('palette')
	model.attrs['name'] = '' + config.default_name
	model.attrs['guid'] = generate_guid()
	colors = XMLObject('colors')
	model.childs.append(colors)
	page = XMLObject('page')
	colors.childs.append(page)
	return model