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