Approved! Regards, Max Carlson OpenLaszlo.org
On 7/15/10 4:56 AM, P T Withington wrote:
Change 20100714-ptw-a by [email protected] on 2010-07-14 18:54:18 EDT in /Users/ptw/OpenLaszlo/trunk-2 for http://svn.openlaszlo.org/openlaszlo/trunk Summary: Substrate for user-definable types Bugs Fixed: LPP-7354 Presentation Types (partial) Technical Reviewer: [email protected] (pending) QA Reviewer: [email protected] (pending) Overview: Rework the Schema type system to allow user-defined types (and forward references to types). Details: Schema: Reorganize Type to be subclassable. Move view-specific parts to ViewSchema.UserType. newType should never re-create a type. getTypeForName moved to ViewSchema. TypeCompiler: stub ViewSchema: UserType allows dynamically adding types, records definition and first reference (for error reporting). Allows forward references to types, which will be resolved once the schema is complete. NodeModel, ClassModel: Permit forward references to types. Compiler: Resolve types Tests: lztest, smokecheck Files: M WEB-INF/lps/server/src/org/openlaszlo/xml/internal/Schema.java A WEB-INF/lps/server/src/org/openlaszlo/compiler/TypeCompiler.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/ViewSchema.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/Compiler.java M WEB-INF/lps/server/src/org/openlaszlo/compiler/ClassModel.java Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100714-ptw-a.tar
