- Nothing changed yet.
- Add
radio_class
andradio_input_class
properties toyafowil.file
. [lenadax]
- Refactor datatype conversion. Datatype related extractors and utils are
contained in
yafowil.datatype
now. Fix datatype conversion forbytes
type. [rnix] - Split up
yafowil.common
module [rnix]- Move
button
andsubmit
blueprints toyafowil.button
. - Move
checkbox
blueprint toyafowil.checkbox
. - Move
email
blueprint toyafowil.email
. - Move
field
,label
,help
anderror
blueprints toyafowil.field
. - Move
file
blueprint toyafowil.file
. - Move
hidden
blueprint toyafowil.hidden
. - Move
lines
blueprint toyafowil.lines
. - Move
number
blueprint toyafowil.number
. - Move
password
blueprint toyafowil.password
. - Move
proxy
blueprint toyafowil.proxy
. - Move
search
blueprint toyafowil.search
. - Move
select
blueprint toyafowil.select
. - Move
tag
blueprint toyafowil.tag
. - Move
text
blueprint toyafowil.text
. - Move
textarea
blueprint toyafowil.textarea
. - Move
url
blueprint toyafowil.url
.
- Move
- Tests work with pytest. [rnix]
- File extractor raises an
ExtractionError
if file action isreplace
but no file is uploaded instead of silently changing the action tokeep
. [rnix] - Document
vocabulary
property offile
blueprint. [rnix] - Add
yafowil.common.mimetype_extractor
and use infile
blueprint. [rnix] - Add runtime data path to error message if persist writer not found. [rnix]
- Python 3.7+ support. [rnix, jensens]
- Try to translate plain error message in
error_renderer
in case of nomessage_tag
defined. [jensens] - Add
valid_class
andvalid_class_default
as opposite oferror_class
anderror_class_default
to mark extracted values as valid. [jensens] - Add
button
blueprint. [jensens]
Internals:
- Remove usage of
Nodespaces
behavior. [rnix] - Replace deprecated use of
Nodify
byMappingNode
. [rnix] - Replace deprecated use of
NodeChildValidate
byMappingConstraints
. [rnix] - Replace deprecated use of
Adopt
byMappingAdopt
. [rnix] - Remove
NodeChildValidate
andAdopt
behaviors fromWidgetAttributes
. [rnix] - Add
push_state
andpop_state
to factory. Used inYafowilTestCase
for saving and restoring factory state. This is needed when yafowil tests run in compound with foreign tests to avoid breaking possible custom factory configuration. [rnix]
Breaking changes:
- Remove B/C behavior of
callable_value
function. No longer calls callable without parameters as fallback. Always expect widget and data arguments in signature. [jensens] datatype
converters now always gets passed the raw extracted value only. Prior to removing B/C behavior fromcallable_value
it was possible to use callables taking widget and data as arguments returning the real converter callable. This behavior was never intended to be supported for datatype conversion. [jensens]
- Rename deprecated
WidgetAttributes.allow_non_node_childs
toallow_non_node_children
. [rnix]
- Ensure
select
tag not renders without closing tag if no options. [rnix]
- Refactor yafowil plugin lookup. Improves performance. [rnix, jensens]
- Use
logger.warning
instead of deprecatedlogger.warn
. [rnix] - Add
yafowil.utils.callable_value
. [rnix] - Fix
yafowil.utils.cssid
to return unicode in order to prevent malformed rendering in python 3. [rnix]
- Do not dump string values as JSON data in
yafowil.utils.as_data_attrs
. [rnix] - Rename
yafowil.utils.generic_html5_attrs
toyafowil.utils.as_data_attrs
. [rnix]
- Python 3 Compatibility. [rnix]
- Convert doctests to unittests. [rnix]
- Cache results of
yafowil.utils.get_plugin_names
by namespace. [rnix] - Introduce
yafowil.base.Factory.clear
function. Used in tests to prepareyafowil.base.factory
singleton as required. [rnix] - Create deepcopy of resources in
YafowilResources.__init__
to prevent modification of the original resource definitions. [rnix] - Implement
ExtractionError.__eq__
to make them comparable. [rnix] - Do not access deprecated
Exception.message
any more incommon.error_renderer
. Addmsg
attribute toExtractionError
directly and use this one to keep error translating sane. [rnix] - Add html5 data attribute support to
form_edit_renderer
. [rnix]
- Do not set
persist
property forproxy
blueprint in factory defaults. [rnix] - Translate datatype label used to generate extraction error in
generic_datatype_extractor
if datatype conversion fails. [rnix] - Add
generic_datatype_extractor
toemail
blueprint. Allowed datatypes arestr
andunicode
. [rnix] - Prevent
KeyError
inselect_display_renderer
if multivalued selection and a value no longer available in vocab. [rnix]
- Fix
number_extractor
. ReturnUNSET
if extracted value isUNSET
. Checkmin
andmax
forNone
explicitely to ensure0
bounds get considered. [rnix]
yafowil.common.generic_datatype_extractor
considersemptyvalue
used as default empty value for datatype conversion. [rnix]- Improve
yafowil.common.select_edit_renderer
. Split up code and considerdatatype
andemptyvalue
when dealing with vocabularies. [rnix] yafowil.utils.convert_values_to_datatype
andyafowil.utils.convert_value_to_datatype
considers empty value handling and accept defaultempty_value
keyword argument. [rnix]- Introduce
yafowil.utils.EMPTY_VALUE
marker. [rnix]
- Introduce
hybrid_renderer
andleaf
widget property which gets considered inhybrid_renderer
andhybrid_extractor
. Usehybrid_renderer
indiv
blueprint. [rnix] - Consider data attributes in div renderer. [rnix]
- Fix rendering of empty div renderer. [rnix]
- Explicitely check for
None
andUNSET
before rendering empty value ingeneric_display_renderer
. [rnix]
- No changes.
- Add
yafowil.utils.entry_point
decorator to control order of entry point loading. [rnix, 2016-06-27]
- Fix typo in
setup.py
, fixes #26 [saily, 2016-03-01] - Improve
yafowil.base.WidgetAttributes
to check attribute containment with__iter__
instead of__getitem__
catching aKeyError
. Speeds up whole yafowil test suite (including official addon widgets) by approximately 18 percent. [rnix, 2016-02-07] - Fix
yafowil.utils.cssid
. CSS ID's must not contain special characters which get normalized now and should not contain whitespaces which get replaced by underscore. [rnix, 2015-11-30] - Set
persist
factory default toTrue
forhidden
,proxy
,text
,textarea
,lines
,password
,checkbox
,select
,email
,url
andnumber
blueprints. [rnix, 2015-11-26] - Introduce
yafowil.persistence
,RuntimeData.write
andRuntimeData.has_errors
. [rnix, 2015-11-26] - Add default
class
property tolines
blueprint. [rnix, 2015-11-20] - Use
generic_emptyvalue_extractor
inhidden
,proxy
,text
,textarea
,lines
,select
,file
,password
,email
,url
,search
andnumber
blueprints. [rnix, 2015-11-20] - Use
generic_datatype_extractor
inhidden
,proxy
,text
,lines
,select
andnumber
blueprints. [rnix, 2015-11-19] - Introduce
generic_emptyvalue_extractor
. [rnix, 2015-11-19] - Instroduce
generic_datatype_extractor
. [rnix, 2015-11-18] - Values in
Widget.attrs
can also beUNSET
. [rnix, 2015-11-18] - Change
default
value ofselect
blueprint fromlist()
toUNSET
. This represents both, an empty single valued and an empty multi valued selection. [rnix, 2015-11-18] - Fix URL extractor. Must not raise ExtractionError if not required on empty input. [rnix, 2015-11-18]
- Fix email extractor. Must not raise ExtractionError if not required on empty input. [rnix, 2015-04-11]
- Fix
compound_extractor
case if structural child is structural as well and skip extraction if so. [rnix, 2014-08-29] - Introduce
yafowil.resources.YafowilResources
class which can be used as base for resource publishing specific framework integration code. [rnix, 2014-08-07] - Introduce
configure
entry points. They are executed afterregister
entry points and are supposed to be used for theme configuration (for which it's important that all factory defaults are already set) [rnix, 2014-08-02] - Use
plumbing
decorator instead ofplumber
metaclass. [rnix, 2014-08-01] - Replace
"
with"
for input values. [rnix, 2014-07-16]
- Package not ZIP safe. [chaoflow, 2014-06-10]
- Consider
YAFOWIL_FORCE_DUMMY_TSF
os.environ variable which can be used to force dummy translation string factory when running tests. [rnix, 2014-05-13] - Add translations. [rnix, 2014-04-30]
- Add
yafowil.tsf
module, which is used to create yafowil related translation string factory. [rnix, 2014-04-30] - Re-add
yafowil.utils.Unset
class (import fromnode.utils
) for backward compatibility reasons. [rnix, 2014-04-30] - Return
UNSET
in number extractor if received extracted value is empty string. [rnix, 2014-03-20] - Use
generic_html5_attrs
intag_renderer
. [jensens, 2013-03-06] - Add default CSS class for
checkbox
andtextarea
blueprints. [rnix, 2013-03-06] - Float number input seperator may also be comma. [rnix, 2013-12-02]
- Don't generate an id attribute for structural widgets. Fixes #6, where the same id for all structural elements in a form was generated. [thet, 2013-05-27]
- Blueprints accept
data
property for generic HTML5 data attributes. [rnix, 2013-04-11] - Introduce
yafowil.utils.generic_html5_attrs
helper function. [rnix, 2013-04-11] - Introduce
with_label
property forcheckbox
blueprint. Useful for cross browser compatible checkbox CSS. [rnix, 2013-03-29] - Use json.dumps for data atrribute values to convert Python types to JSON. Enclose data-attribute values in single quotes to meet the JSON requirements. Convert camelCase data attribute names into camel-case. Since jQuery 1.6 they are automatically converted back to camelCase after calling .data(). [thet]
- Import
node.utils.UNSET
inyafowil.utils
instead of providing own unset marker class and instance. [rnix, 2013-02-10] - Add helper function for creating a data-attributes dictionary from a list of attribute-keys which can be passed to tag-renderer. [thet, 2012-12-05]
- Allow passing of a custom html attributes dictionary to textarea_renderer, select_edit_renderer and input_generic_renderer. A dictionary is used instead of passing them as function parameters to avoid namespace conflicts. [thet]
- Consider
maxlength
ininput_attributes_common
. [rnix, 2012-11-03]
- Use
attr_value
wherever possible to lookup attribute values. [rnix, 2012-10-25] - Introduce
attr_value
utility. [rnix, 2012-10-25] - Textarea can have
title
attribute. [rnix, 2012-10-25]
- Fix default help text. [rnix, 2012-10-10]
- fixed bug in factory returned wrong renderes on call of display_renderers [jensens, 2012-10-09]
- renamed plans to macros. [rnix, jensens]
- custom chains can be passed as dictionary to the factory. [rnix, 2012-09-28]
- introduce
display_proxy
property for modedisplay
. [rnix, 2012-08-08] - add generic
tag
blueprint. [rnix, 2012-08-08] - adopt to
plumber
1.2. [rnix, 2012-07-29] - adopt to
node
0.9.8. [rnix, 2012-07-29] - pep8ify [jensens, 2012-06-08]
- make TBSupplement compatible with both:
`zExceptions`
and`zope.exceptions`
. Major change: html output is no longer default and the kwarg of getInfo is now`as_html`
(was`html`
). Also added blueprints to the supplement as info to make it easier to identify the form part. [jensens, 2012-06-07]
- Check with 'if not value' instead of 'if value is None' in
generic_display_renderer
. [thet, 2012-05-23] - Add a title attribute to the label blueprint. [thet, 2012-05-02]
- Fix file extractor. [rnix, 2012-04-21]
- Avoid rendering of value attribute in file blueprint. [rnix, 2012-04-21]
- Label property can be callable. [rnix, 2012-02-19]
- Loading resources is done more explicit and in a pluggable way using entry-points. Thus yafowil extensions such as widgets can define an entry point. [jensens, 2012-02-14]
- Add size attribute for
select
edit renderer. [jensens, 2012-01-20] - fix number extractor [jensens, 2012-01-20]
- Add default css class for
select
blueprint. [rnix, 2011-12-18] - Register
number
blueprint display renderer. [rnix, 2011-12-18] - Consider
expression
insubmit
blueprint renderer. [rnix, 2011-12-18] checked
attribute can be set explicitly incheckbox
blueprint. [rnix, 2011-11-21]- Fix Bug in
yafowil.common.select_edit_renderer
. Crashed with empty vocabularies. [rnix, 2011-11-16] - Add
lines
blueprint. Renders a textarea and extracts lines as list. [rnix, 2011-11-11] - Added concept of plans to the factory, which is a named set of blueprints.
Plans are registered to the factory and can be addressed with the
#
sign. [jensens, 2011-09-29] td
blueprint can be used as compound or part of leaf widget now. [rnix, 2011-09-28]- Accept value property on compounds. [rnix, 2011-09-27]
- Make
data.extracted
available asodict
with values of children on compounds. [rnix, 2011-09-27] - Pass
blueprints
andcustom
arguments to Widget constructor in factory for debugging and duplication purposes. [rnix, 2011-09-26] - Rename
yafowil.base.Widget._properties
toyafowil.base.Widget.properties
. [rnix, 2011-09-26] - Add
div
blueprint. Renders within '<div>' element. Can be used for compound and leaf widgets. [rnix, 2011-09-23]
- naming makes a difference between blueprints and widgets [jensens, 2011-09-20]
- fix traceback test [rnix, 2011-09-15]
- traceback supplement now with html support. test for html part is missing for now. [jensens, 2011-09-01]
- traceback supplement is now better formatted. [jensens, 2011-08-30]
- Bugfix: mode
display
did eat up all previous renderings. This made error widget fail in display mode to show the value. Fixed: empty_display_renderer proxies now all previous rendered. [jensens, 2011-08-11]
- Extend select widget for better UI control of selections and multi selections [rnix, 2011-08-05]
- Plumb
node.parts.Order
to widget node [rnix, 2011-07-28] - define label and field renderer as display renderer as well [rnix, 2011-07-25]
- deprecate use of mode widget [rnix, 2011-07-08]
- now mode is a central element: each Widget instance has a mode now: edit, display or skip. edit is default and works as usal. Display renders the new display_renderer chain. Skip just renders an empty Unicode string. [jensens, 2011-07-07]
- clean up html5 handling, we believe in novalidate now... [jensens, 2011-06-11]
- add
disabled
attribute for select widget. [jensens, 2011-06-01] - add
novalidate
property for form [rnix, 2011-05-23] - return empty string in mode renderer if value is UNSET [rnix, 2011-05-23]
- test coverage [rnix, 2011-05-07]
- add widget value validation checking 'multivalued' property against 'value' length. [rnix, 2011-05-07]
- remove outdated
_value
. userfetch_value
instead. [rnix, 2011-05-07] - add optional
for
property for label widget. [rnix, 2011-04-23] - select extractor - fix required behavior [rnix, 2011-04-19]
- compound renderer - consider 'structural' property on widget node [rnix, 2011-04-19]
- number extractor - return val if UNSET [rnix, 2011-04-14]
- textarea renderer - check value against None and render empty string instead [rnix, 2011-04-14]
- Add
html5type
property for email widget [rnix, 2011-03-16]
- Add
html5required
property [rnix, 2011-03-16]
- adopt to node 0.9 [rnix]
- documentation [jensens, rnix]
- made it work [jensens, rnix, et al, 2010-12-27]