|
1 Metadata-Version: 2.1 |
|
2 Name: pyams-utils |
|
3 Version: 0.1.24 |
|
4 Summary: Utility functions and classes for PyAMS |
|
5 Home-page: http://www.ztfy.org |
|
6 Author: Thierry Florac |
|
7 Author-email: tflorac@ulthar.net |
|
8 License: ZPL |
|
9 Description: =================== |
|
10 pyams_utils package |
|
11 =================== |
|
12 |
|
13 .. contents:: |
|
14 |
|
15 |
|
16 What is pyams_utils ? |
|
17 ===================== |
|
18 |
|
19 pyams_utils is a set of classes and functions which can be used to provide many small services and |
|
20 handle common operations in the context of a Pyramid application. |
|
21 |
|
22 Internal sub-packages include: |
|
23 - registry: local registry management tools |
|
24 - adapter: custom adapters and annotations |
|
25 - date: convert dates to unicode ISO format, parse ISO datetime, convert date to datetime |
|
26 - request: get current request, get request annotations, get and set request data via annotations |
|
27 - session: to store and get properties values from current session |
|
28 - timezone: convert datetime to a given timezone ; provides a server default timezone utility |
|
29 - traversing: custom traverser utility supporting namespaces |
|
30 - unicode: convert any text to unicode for easy storage |
|
31 - protocol: utility functions and modules for several nerwork protocols |
|
32 - text: simple text operations and text to HTML conversion |
|
33 - html: HTML parser and HTML to text converter |
|
34 - file: file upload data converter |
|
35 - tales: custom "extension:" TALES expression using adapters |
|
36 |
|
37 |
|
38 How to use pyams_utils ? |
|
39 ======================== |
|
40 |
|
41 A set of pyams_utils usages are given as doctests in pyams_utils/doctests/README.txt |
|
42 |
|
43 You will also a whole set of documentations into the "docs" directory, available on |
|
44 `ReadTheDocs <http://pyams-utils.readthedocs.org>`_ |
|
45 |
|
46 |
|
47 Changelog |
|
48 ========= |
|
49 |
|
50 0.1.24 |
|
51 ------ |
|
52 - added Pygments utilities |
|
53 |
|
54 0.1.23 |
|
55 ------ |
|
56 - added function to check if TCP port is already opened |
|
57 - added "truncate" TALES extension |
|
58 - updated Fanstatic package docstring |
|
59 |
|
60 0.1.22 |
|
61 ------ |
|
62 - updated Fanstatic's external resource declaration to handle resources types not based on URLs |
|
63 |
|
64 0.1.21 |
|
65 ------ |
|
66 - added "display_context" property to request |
|
67 - updated 'timestamp' TALES extension to specify optional ISO output format |
|
68 |
|
69 0.1.20 |
|
70 ------ |
|
71 - added support for server's locale configuration |
|
72 - added 'need_resource' TALES extension to include Fanstatic resource from template |
|
73 |
|
74 0.1.19 |
|
75 ------ |
|
76 - updated "br" TALES extension to add custom start and end tags |
|
77 |
|
78 0.1.18 |
|
79 ------ |
|
80 - added default JSON encoder to serialize date and datetime objects (required for PyAMS_apm package) |
|
81 - added JS text renderer |
|
82 - use "yield from" in container's ISublocations adapters |
|
83 |
|
84 0.1.17.1 |
|
85 -------- |
|
86 - update "br" TALES extension to disallow empty context |
|
87 |
|
88 0.1.17 |
|
89 ------ |
|
90 - added functions to get unique or random members from iterator |
|
91 |
|
92 0.1.16 |
|
93 ------ |
|
94 - updated annotation adapter factory to use a registered object factory if given factory is an |
|
95 interface |
|
96 - added "parent_selector" predicate for IObjectMoved/IObjectAdded events |
|
97 - added "is_interface" function to check if an object is an interface |
|
98 - added IRelativeURL interface, default adapter and TALES "relative_url" extension to get |
|
99 content's URL based on current display context |
|
100 - added "cache_key" and "timestamp" TALES extensions |
|
101 - removed configuration factory interfaces and use standard object factory |
|
102 |
|
103 0.1.15 |
|
104 ------ |
|
105 - added "inherit_from" attribute to IInheritInfo interface |
|
106 - added helper to get a persistent adapter through context's annotations |
|
107 - added "canonical_url" function, interface and TALES extension |
|
108 - updated custom PyAMS traverser to notify BeforeTraverseEvent on last traversed object |
|
109 |
|
110 0.1.14 |
|
111 ------ |
|
112 - updated request_property decorator cache key |
|
113 - updated base site root ACL to grant 'public' permission to everyone |
|
114 - use object ID in default cache key adapter |
|
115 - add cache key adapters for string and persistent objects |
|
116 |
|
117 0.1.13 |
|
118 ------ |
|
119 - added site root factory interface |
|
120 - updated site factory to use new factory interface utility |
|
121 |
|
122 0.1.12 |
|
123 ------ |
|
124 - added "request_selector" subscriber predicate |
|
125 - updated ZEO connection timeout arguments for ZEO 5.x |
|
126 - remove INewLocalSite event subscribers; database upgrade is now only done through command line script, and |
|
127 utilities providing ISiteGenerations can be ordered |
|
128 - removed static configuration manager interface |
|
129 - make sure that requests created manually support annotations in get/set request data functions |
|
130 |
|
131 0.1.11 |
|
132 ------ |
|
133 - moved PyAMS documentation to "PyAMS User Guide" package |
|
134 - added "inherit" interface and module to handle inheritance between located components easier |
|
135 - added exception handling when trying to get or set request annotations |
|
136 - added property annotation to define volatile attributes on persistent classes |
|
137 |
|
138 0.1.10 |
|
139 ------ |
|
140 - added ZODB connection class and vocabulary based on Pyramid's settings |
|
141 - updated DocFieldProperty to correctly handle attributes documentation |
|
142 - small updates in registry management functions |
|
143 |
|
144 0.1.9 |
|
145 ----- |
|
146 - added "NullAdapter" class to be able to remove a default adapter for a given context |
|
147 - added "get_global_registry" function |
|
148 |
|
149 0.1.8 |
|
150 ----- |
|
151 - updated TALES extensions interfaces |
|
152 - added validation method and exception for email schema field |
|
153 |
|
154 0.1.7 |
|
155 ----- |
|
156 - added mail address schema field |
|
157 |
|
158 0.1.6 |
|
159 ----- |
|
160 - updated exceptions messages translations |
|
161 - added 'query' parameter to 'absolute_url' function |
|
162 |
|
163 0.1.5 |
|
164 ----- |
|
165 - refactored request and session properties management |
|
166 - added check for multi-adapter lookup on IHTMLRenderer interface in 'html' TALES extension |
|
167 - update docstrings |
|
168 |
|
169 0.1.4 |
|
170 ----- |
|
171 - added "condition" optional argument to "get_parent" traversing helper to retrieve a parent only if given function |
|
172 returns a "True" value when called with parent as argument |
|
173 - added annotation for vocabulary registry |
|
174 - added 'prefix' argument to 'request_property' and 'session_property' decorators |
|
175 - handle POSError in 'query_utility' registry function |
|
176 - updated unit tests |
|
177 - updated documentation |
|
178 |
|
179 0.1.3 |
|
180 ----- |
|
181 - corrected XML-RPC client for Python 3 |
|
182 - added container's "find_objects_*" functions based on ISubLocations interface |
|
183 |
|
184 0.1.2 |
|
185 ----- |
|
186 - imports cleanup |
|
187 - moved IIntIds related modules from pyams_base package |
|
188 |
|
189 0.1.1 |
|
190 ----- |
|
191 - corrected cookies management in XML-RPC authenticated transport |
|
192 |
|
193 0.1.0 |
|
194 ----- |
|
195 - initial release |
|
196 |
|
197 Keywords: Pyramid PyAMS utilities |
|
198 Platform: UNKNOWN |
|
199 Classifier: License :: OSI Approved :: Zope Public License |
|
200 Classifier: Development Status :: 4 - Beta |
|
201 Classifier: Programming Language :: Python |
|
202 Classifier: Framework :: Zope3 |
|
203 Classifier: Topic :: Software Development :: Libraries :: Python Modules |
|
204 Provides-Extra: test |