lp:anewt

Created by wouter bolsterlee and last modified

The main development branch, maintained by the project maintainer.

Get this branch:
bzr branch lp:anewt
Only wouter bolsterlee can upload to this branch. If you are wouter bolsterlee please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
wouter bolsterlee
Project:
Anewt
Status:
Development

Recent revisions

1824. By wouter bolsterlee

[page] Implement AnewtPage::add_conditional_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.

1820. By wouter bolsterlee

[xhtml] Add AnewtXHTML{Html,Head,Body} elements

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.

1818. By wouter bolsterlee

[database] Fix SQLite tests

1817. By wouter bolsterlee

[form] Fix string casts for multiple select choice controls

The value for AnewtFormControlChoice 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

AnewtFormControlChoice 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)
This branch contains Public information 
Everyone can see this information.