forked from hforge/itools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUPGRADE-0.75.0
112 lines (79 loc) · 3.01 KB
/
UPGRADE-0.75.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
*************************************************************************
itools 0.75.0
*************************************************************************
!! THESE UPGRADE NOTES ARE WORK IN PROGRESS !!
New Dependencies
================
itools.database requires the magic module from libmagic, there are two
options:
- Use File (with the Python bindings), version 5.05 or later
http://www.darwinsys.com/file/
- Use python-magic from Pypi
http://pypi.python.org/pypi/python-magic
Imports
================
See the table below for the imports to update.
Before (alphabetical order) Now
--------------------------------- ---------------------------------
itools.core.thingy_type itools.core.prototype_type
itools.core.thingy itools.core.prototype
itools.core.thingy_property itools.core.proto_property
itools.core.thingy_lazy_property itools.core.proto_lazy_property
itools.core.is_thingy itools.core.is_prototype
itools.database.ROGitDatabase itools.database.RODatabase
itools.database.GitDatabase itools.database.RWDatabase
itools.http.SoupMessage itools.web.SoupMessage
itools.http.BadGateway itools.web.BadGateway
itools.http.BadRequest itools.web.BadRequest
itools.http.ClientError itools.web.ClientError
itools.http.Conflict itools.web.Conflict
itools.http.Forbidden itools.web.Forbidden
itools.http.HTTPError itools.web.HTTPError
itools.http.InternalServerError itools.web.InternalServerError
itools.http.MethodNotAllowed itools.web.MethodNotAllowed
itools.http.NotFound itools.web.NotFound
itools.http.NotImplemented itools.web.NotImplemented
itools.http.NotModified itools.web.NotModified
itools.http.ServerError itools.web.ServerError
itools.http.ServiceUnavailable itools.web.ServiceUnavailable
itools.http.Unauthorized itools.web.Unauthorized
itools.web.BaseForm itools.web.BaseView
itools.web.STLForm itools.web.STLView
itools.csv
================
(1) Remove the 'row_class' variable, don't allow anymore to override it.
(2) Replace class variable 'skip_header' by 'has_header':
# Before
skip_header = True
# Now
has_header = True
itools.database
================
(1) Rename class variable to define whether unknown fields are allowed or
not:
# Before
class_schema_extensible = True
# Now
fields_soft = True
itools.web
================
(1) Now views are prototypes, so:
# Before
@property
def foo(self):
# Now
@proto_property
def foo(self):
(2) The STLForm class has been merged into STLView:
# Before
from itools.web import STLForm
class MyView(STLForm):
# Now
from itools.web import STLView
class MyView(STLView):
(3) The resources 'get_abspath' method has been removed, use 'abspath'
instead:
# Before
resource.get_abspath()
# Now
resource.abspath