Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5067:e424987d294a
Add support for an integer type to join the existing number type.
Commit patch supplied for issue2550886. This can be used for
properties used for ordering, counts etc. where a decimal point
isn't needed. Developed by Anthony (antmail). Doc updates written by
John Rouillard.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 05 Jun 2016 00:17:26 -0400 |
| parents | 46da0db55545 |
| children | f74300d1494e |
comparison
equal
deleted
inserted
replaced
| 5066:d2256fcfd81f | 5067:e424987d294a |
|---|---|
| 653 * Password properties are for storing encoded arbitrary-length strings. | 653 * Password properties are for storing encoded arbitrary-length strings. |
| 654 The default encoding is defined on the ``roundup.password.Password`` | 654 The default encoding is defined on the ``roundup.password.Password`` |
| 655 class. | 655 class. |
| 656 * Date properties store date-and-time stamps. Their values are Timestamp | 656 * Date properties store date-and-time stamps. Their values are Timestamp |
| 657 objects. | 657 objects. |
| 658 * Integer properties store integer values. (Number can store real/float values.) | |
| 658 * Number properties store numeric values. | 659 * Number properties store numeric values. |
| 659 * Boolean properties store on/off, yes/no, true/false values. | 660 * Boolean properties store on/off, yes/no, true/false values. |
| 660 * A Link property refers to a single other item selected from a | 661 * A Link property refers to a single other item selected from a |
| 661 specified class. The class is part of the property; the value is an | 662 specified class. The class is part of the property; the value is an |
| 662 integer, the id of the chosen item. | 663 integer, the id of the chosen item. |
| 812 ~~~~~~~~~~~~~~~~~~~~~ | 813 ~~~~~~~~~~~~~~~~~~~~~ |
| 813 | 814 |
| 814 When we sort items in the hyperdb, we use one of a number of methods, | 815 When we sort items in the hyperdb, we use one of a number of methods, |
| 815 depending on the properties being sorted on: | 816 depending on the properties being sorted on: |
| 816 | 817 |
| 817 1. If it's a String, Number, Date or Interval property, we just sort the | 818 1. If it's a String, Integer, Number, Date or Interval property, we |
| 818 scalar value of the property. Strings are sorted case-sensitively. | 819 just sort the scalar value of the property. Strings are sorted |
| 820 case-sensitively. | |
| 819 2. If it's a Link property, we sort by either the linked item's "order" | 821 2. If it's a Link property, we sort by either the linked item's "order" |
| 820 property (if it has one) or the linked item's "id". | 822 property (if it has one) or the linked item's "id". |
| 821 3. Mulitlinks sort similar to #2, but we start with the first Multilink | 823 3. Mulitlinks sort similar to #2, but we start with the first Multilink |
| 822 list item, and if they're the same, we sort by the second item, and | 824 list item, and if they're the same, we sort by the second item, and |
| 823 so on. | 825 so on. |
| 1658 file named by the form value is uploaded. This means we | 1660 file named by the form value is uploaded. This means we |
| 1659 try to set additional properties "filename" and "type" (if | 1661 try to set additional properties "filename" and "type" (if |
| 1660 they are valid for the class). Otherwise, the property | 1662 they are valid for the class). Otherwise, the property |
| 1661 is set to the form value. | 1663 is set to the form value. |
| 1662 | 1664 |
| 1663 For Date(), Interval(), Boolean(), and Number() | 1665 For Date(), Interval(), Boolean(), Integer() and Number() |
| 1664 properties, the form value is converted to the | 1666 properties, the form value is converted to the |
| 1665 appropriate | 1667 appropriate |
| 1666 | 1668 |
| 1667 Any of the form variables may be prefixed with a classname or | 1669 Any of the form variables may be prefixed with a classname or |
| 1668 designator. | 1670 designator. |
