Code

More doc tweaks
[roundup.git] / doc / implementation.txt
1 ====================
2 Implementation notes
3 ====================
5 :Version: $Revision: 1.3 $
7 [see also the roundup package docstring]
9 There have been some modifications to the spec. I've marked these in the
10 source with 'XXX' comments when I remember to.
12 In short:
13  Class.find() - may match multiple properties, uses keyword args.
15  Class.filter() - isn't in the spec and it's very useful to have at the Class
16     level.
17  
18  CGI interface index view specifier layout part - lose the '+' from the
19     sorting arguments (it's a reserved URL character ;). Just made no
20     prefix mean ascending and '-' prefix descending.
22  ItemClass - renamed to IssueClass to better match it only having one
23     hypderdb class "issue". Allowing > 1 hyperdb class breaks the
24     "superseder" multilink (since it can only link to one thing, and we'd
25     want bugs to link to support and vice-versa).
27  templates - the call="link()" is handled by special-case mechanisms in my
28     top-level CGI handler. In a nutshell, the handler looks for a method on
29     itself called 'index%s' or 'item%s' where %s is a class. Most items
30     pass on to the templating mechanism, but the file class _always_ does
31     downloading. It'll probably stay this way too...
33  template - call="link(property)" may be used to link "the current node"
34     (from an index) - the link text is the property specified.
36  template - added functions that I found very useful: List, History and
37     Submit.
39  template - items must specify the message lists, history, etc. Having them
40     by default was sometimes not wanted.
42  template - index view determines its default columns from the template's
43     <property> tags.
45  template - menu() and field() look awfully similar now .... ;)
47  roundup.py - the command-line tool has a lot more commands at its disposal
49 -----------------
51 Back to `Table of Contents`_
53 .. _`Table of Contents`: index.html