lp://staging/~sander-sinaasappel/anewt/anewt.new.cxs
This is the ControlXS branch of Anewt using the new API changes. This branch focusses primarily on the AutoRecord and Forms modules, but changes in other modules are possible.
- Get this branch:
- bzr branch lp://staging/~sander-sinaasappel/anewt/anewt.new.cxs
Branch merges
Branch information
- Location:
- http://mneme.hostingxs.nl/~sander/anewt.new.cxs
- Last mirrored:
- Next mirror:
- Disabled
Updating branch...
Launchpad is processing new changes to this branch which will be available in a few minutes. Reload to see the changes.
Recent revisions
- 1491. By Sander van Schouwenburg (Sandworm)
-
[form] Merged subform support from a private project.
See also bug #527946
- 1490. By Sander van Schouwenburg (Sandworm)
-
[autorecord] Remove AutoRecord:
:_db_skip_ on_insert( ) All values will now be skipped if they are not set. The only situation this will break if the database default is not NULL, but you do expect it to be set NULL by not supplying the value.
(from anewt.new.svn:101)
- 1489. By Sander van Schouwenburg (Sandworm)
-
[autorecord] Using a safer method to insert values
AutoRecord constructed a prepared query with pre-processed values for the
columns using sprintf(). This was a problem when the column values contained
values like 'foo ?bar? baz', because they were seen as template placeholders.This fix uses ?raw? template holders instead, so that this problem is avoided.
(If you don't understand this message, see the diff, if you don't understand
the diff, take it from me that this is safer :P)(from anewt.new.svn:100)
- 1488. By Sander van Schouwenburg (Sandworm)
-
[form] Added ability to render a specific choice control form option
This option can be rendered using AnewtFormContro
lChoice: :build_ option( $option_ name).
This will only work when the options have unique names (otherwise the LAST
option with the name will be rendered). This is useful for custom renderers
where the checkboxes or radio buttons are spread out over the form.As a side effect, AnewtFormContro
lChoice: :get_composite( ) now works properly
for special cases.(from anewt.new.svn:97)
- 1487. By Sander van Schouwenburg (Sandworm)
-
[database] Fix debugging for delayed connections
PreparedQuery takes over debug settings from Database, but with a delayed
connection the debug settings weren't initialized before the first execute.
Therefore the first query isn't logged.(from anewt.new.svn:96)
- 1486. By Sander van Schouwenburg (Sandworm)
-
[form] Test whether an option is selected on AnewtFormContro
lChoice AnewtFormContro
lChoice: :is_selected( $value) returns whether option $value is
selected.(from anewt.new.svn:95)
- 1485. By Sander van Schouwenburg (Sandworm)
-
[form] Moved assertion to AnewtFormOption
Moved the string assertion from AnewtFormContro
lChoice: :add_option_ value_label
to AnewtFormOption::__construct. (from anewt.new.svn:94)
- 1484. By Sander van Schouwenburg (Sandworm)
-
[form] AnewtFormFieldset now also supports 'extra_attributes' attribute.
(from anewt.new.svn:93)
- 1483. By Sander van Schouwenburg (Sandworm)
-
[Core] Corrected the default ssl port for Request:
:canonical_ base_url( ) (from anewt.new.svn:92)
- 1482. By Sander van Schouwenburg (Sandworm)
-
[database] Force opening a new PostgreSQL connection on instantiation
The default of pg_connect() is to use the same open connection if the
connection string is exactly the same. However, since explicitly instantiating
a new Database instance usually means you want a new connection, i've added a
flag to always create a new connection.The singleton-ness of the Database class pretty much ensures there are no
uncessesary calls to pg_connect() anyway.(from anewt.new.svn:91)
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 with rich root (needs bzr 1.0)