Mercurial > genshi > mirror
annotate UPGRADE.txt @ 440:7884617bc941 trunk
Add stricter error handling to upgrade notes.
author | cmlenz |
---|---|
date | Wed, 04 Apr 2007 17:18:08 +0000 |
parents | 5cd03affab4a |
children | 97544725bb7f |
rev | line source |
---|---|
233
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
1 Upgrading Genshi |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
2 ================ |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
3 |
336
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
4 Upgrading from Genshi 0.3.x to 0.4.x |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
5 ------------------------------------ |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
6 |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
7 The `genshi.template` module has been refactored into a package with |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
8 multiple modules. While code using the normal templating APIs should |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
9 continue to work without problems, you should make sure to remove any |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
10 leftover traces of the `template.py` file on the installation path. |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
11 This is not necessary when Genshi was installed as a Python egg. |
7763f7aec949
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
12 |
440 | 13 Handling of errors in template expressions is now more strict. In |
14 particular, it is no longer possible to reference an undefined | |
15 variable without an exception being raised. The previous error | |
16 handling let expressions get away with minor typos, which would | |
17 result in subtle bugs that were hard to find. The functions | |
18 `defined()` and `value_of()` are now available in all template | |
19 code; they can be used to test whether a specific variable is | |
20 defined at the top-level scope. Please refer to the template | |
21 language documentation for details. | |
22 | |
343
35189e960252
Remove automatic calling of expression evaluation results if they are callable. See [http://groups.google.com/group/genshi/browse_thread/thread/f515986760918d41 this mailing list thread].
cmlenz
parents:
336
diff
changeset
|
23 Results of evaluating template expressions are no longer implicitly |
35189e960252
Remove automatic calling of expression evaluation results if they are callable. See [http://groups.google.com/group/genshi/browse_thread/thread/f515986760918d41 this mailing list thread].
cmlenz
parents:
336
diff
changeset
|
24 called if they are callable. If you have been using that feature, you |
35189e960252
Remove automatic calling of expression evaluation results if they are callable. See [http://groups.google.com/group/genshi/browse_thread/thread/f515986760918d41 this mailing list thread].
cmlenz
parents:
336
diff
changeset
|
25 will need to add the parenthesis to actually call the function. |
35189e960252
Remove automatic calling of expression evaluation results if they are callable. See [http://groups.google.com/group/genshi/browse_thread/thread/f515986760918d41 this mailing list thread].
cmlenz
parents:
336
diff
changeset
|
26 |
345 | 27 Instances of `genshi.core.Attrs` are now immutable. Filters |
411 | 28 manipulating the attributes in a stream may need to be updated. Also, |
29 the `Attrs` class no longer automatically wraps all attribute names | |
30 in `QName` objects, so users of the `Attrs` class need to do this | |
31 themselves. See the documentation of the `Attrs` class for more | |
32 information. | |
33 | |
345 | 34 |
233
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
35 Upgrading from Markup |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
36 --------------------- |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
37 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
38 Prior to version 0.3, the name of the Genshi project was "Markup". The |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
39 name change means that you will have to adjust your import statements |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
40 and the namespace URI of XML templates, among other things: |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
41 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
42 * The package name was changed from "markup" to "genshi". Please |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
43 adjust any import statements referring to the old package name. |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
44 * The namespace URI for directives in Genshi XML templates has changed |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
45 from http://markup.edgewall.org/ to http://genshi.edgewall.org/. |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
46 Please update the xmlns:py declaration in your template files |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
47 accordingly. |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
48 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
49 Furthermore, due to the inclusion of a text-based template language, |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
50 the class: |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
51 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
52 `markup.template.Template` |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
53 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
54 has been renamed to: |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
55 |
414 | 56 `genshi.template.MarkupTemplate` |
233
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
57 |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
58 If you've been using the Template class directly, you'll need to |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
59 update your code (a simple find/replace should do--the API itself |
88ec2b306296
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
60 did not change). |