equal
deleted
inserted
replaced
|
1 |
|
2 Those are methods you'll find on both request objects and on repository session: |
|
3 |
|
4 :URL handling: |
|
5 * `build_url(*args, **kwargs)`, returns an absolute URL based on the |
|
6 given arguments. The *controller* supposed to handle the response, |
|
7 can be specified through the first positional parameter (the |
|
8 connection is theoretically done automatically :). |
|
9 :Data formatting: |
|
10 * `format_date(date, date_format=None, time=False)` returns a string for a |
|
11 date time according to instance's configuration |
|
12 |
|
13 * `format_time(time)` returns a string for a date time according to |
|
14 instance's configuration |
|
15 |
|
16 :And more...: |
|
17 |
|
18 * `tal_render(template, variables)`, renders a precompiled page template with |
|
19 variables in the given dictionary as context |
|
20 |
|
21 |
|
22 Result set methods: |
|
23 |
|
24 * `get_entity(row, col)`, returns the entity corresponding to the data position |
|
25 in the *result set* |
|
26 |
|
27 * `complete_entity(row, col, skip_bytes=True)`, is equivalent to `get_entity` but |
|
28 also call the method `complete()` on the entity before returning it |
|
29 |
|
30 |