lp://staging/anewt
The main development branch, maintained by the project maintainer.
- Get this branch:
- bzr branch lp://staging/anewt
Branch merges
Branch information
Recent revisions
- 1824. By wouter bolsterlee
-
[page] Implement AnewtPage:
:add_conditiona l_stylesheet( ) Add a gross hack to support conditional stylesheets based on
an abuse of XML comment syntax and the IE HTML parser. See
the docs for more information. - 1823. By wouter bolsterlee
-
[page] Don't make append() depend on the 'blocks' property
AnewtPage->append() shouldn't depend on the 'blocks'
property to decide which block to append to. Instead, use
the 'default-block' property. This allows custom pages that
override build_body() to still use blocks as before, but
without using the default "list of <div> elements in a
wrapper" implementation that AnewtPage provides. - 1822. By wouter bolsterlee
-
[page] Refactor HEAD/BODY building into own methods
This is cleaner, but more importantly allows AnewtPage
descendants to override build_body() for complete
control over the way a page is assembled from its blocks. - 1821. By wouter bolsterlee
-
[page] Use XHTML nodes for top level structure
...instead of standard AnewtXMLDomElement instances.
- 1819. By wouter bolsterlee
-
[page] Add support for a custom wrapper div element
AnewtPage-
>$wrapper_ div can now be set to a custom DOM node.
If not null, this will be used as the wrapper around all
blocks on the page. If null, a new <div> element will be
used; this was the old behaviour and still is the default.Also remove an unnecessary is_null() check for a line that
is only reached if $name is null. - 1817. By wouter bolsterlee
-
[form] Fix string casts for multiple select choice controls
The value for AnewtFormContro
lChoice with the 'multiple'
flag set is an array, not a string. The previous change
casted all values to string, while for multiple select
choice controls this should be done for each value instead. - 1816. By wouter bolsterlee
-
[form] Cast choice control values to strings when filling
Make sure choice controls are always filled with string
values. Before this change AnewtFormControlChoice
incorrectly enabled an option with a "" value when the form
was filled with the integer 0 value (even if the choice
control also contained an option with a "0" value). This is
especially problematic in combination with the recently
introduced null-value support. - 1815. By wouter bolsterlee
-
[form] Add null-value support to choice control
AnewtFormContro
lChoice has a new 'null-value' property
(defaults to the empty string). For single-select controls,
this will be used to determine whether the control has a
null value, and can be used for e.g. a "I don't know"
option in a drop down list.The validation has some simple checks for this, and
get('value') will return null if the special value is
encountered.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 with rich root (needs bzr 1.0)