Check-in [08ee0f3c5e]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added week, status, and priority to list of predefined properties.
Timelines: family | ancestors | descendants | both | dev
Files: files | file ages | folders
SHA1:08ee0f3c5ed8994523f1b6cd7e25678dc82a0739
User & Date: mvnathan 2014-09-19 08:11:41
Context
2014-09-20
00:15
Implemented morglib.database.add_item(). check-in: 0c1020da14 user: mvnathan tags: dev
2014-09-19
08:11
Added week, status, and priority to list of predefined properties. check-in: 08ee0f3c5e user: mvnathan tags: dev
07:28
Generalized Morg so it's no longer task-specific. Rather, it aspires to be a general hierarchical list manager and, by default, its predefined properties set it up to manage shopping lists and TODO lists. check-in: d74ecb0949 user: mvnathan tags: dev
Changes

Changes to py/morglib/properties.py.

29
30
31
32
33
34
35
36
37
38
39
40
41

42
43
44
45
46
47


48
49
50
51
52
53
54
55
56
57
58
#

#------------------------ PREDEFINED PROPERTIES -------------------------

# These are Morg's predefined properties, which are geared towards
# managing TODO and shopping lists. But users can augment this list or
# even override it wholesale.
defaults = {'name'        : ('text'   , None       ),
            'type'        : ('text'   , 'task,shop'),
            'subitem_id'  : ('integer', None       ),
            'parent_id'   : ('integer', None       ),
            'day'         : ('integer', '1..7'     ),
            'date'        : ('integer', '1..31'    ),

            'month'       : ('integer', '1..12'    ),
            'year'        : ('integer', None       ),
            'start_hour'  : ('integer', '0..23'    ),
            'start_minute': ('integer', '0..59'    ),
            'end_hour'    : ('integer', '0..23'    ),
            'end_minute'  : ('integer', '0..59'    ),


            'store'       : ('text'   , None       ),
            'price'       : ('real'   , None       ),
            'quantity'    : ('integer', None       ),
            'notes'       : ('text'   , None       ),}

#------------------------------------------------------------------------

##############################################
# Editor config:                             #
##############################################
# Local Variables:                           #







|
|
|
|
|
|
>
|
|
|
|
|
|
>
>
|
|
|
|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#

#------------------------ PREDEFINED PROPERTIES -------------------------

# These are Morg's predefined properties, which are geared towards
# managing TODO and shopping lists. But users can augment this list or
# even override it wholesale.
defaults = {'name'        : ('text'   , None           ),
            'type'        : ('text'   , 'task,shop'    ),
            'subitem_id'  : ('integer', None           ),
            'parent_id'   : ('integer', None           ),
            'day'         : ('integer', '1..7'         ),
            'date'        : ('integer', '1..31'        ),
            'week'        : ('integer', '1..5'         ),
            'month'       : ('integer', '1..12'        ),
            'year'        : ('integer', None           ),
            'start_hour'  : ('integer', '0..23'        ),
            'start_minute': ('integer', '0..59'        ),
            'end_hour'    : ('integer', '0..23'        ),
            'end_minute'  : ('integer', '0..59'        ),
            'priority'    : ('integer', None           ),
            'status'      : ('text'   , 'todo,wip,done'),
            'store'       : ('text'   , None           ),
            'price'       : ('real'   , None           ),
            'quantity'    : ('integer', None           ),
            'notes'       : ('text'   , None           ),}

#------------------------------------------------------------------------

##############################################
# Editor config:                             #
##############################################
# Local Variables:                           #

Changes to wiki/schema.wiki.

170
171
172
173
174
175
176






177
178
179
180
181
182
183
...
206
207
208
209
210
211
212












213
214
215
216
217
218
219
...
233
234
235
236
237
238
239
240
241
242
243
  </tr>
  <tr>
    <td> </td>
    <td> date </td>
    <td> integer </td>
    <td> 1 .. 31 </td>
  </tr>






  <tr>
    <td> </td>
    <td> month </td>
    <td> integer </td>
    <td> 1 .. 12 </td>
  </tr>
  <tr>
................................................................................
  </tr>
  <tr>
    <td> </td>
    <td> end_minute </td>
    <td> integer </td>
    <td> 0 .. 59 </td>
  </tr>












  <tr>
    <td> </td>
    <td> store </td>
    <td> text </td>
    <td> </td>
  </tr>
  <tr>
................................................................................
    <td> notes </td>
    <td> text </td>
    <td> </td>
  </tr>
</table>
</center>

Users are not restricted to associating tasks with the above properties.
They may augment the above properties with their own. They may also
delete these defaults and define their own properties from scratch if
they so desire.







>
>
>
>
>
>







 







>
>
>
>
>
>
>
>
>
>
>
>







 







|



170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
...
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
...
251
252
253
254
255
256
257
258
259
260
261
  </tr>
  <tr>
    <td> </td>
    <td> date </td>
    <td> integer </td>
    <td> 1 .. 31 </td>
  </tr>
  <tr>
    <td> </td>
    <td> week </td>
    <td> integer </td>
    <td> 1 .. 5 </td>
  </tr>
  <tr>
    <td> </td>
    <td> month </td>
    <td> integer </td>
    <td> 1 .. 12 </td>
  </tr>
  <tr>
................................................................................
  </tr>
  <tr>
    <td> </td>
    <td> end_minute </td>
    <td> integer </td>
    <td> 0 .. 59 </td>
  </tr>
  <tr>
    <td> </td>
    <td> priority </td>
    <td> integer </td>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
    <td> status </td>
    <td> text </td>
    <td> todo, wip, done </td>
  </tr>
  <tr>
    <td> </td>
    <td> store </td>
    <td> text </td>
    <td> </td>
  </tr>
  <tr>
................................................................................
    <td> notes </td>
    <td> text </td>
    <td> </td>
  </tr>
</table>
</center>

Users are not restricted to associating items with the above properties.
They may augment the above properties with their own. They may also
delete these defaults and define their own properties from scratch if
they so desire.