Ticket #1106 (closed enhancement: fixed)

Opened 9 months ago

Last modified 9 months ago

Improve the build system for actions, views and models

Reported by: felix Owned by: felix
Priority: normal Milestone: 1.1
Component: build Version: HEAD
Severity: normal Keywords:
Cc: Patch attached: no

Description (last modified by felix) (diff)

The buildsystem could ask for various informations when creating an action, view or model and autogenerate more code:

For actions the methods for all supported request methods could be generated.

For views, the methods for supported output types could be generated.

For models getters and setters for properties could be generated.

This would allow to generate the appropriate test stubs as well and save a lot of manual developer work, thus promoting a proper testing regiment.

Attachments

Change History

Changed 9 months ago by felix

  • status changed from new to assigned

Changed 9 months ago by felix

  • description modified (diff)

Changed 9 months ago by felix

(In [4102]) created a branch for improved build system for actions, views, templates. refs #1106

Changed 9 months ago by felix

(In [4111]) adds method generation for actions, needs some refactoring but basically working.

refs #1106

Changed 9 months ago by felix

(In [4112]) fixed minor spelling in code comments

refs #1106

Changed 9 months ago by felix

(In [4113]) - fixes a bug where every action was marked as "simple" - fixed minor errors in code comments

refs #1106

Changed 9 months ago by felix

(In [4114]) - adds output type method generation for views, needs some refactoring but basically working.

refs #1106

Changed 9 months ago by felix

(In [4132]) - adds attribute and attribute-accessor generation for agavi models. Only works with models in modules for now, needs cleanup.

refs #1106

Changed 9 months ago by felix

(In [4137]) - adds attribute and attribute-accessor generation for project models.

refs #1106

Changed 9 months ago by felix

(In [4138]) fixes the generated code comment for getters in models

refs #1106

Changed 9 months ago by felix

(In [4140]) the model attributes and respective accessor functions now use code templates located in templates/code/model to make the function definitions adaptable by the user

refs #1106

Changed 9 months ago by felix

(In [4141]) the action's request method handling methods and the isSimple method now use code templates located in templates/code/actions to make the function definitions adaptable by the user

refs #1106

Changed 9 months ago by felix

(In [4142]) the views output type handling methods now use code templates located in templates/code/views to make the function definitions adaptable by the user

refs #1106

Changed 9 months ago by felix

(In [4144]) added guard for empty or unreadable template file

refs #1106

Changed 9 months ago by felix

(In [4145]) added guard for empty or unreadable template files

refs #1106

Changed 9 months ago by felix

(In [4146]) added guard for empty or unreadable template files

refs #1106

Changed 9 months ago by felix

(In [4147]) adds docblocks

refs #1106

Changed 9 months ago by felix

(In [4148]) adds docblocks

refs #1106

Changed 9 months ago by felix

(In [4149]) refactored code to allow seperate templates for output types by creating HandleOutputType?.<otname>.tmpl

refs #1106

Changed 9 months ago by felix

(In [4150]) load the proper getter template

refs #1106

Changed 9 months ago by felix

(In [4151]) fixed indentation and empty lines for model attribute generation

refs #1106

Changed 9 months ago by felix

(In [4153]) the model setter now get a proper type-hint on non-scalar attributes

refs #1106

Changed 9 months ago by felix

  • status changed from assigned to closed
  • resolution set to fixed

(In [4155]) merges changes from [4102:4153/branches/felix-buildsystem-method-support/src/build] improves build system for models, actions, views adds support for request handling methods in actions adds support for output type handling methods in views adds support for attributes, getters and setters in models fixes #1106

Changed 9 months ago by felix

(In [4156]) fixed docblock

sort of refs #1106

Add/Change #1106 (Improve the build system for actions, views and models)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.