-
Hey Dev and Fassembler Lists, Ian and I made some changes to dvhoster and fassembler yesterday and I thought I'd explain them for the edification of anyone interested. Previously, every time Deliverance was hit with a new host, it would create a new directory for the host at {{env.var}}/deliverance/hosts/NEWHOST, and then use a variable in openplans_hooks.py to populate the rules/rule.xml thereunder. This is less than ideal; the rules, which are xml, should live in a configurable xml file managed in svn, not inside a python string. So we changed them to. This allows a LivableStreets build to specify one set of rules, and an OpenPlans build to specify another. We also changed the behavior to read this xml file from a single place checked out of svn, {{env.var}}/deliverance/default_rules, rather than have it get regenerated inside each new host. Of course, if a particular host wants to specify custom rules, it still can; dvhoster still checks for the presence of rules/rule.xml inside the host directory before falling back on default_rules/rule.xml. This should be simpler and more flexible. See http://trac.openplans.org/openplans/changeset/17058 and dvhoster r54979 (does codespeak have Trac instance yet?) if interested in reviewing the changes. The new homes of the openplans and livablestreets default rules are at https://svn.openplans.org/svn/build/rules/openplans and https://svn.openplans.org/svn/build/rules/livablestreets. We also changed the deliverance build to look in deliverance-req.txt for the rules_repo setting, and then check it out to the default_rules_dir (see http://trac.openplans.org/openplans/changeset/17057). Q. I'm doing a new build in an existing site. What should I do with my existing {{env.var}}/deliverance directory? A. Delete it. dvhoster will generate everything properly when it gets hit. Q. What if I forget to delete it? A. For openplans builds, you won't notice anything different. dvhoster will still use your hosts' rules/rule.xml files, which now just pointlessly duplicate default_rules/rule.xml. For livablestreets builds, however, you won't be getting the right rules, because your existing hosts' rules/rule.xml files will not match the default_rules/rule.xml, which was just created yesterday to accommodate the new livablestreets design. So it will look just as broken as it would have without the changes to dvhoster. But now all you'll have to do is delete your hosts directory and dvhoster will then make everything right, rather then having to manually drop an up-to-date rule.xml in each host directory. Let me or Ian know if you have any questions. Josh
text.html (text/html) 3.2 kB