Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?xml version="1.0" encoding="UTF-8"?> <!-- // ***************************************************************************** // Capital IT Inc. // Copyright (C) 2008. All Rights Reserved // // $Source: /cvsroot/smn/app/modules/Default/validate/Progress.xml,v $ // $Revision: 1.1 $ // $Date: 2008/11/01 00:28:16 $ // $Author: btiernay $ // // ***************************************************************************** --> <ae:configurations xmlns="http://agavi.org/agavi/config/parts/validators/1.0" xmlns:ae="http://agavi.org/agavi/config/global/envelope/1.0" parent="%core.module_dir%/Default/config/validators.xml"> <ae:configuration> <validators method="write"> <validator class="number"> <argument>week</argument> <parameter name="min">1</parameter> <parameter name="max">4</parameter> <error>Week is required</error> <error for="min">Week is too small</error> <error for="max">Week is too big</error> </validator> <validator class="number" required="false"> <argument>week1_weight</argument> <parameter name="min">1</parameter> <parameter name="max">400</parameter> <error>Week 1's weight is invalid</error> <error for="min">Week 1's weight is too small</error> <error for="max">Week 1's weight is too big</error> </validator> <!-- <validator class="number" required="false" min="1" max="400"> <argument>week2_weight</argument> <error>Week 2's weight is invalid</error> <error for="min">Week 2's weight is too small</error> <error for="max">Week 2's weight is too big</error> </validator> <validator class="number" required="false" min="1" max="400"> <argument>week3_weight</argument> <error>Week 3's weight is invalid</error> <error for="min">Week 3's weight is too small</error> <error for="max">Week 3's weight is too big</error> </validator> <validator class="number" required="false" min="1" max="400"> <argument>week4_weight</argument> <error>Week 4's weight is invalid</error> <error for="min">Week 4's weight is too small</error> <error for="max">Week 4's weight is too big</error> </validator> --> </validators> </ae:configuration> </ae:configurations>
This paste will be private.
From the Design Piracy series on my blog: