[svn-components] 7363 - /LICENSE

2008-02-14 Thread Derick Rethans
Author: dr
Date: Thu Feb 14 10:04:04 2008
New Revision: 7363

Log:
- Mark that it is New BSD.

Modified:
LICENSE

Modified: LICENSE
==
--- LICENSE [iso-8859-1] (original)
+++ LICENSE [iso-8859-1] Thu Feb 14 10:04:04 2008
@@ -1,5 +1,8 @@
 eZ Components Licence
 =
+
+New BSD Licence
+---
 
 Copyright (c) 2005-2008, eZ Systems A.S.
 All rights reserved.


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7365 - /trunk/Workflow/src/execution/plugin/visualizer.php

2008-02-14 Thread Sebastian Bergmann
Author: sb
Date: Thu Feb 14 11:03:11 2008
New Revision: 7365

Log:
- Make inclusion of workflow variables optional.

Modified:
trunk/Workflow/src/execution/plugin/visualizer.php

Modified: trunk/Workflow/src/execution/plugin/visualizer.php
==
--- trunk/Workflow/src/execution/plugin/visualizer.php [iso-8859-1] (original)
+++ trunk/Workflow/src/execution/plugin/visualizer.php [iso-8859-1] Thu Feb 14 
11:03:11 2008
@@ -31,13 +31,21 @@
 protected $fileCounter = 0;
 
 /**
+ * Whether or not to include workflow variables.
+ *
+ * @var integer
+ */
+protected $includeVariables = true;
+
+/**
  * Constructor.
  *
- * @param  string $directory
+ * @param  string $directory The directory the DOT files are written to
+ * @param  bool   $includeVariables Whether or not to include workflow 
variables
  * @throws ezcBaseFileNotFoundException when the directory does not exist
  * @throws ezcBaseFilePermissionException when the directory is not 
writable
  */
-public function __construct( $directory )
+public function __construct( $directory, $includeVariables = true )
 {
 if ( !is_dir( $directory ) )
 {
@@ -49,7 +57,8 @@
 throw new ezcBaseFilePermissionException( $directory, 
ezcBaseFileException::WRITE );
 }
 
-$this-directory = $directory;
+$this-directory= $directory;
+$this-includeVariables = $includeVariables;
 }
 
 /**
@@ -88,7 +97,16 @@
 $activatedNodes[] = $node-getId();
 }
 
-$visitor = new ezcWorkflowVisitorVisualization( $activatedNodes, 
$execution-getVariables() );
+if ( $this-includeVariables )
+{
+$variables = $execution-getVariables();
+}
+else
+{
+$variables = array();
+}
+
+$visitor = new ezcWorkflowVisitorVisualization( $activatedNodes, 
$variables );
 $execution-workflow-accept( $visitor );
 
 file_put_contents(


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7366 - /trunk/Workflow/ChangeLog

2008-02-14 Thread Sebastian Bergmann
Author: sb
Date: Thu Feb 14 11:03:17 2008
New Revision: 7366

Log:
- Update ChangeLog.

Modified:
trunk/Workflow/ChangeLog

Modified: trunk/Workflow/ChangeLog
==
--- trunk/Workflow/ChangeLog [iso-8859-1] (original)
+++ trunk/Workflow/ChangeLog [iso-8859-1] Thu Feb 14 11:03:17 2008
@@ -6,7 +6,13 @@
 - Implemented a plugin system that allows plugin developers to hook into
   various extension points in the workflow execution engine.
 
-- The visualization visitor can now highlight a set of nodes.
+- The visualization visitor can now show the current state of a workflow in
+  execution. This includes the highlighting of activated nodes as well as the
+  contents of the workflow variables.
+
+- The new execution visualizer plugin (ezcWorkflowExecutionVisualizerPlugin)
+  uses the visualization visitor to create visualizations of each step of a
+  workflow execution.
 
 1.1 - Monday 17 December 2007
 ^^


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7369 - /experimental/MvcTools/design/requirements.txt

2008-02-14 Thread Derick Rethans
Author: dr
Date: Thu Feb 14 13:42:58 2008
New Revision: 7369

Log:
- Fixed typoes and set properties.

Modified:
experimental/MvcTools/design/requirements.txt   (contents, props changed)

Modified: experimental/MvcTools/design/requirements.txt
==
--- experimental/MvcTools/design/requirements.txt [iso-8859-1] (original)
+++ experimental/MvcTools/design/requirements.txt [iso-8859-1] Thu Feb 14 
13:42:58 2008
@@ -10,7 +10,7 @@
 The scope of this document is to describe the requirements for a component
 providing classes to implement a MVC_ architecture for a web application. 
 This document does not describe the design of the named component, but only
-summarizes the requirements for it as discussed on the developer mailinglist.
+summarizes the requirements for it as discussed on the developer mailing list.
 Where suitable, design related topics will be touched, but a dedicated design
 document will follow later, defining APIs, classes and the architectural
 structure of the component.
@@ -73,13 +73,13 @@
 protocols and formats (for example HTTP-GET, HTTP-POST, SOAP for the input
 part and HTML, PDF, ReST-webservices for the output part). Therefore,
 protocols input and output formats should be abstracted into dedicated
-objects, which are not specific to a certain protocoll or format.
+objects, which are not specific to a certain protocol or format.
 
 Controllers will only receive these abstracted data objects without
 knowledge of the used format/protocol, to allow the re-use of 1 controller
 with several different input/output sources.
 
-A benefic side-effect relates to controller-testing: Creating input and
+A beneficial side-effect relates to controller-testing: Creating input and
 output mocks and fixtures allows straight-forward TDD.
 
 Summary
@@ -109,7 +109,7 @@
 Those two layers should be able to use any number of controllers per-request.
 They handle the client-protocol, so that the controller doesn't have work on
 raw input data (e.g. GET/POST/...) and does not have to generate any specific
-output format (e.g. HTML, XML, plain text,...) or anythingng that is
+output format (e.g. HTML, XML, plain text,...) or anything that is
 protocol-specific. The two layers abstract I/O from the controller as
 described in the specific section.
 
@@ -147,7 +147,7 @@
 
 Routers must also provide a mechanism to create URLs from input-objects, that
 may be used to access a certain controller and action with a certain
-view-manager and defined parameters. This method must be accesable from the
+view-manager and defined parameters. This method must be accessible from the
 controllers and the view-manager.
 
 Summary
@@ -228,7 +228,7 @@
 Those errors cannot be handled by the controller, because they happen
 outside of it. A configurable default controller will be called for all
 error messages, so the application developer may decide to send
-messages, show or log the occured error. An error during the execution
+messages, show or log the occurred error. An error during the execution
 of this default controller will cause a 500 - Internal server error.
 
 As none of the given errors is meant to be displayed to the user of the
@@ -258,7 +258,7 @@
 
 Testing a controller is the key to quality development. Testing manually each
 controller can lead to disasters: It's boring to do and therefore humans
-cannot cover all controllers manually after each bugfix.  The solution is
+cannot cover all controllers manually after each bug fix. The solution is
 test-automation in PHP (e.g. using PHPUnit).
 
 Controllers run with a single argument: An abstract input object. 
@@ -295,7 +295,7 @@
 ==
 
 HTTP-GET should not be allowed to invoke changes on the model because this
-would cause a violation of HTTP standarts.
+would cause a violation of HTTP standards.
 
 We should keep testing capabilities for the extensions to this component and
 the applications build upon it in mind during the design and implementation
@@ -374,7 +374,7 @@
   action and abstracts the request/response protocol.
 
 Fixture_
-  Fixtures are objects that are set to an arbitary state for testing
+  Fixtures are objects that are set to an arbitrary state for testing
   purposes.
 
 Abstraction_

Propchange: experimental/MvcTools/design/requirements.txt
--
svn:keywords = Author Date Revision


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7370 - /experimental/Search/design/requirements.txt

2008-02-14 Thread Derick Rethans
Author: dr
Date: Thu Feb 14 13:47:43 2008
New Revision: 7370

Log:
- Fixed typoes.

Modified:
experimental/Search/design/requirements.txt

Modified: experimental/Search/design/requirements.txt
==
--- experimental/Search/design/requirements.txt [iso-8859-1] (original)
+++ experimental/Search/design/requirements.txt [iso-8859-1] Thu Feb 14 
13:47:43 2008
@@ -11,9 +11,9 @@
 Description
 ---
 
-The Search component provides an interface to index and query documents
-with different search engine backends. Searching is becoming an integral part 
of web
-sites, this is becoming an important feature.
+The Search component provides an interface to index and query documents with
+different search engine backends. Searching is becoming an integral part of
+web sites, this is becoming an important feature.
 
 
 Requirements
@@ -38,18 +38,20 @@
 Indexing
 
 
-Indexing should be done by sending the documents to an indexer. Indexing 
should support 
-both blocking, and non-blocking mode, depending on what the search engine 
backend supports.
-The search component must support XML for backend communication.
+Indexing should be done by sending the documents to an indexer. Indexing
+should support both blocking, and non-blocking mode, depending on what the
+search engine backend supports.  The search component must support XML for
+backend communication.
 
 Searching
 -
 
-Searching documents is primeraly term based. One or multiple terms are 
provided, and the
-search result list contains only documents containing those term.
+Searching documents is primarily term based. One or multiple terms are
+provided, and the search result list contains only documents containing those
+term.
 
-Facets[1] should be supported, and the available facets should be the document 
fields, and
-facets queries within the document fields. 
+Facets_ should be supported, and the available facets should be the document
+fields, and facets queries within the document fields. 
 
 General
 ---
@@ -73,4 +75,4 @@
 with UTF-8 strings, just like all the other components.
 
 
-[1] - http://www.searchtools.com/info/faceted-metadata.html
+.. _facets: http://www.searchtools.com/info/faceted-metadata.html


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7371 - in /experimental/Document/tests/files/rst/input: custom_roles.txt data/ errors.txt header_footer.txt latex.txt latex2e.txt list_table.txt nonalphanumeric.txt standard.txt table

2008-02-14 Thread Kore Nordmann
Author: kn
Date: Thu Feb 14 13:54:09 2008
New Revision: 7371

Log:
- Moved all docutils tests into one directory

Added:
experimental/Document/tests/files/rst/input/custom_roles.txt   (with props)
experimental/Document/tests/files/rst/input/errors.txt   (with props)
experimental/Document/tests/files/rst/input/header_footer.txt   (with props)
experimental/Document/tests/files/rst/input/latex.txt   (with props)
experimental/Document/tests/files/rst/input/latex2e.txt   (with props)
experimental/Document/tests/files/rst/input/list_table.txt   (with props)
experimental/Document/tests/files/rst/input/nonalphanumeric.txt   (with 
props)
experimental/Document/tests/files/rst/input/standard.txt   (with props)
experimental/Document/tests/files/rst/input/table_colspan.txt   (with props)
experimental/Document/tests/files/rst/input/table_complex.txt   (with props)
experimental/Document/tests/files/rst/input/table_rowspan.txt   (with props)
experimental/Document/tests/files/rst/input/unicode.txt   (with props)
Removed:
experimental/Document/tests/files/rst/input/data/

Added: experimental/Document/tests/files/rst/input/custom_roles.txt
==
--- experimental/Document/tests/files/rst/input/custom_roles.txt (added)
+++ experimental/Document/tests/files/rst/input/custom_roles.txt [iso-8859-1] 
Thu Feb 14 13:54:09 2008
@@ -1,0 +1,29 @@
+Custom Roles
+
+
+* A role based on an existing role.
+
+  .. role:: custom(literal)
+
+  :custom:`one` :custom:`two` :custom:`three`
+
+* A new role.
+
+  .. role:: customnew
+
+  :customnew:`one two three`
+
+* A role with class attribute.
+
+  .. role:: customclass
+ :class: special
+
+  :customclass:`interpreted text`
+   
+* A role with class attribute.
+
+  .. role:: customx
+ :class: very special 
+
+  :customx:`interpreted text`
+   

Propchange: experimental/Document/tests/files/rst/input/custom_roles.txt
--
svn:eol-style = native

Added: experimental/Document/tests/files/rst/input/errors.txt
==
--- experimental/Document/tests/files/rst/input/errors.txt (added)
+++ experimental/Document/tests/files/rst/input/errors.txt [iso-8859-1] Thu Feb 
14 13:54:09 2008
@@ -1,0 +1,9 @@
+Error Handling
+==
+
+Any errors caught during processing will generate system messages.
+
+There should be five messages in the following, auto-generated
+section, Docutils System Messages:
+
+.. section should be added by Docutils automatically

Propchange: experimental/Document/tests/files/rst/input/errors.txt
--
svn:eol-style = native

Added: experimental/Document/tests/files/rst/input/header_footer.txt
==
--- experimental/Document/tests/files/rst/input/header_footer.txt (added)
+++ experimental/Document/tests/files/rst/input/header_footer.txt [iso-8859-1] 
Thu Feb 14 13:54:09 2008
@@ -1,0 +1,2 @@
+.. header:: Document header
+.. footer:: Document footer

Propchange: experimental/Document/tests/files/rst/input/header_footer.txt
--
svn:eol-style = native

Added: experimental/Document/tests/files/rst/input/latex.txt
==
--- experimental/Document/tests/files/rst/input/latex.txt (added)
+++ experimental/Document/tests/files/rst/input/latex.txt [iso-8859-1] Thu Feb 
14 13:54:09 2008
@@ -1,0 +1,201 @@
+Some Tests for the LaTeX Writer
+===
+
+These tests have been written to exercise some unusual combinations of
+syntax elements which may cause trouble for the LaTeX writer but do
+not need to be tested with other writers (e.g. the HTML writer).
+
+This file is not yet used by any automated test.  It is currently only
+used to control the visual appearance of the output.
+
+
+Block Quotes
+
+
+This block quote comes directly after the section heading and is
+followed by a paragraph.
+
+This is the second paragraph of the block quote and it contains
+some more text filling up some space which would otherwise be
+empty.
+
+-- Attribution
+
+This is a paragraph.
+
+This block quote does not have an attribution.
+
+This is another paragraph.
+
+Another block quote at the end of the section.
+
+
+More Block Quotes
+-
+
+Block quote followed by a transition.
+
+--
+
+Another block quote.
+
+
+Sidebars
+
+
+This paragraph precedes the sidebar.  This is some text.  This is some
+text.  This is some text.  This is some text.  This is some text.
+This is some text.  This is some text.  This is some text.

[svn-components] 7372 - in /experimental/Document/tests/files/rst: docutils/ docutils/data/ input/

2008-02-14 Thread Kore Nordmann
Author: kn
Date: Thu Feb 14 13:55:29 2008
New Revision: 7372

Log:
- Renamed directory with docutils test files

Added:
experimental/Document/tests/files/rst/docutils/
  - copied from r7368, experimental/Document/tests/files/rst/input/
experimental/Document/tests/files/rst/docutils/compact_lists.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/compact_lists.txt
experimental/Document/tests/files/rst/docutils/custom_roles.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/custom_roles.txt
experimental/Document/tests/files/rst/docutils/dangerous.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/dangerous.txt
experimental/Document/tests/files/rst/docutils/errors.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/errors.txt
experimental/Document/tests/files/rst/docutils/field_list.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/field_list.txt
experimental/Document/tests/files/rst/docutils/header_footer.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/header_footer.txt
experimental/Document/tests/files/rst/docutils/latex.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/latex.txt
experimental/Document/tests/files/rst/docutils/latex2e.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/latex2e.txt
experimental/Document/tests/files/rst/docutils/latex_docinfo.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/latex_docinfo.txt
experimental/Document/tests/files/rst/docutils/list_table.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/list_table.txt
experimental/Document/tests/files/rst/docutils/nonalphanumeric.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/nonalphanumeric.txt
experimental/Document/tests/files/rst/docutils/pep_html.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/pep_html.txt
experimental/Document/tests/files/rst/docutils/simple.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/simple.txt
experimental/Document/tests/files/rst/docutils/standalone_rst_html4css1.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standalone_rst_html4css1.txt
experimental/Document/tests/files/rst/docutils/standalone_rst_latex.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standalone_rst_latex.txt
experimental/Document/tests/files/rst/docutils/standalone_rst_newlatex.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standalone_rst_newlatex.txt
experimental/Document/tests/files/rst/docutils/standalone_rst_pseudoxml.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standalone_rst_pseudoxml.txt
experimental/Document/tests/files/rst/docutils/standalone_rst_s5_html.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standalone_rst_s5_html.txt
experimental/Document/tests/files/rst/docutils/standard.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/standard.txt
experimental/Document/tests/files/rst/docutils/table_colspan.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/table_colspan.txt
experimental/Document/tests/files/rst/docutils/table_complex.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/table_complex.txt
experimental/Document/tests/files/rst/docutils/table_rowspan.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/table_rowspan.txt
experimental/Document/tests/files/rst/docutils/unicode.txt
  - copied unchanged from r7371, 
experimental/Document/tests/files/rst/input/unicode.txt
Removed:
experimental/Document/tests/files/rst/docutils/data/
experimental/Document/tests/files/rst/input/

-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7373 - in /experimental/Document: src/document/rst/ tests/ tests/files/rst/tokenizer/

2008-02-14 Thread Kore Nordmann
Author: kn
Date: Thu Feb 14 14:07:17 2008
New Revision: 7373

Log:
- Added end of file token

Modified:
experimental/Document/src/document/rst/token.php
experimental/Document/src/document/rst/tokenizer.php
experimental/Document/tests/document_rst_tokenizer_tests.php
experimental/Document/tests/files/rst/tokenizer/additional_references.tokens
experimental/Document/tests/files/rst/tokenizer/blockquote.tokens

experimental/Document/tests/files/rst/tokenizer/blockquote_attribution.tokens
experimental/Document/tests/files/rst/tokenizer/blockquote_list.tokens
experimental/Document/tests/files/rst/tokenizer/blockquote_multiple.tokens

experimental/Document/tests/files/rst/tokenizer/blockquote_multiple_attribution.tokens
experimental/Document/tests/files/rst/tokenizer/bullet_list.tokens
experimental/Document/tests/files/rst/tokenizer/bullet_list_deep.tokens
experimental/Document/tests/files/rst/tokenizer/bullet_list_incorrect.tokens
experimental/Document/tests/files/rst/tokenizer/citation.tokens
experimental/Document/tests/files/rst/tokenizer/citation_full.tokens
experimental/Document/tests/files/rst/tokenizer/colons.tokens
experimental/Document/tests/files/rst/tokenizer/comment.tokens
experimental/Document/tests/files/rst/tokenizer/comments_complex.tokens
experimental/Document/tests/files/rst/tokenizer/deep_block_quote.tokens
experimental/Document/tests/files/rst/tokenizer/definition_list.tokens

experimental/Document/tests/files/rst/tokenizer/definition_list_alignements.tokens

experimental/Document/tests/files/rst/tokenizer/definition_list_classifier.tokens
experimental/Document/tests/files/rst/tokenizer/directive.tokens
experimental/Document/tests/files/rst/tokenizer/directives_complex.tokens
experimental/Document/tests/files/rst/tokenizer/embedded_uris.tokens
experimental/Document/tests/files/rst/tokenizer/empty.tokens
experimental/Document/tests/files/rst/tokenizer/enumerated_list.tokens
experimental/Document/tests/files/rst/tokenizer/enumerated_list_deep.tokens
experimental/Document/tests/files/rst/tokenizer/enumerated_list_not.tokens
experimental/Document/tests/files/rst/tokenizer/escaping.tokens
experimental/Document/tests/files/rst/tokenizer/field_list.tokens
experimental/Document/tests/files/rst/tokenizer/field_list_indented.tokens
experimental/Document/tests/files/rst/tokenizer/footnote.tokens
experimental/Document/tests/files/rst/tokenizer/footnote_complex.tokens
experimental/Document/tests/files/rst/tokenizer/footnotes.tokens
experimental/Document/tests/files/rst/tokenizer/footnotes_asterisk.tokens
experimental/Document/tests/files/rst/tokenizer/footnotes_auto.tokens
experimental/Document/tests/files/rst/tokenizer/grid_tables.tokens
experimental/Document/tests/files/rst/tokenizer/grid_tables_complex.tokens
experimental/Document/tests/files/rst/tokenizer/hyperlink_targets.tokens

experimental/Document/tests/files/rst/tokenizer/hyperlink_targets_complex.tokens
experimental/Document/tests/files/rst/tokenizer/hyperlinks.tokens
experimental/Document/tests/files/rst/tokenizer/inline_formatting.tokens

experimental/Document/tests/files/rst/tokenizer/inline_internal_targets.tokens
experimental/Document/tests/files/rst/tokenizer/line_block.tokens
experimental/Document/tests/files/rst/tokenizer/line_block_indented.tokens
experimental/Document/tests/files/rst/tokenizer/list_quote_paragraph.tokens
experimental/Document/tests/files/rst/tokenizer/literal_block.tokens
experimental/Document/tests/files/rst/tokenizer/literal_block_extra.tokens

experimental/Document/tests/files/rst/tokenizer/literal_block_notations.tokens
experimental/Document/tests/files/rst/tokenizer/literal_block_quoted.tokens
experimental/Document/tests/files/rst/tokenizer/named_reference.tokens
experimental/Document/tests/files/rst/tokenizer/non_aligned_text.tokens
experimental/Document/tests/files/rst/tokenizer/option_list.tokens
experimental/Document/tests/files/rst/tokenizer/option_list_complex.tokens
experimental/Document/tests/files/rst/tokenizer/paragraph.tokens
experimental/Document/tests/files/rst/tokenizer/simple_table.tokens
experimental/Document/tests/files/rst/tokenizer/simple_tables_complex.tokens
experimental/Document/tests/files/rst/tokenizer/substitution.tokens
experimental/Document/tests/files/rst/tokenizer/substitutions_complex.tokens
experimental/Document/tests/files/rst/tokenizer/tabulators.tokens
experimental/Document/tests/files/rst/tokenizer/titles.tokens
experimental/Document/tests/files/rst/tokenizer/transistion.tokens

Modified: experimental/Document/src/document/rst/token.php
==
--- experimental/Document/src/document/rst/token.php [iso-8859-1] (original)
+++ 

[svn-components] 7374 - /experimental/MvcTools/design/design.txt

2008-02-14 Thread James Pic
Author: jpic
Date: Thu Feb 14 14:57:26 2008
New Revision: 7374

Log:
Details about I/O objects and the controller interface

Modified:
experimental/MvcTools/design/design.txt

Modified: experimental/MvcTools/design/design.txt
==
--- experimental/MvcTools/design/design.txt [iso-8859-1] (original)
+++ experimental/MvcTools/design/design.txt [iso-8859-1] Thu Feb 14 14:57:26 
2008
@@ -64,11 +64,21 @@
 This object encapsulates the client-request, abstracting the request
 protocol.
 
+It's important to separate the object's properties from the request variables
+in the class facade.
+This class implements Iterator, ArrayAccess and Countable for request-values,
+and public properties will be used for the object's variables.
+
 ezcMvcOutput
 
 
 This object encapsulates the controller result, abstracting the response
 protocol.
+
+It's important to separate the object's properties from the request variables
+in the class facade.
+This class implements Iterator, ArrayAccess and Countable for request-values,
+and public properties will be used for the object's variables.
 
 ezcMvcRouter
 
@@ -88,6 +98,18 @@
 
 This interface has to be implemented by classes that handle rendering one
 ezcMvcOutput object into one formated (part of the) response string.
+
+ezcMvcController
+
+
+This interface should be implemented by user's controllers.
+Assuming that action-selection should be done within the controller itself :
+it should have one public method : run( $input, [ $output = null ] ).
+
+The controller should be able to use the passed output-object instead of
+creating a new one.
+Using an existing output-object might require that the output-object implement
+controller-level namespacing : this should not be supported.
 
 Possible system conceptions
 ===


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7375 - in /experimental/Document: design/ src/ src/document/rst/ src/document/rst/nodes/ tests/ tests/files/rst/parser/

2008-02-14 Thread Kore Nordmann
Author: kn
Date: Thu Feb 14 15:45:25 2008
New Revision: 7375

Log:
- Redefined parser structure
- Successfully parse empty documents

Added:
experimental/Document/tests/document_rst_parser_tests.php   (with props)
experimental/Document/tests/files/rst/parser/
experimental/Document/tests/files/rst/parser/SOURCE
experimental/Document/tests/files/rst/parser/empty.rst
experimental/Document/tests/files/rst/parser/empty.txt   (with props)
experimental/Document/tests/files/rst/parser/titles.txt   (with props)
Modified:
experimental/Document/design/class_diagram.png
experimental/Document/src/document/rst/node.php
experimental/Document/src/document/rst/nodes/document.php
experimental/Document/src/document/rst/parser.php
experimental/Document/src/document_autoload.php
experimental/Document/tests/suite.php

Modified: experimental/Document/design/class_diagram.png
==
Binary files - no diff available.

Modified: experimental/Document/src/document/rst/node.php
==
--- experimental/Document/src/document/rst/node.php [iso-8859-1] (original)
+++ experimental/Document/src/document/rst/node.php [iso-8859-1] Thu Feb 14 
15:45:25 2008
@@ -16,7 +16,7 @@
  * @copyright Copyright (C) 2005-2008 eZ systems as. All rights reserved.
  * @license http://ez.no/licenses/new_bsd New BSD License
  */
-class ezcDocumentRstNode extends ezcBaseStruct implements RecursiveIterator
+class ezcDocumentRstNode extends ezcBaseStruct // implements RecursiveIterator
 {
 // Node types
 const DOCUMENT  = 0;
@@ -42,11 +42,8 @@
 /**
  * Construct RST node
  * 
- * @ignore
  * @param int $type 
- * @param mixed $content 
- * @param int $line 
- * @param int $position 
+ * @param array $nodes 
  * @return void
  */
 public function __construct( $type, array $nodes = array() )
@@ -64,7 +61,7 @@
  */
 public static function __set_state( $properties )
 {
-return new ezcDocumentRstNode(
+return new static(
 $properties['type'],
 $properties['nodes']
 );

Modified: experimental/Document/src/document/rst/nodes/document.php
==
--- experimental/Document/src/document/rst/nodes/document.php [iso-8859-1] 
(original)
+++ experimental/Document/src/document/rst/nodes/document.php [iso-8859-1] Thu 
Feb 14 15:45:25 2008
@@ -21,11 +21,7 @@
 /**
  * Construct RST document node
  * 
- * @ignore
- * @param int $type 
- * @param mixed $content 
- * @param int $line 
- * @param int $position 
+ * @param array $nodes 
  * @return void
  */
 public function __construct( array $nodes = array() )
@@ -34,6 +30,20 @@
 // added.
 parent::__construct( self::DOCUMENT, $nodes );
 }
+
+/**
+ * Set state after var_export
+ * 
+ * @param array $properties 
+ * @return void
+ * @ignore
+ */
+public static function __set_state( $properties )
+{
+return new ezcDocumentRstDocumentNode(
+$properties['nodes']
+);
+}
 }
 
 ?

Modified: experimental/Document/src/document/rst/parser.php
==
--- experimental/Document/src/document/rst/parser.php [iso-8859-1] (original)
+++ experimental/Document/src/document/rst/parser.php [iso-8859-1] Thu Feb 14 
15:45:25 2008
@@ -51,11 +51,14 @@
 ezcDocumentRstToken::NEWLINE = array(
 ),
 ezcDocumentRstToken::BACKSLASH = array(
-'reduceBackslash'
+'shiftBackslash'
 ),
 ezcDocumentRstToken::SPECIAL_CHARS = array(
 ),
 ezcDocumentRstToken::TEXT_LINE = array(
+),
+ezcDocumentRstToken::EOF = array(
+'shiftDocument'
 ),
 );
 
@@ -69,9 +72,7 @@
  *
  * code
  *  array(
- *  end_of_file = array(
- *  'reduceDocument'
- *  ),
+ *  ezcDocumentRstNode::DOCUMENT = 'reduceDocument'
  *  ...
  *  )
  * /code
@@ -79,6 +80,7 @@
  * @var array
  */
 protected $reductions = array(
+ezcDocumentRstNode::DOCUMENT= 'reduceDocument',
 );
 
 /**
@@ -97,14 +99,11 @@
 protected $documentStack = array();
 
 /**
- * List with parsed tokens.
- *
- * Each token which has been parsed will be removed from the list, until
- * the list is empty.
- * 
- * @var array
- */
-protected $tokens = array();
+ * The resulting sucessfully parsed document.
+ * 
+ * @var ezcDocumentRstDocumentNode
+ */
+protected $parsedDocument = null;
 
 /**
  * Construct parser
@@ -112,11 +111,92 @@
  * Construct the parser from an array of tokens 

[svn-components] 7376 - /experimental/Search/design/design.txt

2008-02-14 Thread Derick Rethans
Author: dr
Date: Thu Feb 14 16:59:59 2008
New Revision: 7376

Log:
- Added skeleton design doc.

Added:
experimental/Search/design/design.txt   (with props)

Added: experimental/Search/design/design.txt
==
--- experimental/Search/design/design.txt (added)
+++ experimental/Search/design/design.txt [iso-8859-1] Thu Feb 14 16:59:59 2008
@@ -1,0 +1,31 @@
+eZ Component: Search, Design
+
+
+:Author: Derick Rethans
+:Revision: $Rev$
+:Date: $Date$
+
+.. contents::
+
+Design description
+==
+
+
+Guidelines
+==
+
+
+Classes
+===
+
+
+Data structures
+===
+
+
+..
+   Local Variables:
+   mode: rst
+   fill-column: 78
+   End: 
+   vim: et syn=rst tw=79

Propchange: experimental/Search/design/design.txt
--
svn:eol-style = native

Propchange: experimental/Search/design/design.txt
--
svn:keywords = Author Date Revision


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components


[svn-components] 7377 - /experimental/Document/src/document/rst/parser.php

2008-02-14 Thread Kore Nordmann
Author: kn
Date: Thu Feb 14 22:12:23 2008
New Revision: 7377

Log:
- Added more detailed note about RST not being representable by context free
  grammars (BNF)

Modified:
experimental/Document/src/document/rst/parser.php

Modified: experimental/Document/src/document/rst/parser.php
==
--- experimental/Document/src/document/rst/parser.php [iso-8859-1] (original)
+++ experimental/Document/src/document/rst/parser.php [iso-8859-1] Thu Feb 14 
22:12:23 2008
@@ -24,9 +24,13 @@
 /**
  * Array containing simplified shift ruleset
  * 
- * We cannot express the RST syntax as a usual grammar using a BNF. This
- * structure contains an array with callbacks implementing the shift rules
- * for all tokens. There may be multiple rules for one single token. 
+ * We cannot express the RST syntax as a usual grammar using a BNF. With
+ * the pumping lemma for context free grammars [1] you can easily prove,
+ * that the word a^n b c^n d e^n is not a context free grammar, and this is
+ * what the title definitions are.
+ *
+ * This structure contains an array with callbacks implementing the shift
+ * rules for all tokens. There may be multiple rules for one single token. 
  *
  * The callbacks itself create syntax elements and push them to the
  * document stack. After each push the reduction callbacks will be called
@@ -43,6 +47,8 @@
  *  )
  * /code
  *
+ * [1] 
http://en.wikipedia.org/wiki/Pumping_lemma_for_context-free_languages
+ *
  * @var array
  */
 protected $shifts = array(


-- 
svn-components mailing list
svn-components@lists.ez.no
http://lists.ez.no/mailman/listinfo/svn-components