Mercurial > genshi > genshi-test
annotate UPGRADE.txt @ 397:d6e9170c5ccc
* Moved some utility functions from `genshi.core` to `genshi.util` (backwards compatibility preserved via imports)
* Minor performance tweaks for the serializers
author | cmlenz |
---|---|
date | Tue, 02 Jan 2007 17:48:06 +0000 |
parents | 8e75b83d3e71 |
children | 2f4a525c32d5 0742f421caba |
rev | line source |
---|---|
233
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
1 Upgrading Genshi |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
2 ================ |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
3 |
336
5f2c7782cd8a
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 |
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
5 ------------------------------------ |
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
6 |
5f2c7782cd8a
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 |
5f2c7782cd8a
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 |
5f2c7782cd8a
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 |
5f2c7782cd8a
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. |
5f2c7782cd8a
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. |
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
12 |
343
4ff2338e89cd
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
|
13 Results of evaluating template expressions are no longer implicitly |
4ff2338e89cd
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
|
14 called if they are callable. If you have been using that feature, you |
4ff2338e89cd
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
|
15 will need to add the parenthesis to actually call the function. |
4ff2338e89cd
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
|
16 |
345 | 17 Instances of `genshi.core.Attrs` are now immutable. Filters |
18 manipulating the attributes in a stream may need to be updated. See | |
397
d6e9170c5ccc
* Moved some utility functions from `genshi.core` to `genshi.util` (backwards compatibility preserved via imports)
cmlenz
parents:
345
diff
changeset
|
19 the documentation of the `Attrs` class for more information. |
345 | 20 |
336
5f2c7782cd8a
Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents:
233
diff
changeset
|
21 |
233
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
22 Upgrading from Markup |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
23 --------------------- |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
24 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
25 Prior to version 0.3, the name of the Genshi project was "Markup". The |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
26 name change means that you will have to adjust your import statements |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
27 and the namespace URI of XML templates, among other things: |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
28 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
29 * The package name was changed from "markup" to "genshi". Please |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
30 adjust any import statements referring to the old package name. |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
31 * The namespace URI for directives in Genshi XML templates has changed |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
32 from http://markup.edgewall.org/ to http://genshi.edgewall.org/. |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
33 Please update the xmlns:py declaration in your template files |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
34 accordingly. |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
35 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
36 Furthermore, due to the inclusion of a text-based template language, |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
37 the class: |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
38 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
39 `markup.template.Template` |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
40 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
41 has been renamed to: |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
42 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
43 `markup.template.MarkupTemplate` |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
44 |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
45 If you've been using the Template class directly, you'll need to |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
46 update your code (a simple find/replace should do--the API itself |
7a426ab6407a
* Added implementation of a simple text-based template engine. Closes #47.
cmlenz
parents:
diff
changeset
|
47 did not change). |