Skip to content

nan

Sections
Personal tools
You are here: Home » How Tos » How to copy colorZ into your base_properties   colorzhema
Log in
No Software Patents!

Under the influence of the patent system and big industry lobbyists, the European Union is on the verge of making a huge mistake: to pass a law that would legalize software patents.

 

How to copy colorZ into your base_properties

Document Actions
The excelent Colorz Skin has one big drawback. It replaces plone.css with its own version. But there is a way around that ...
just customize colorz_properties and base_properties, remove any
property of colorz_properties that is not a color and run this
script:


colorz_props = container.colorz_properties.propertyItems()
for prop_name in colorz_props:
colorz_value = getattr(container.colorz_properties, prop_name[0])
attr = getattr(context.colorz, colorz_value)

prop = prop_name[0]
print prop, attr
container.base_properties.manage_changeProperties({prop: attr})

return printed

Created by nan
Last modified 2005-06-09 05:24 PM
« November 2009 »
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
 
 

Powered by Plone

This site conforms to the following standards: