f | You can find my full "log" here: http://herbert.po | f | You can find my full "log" here: http://herbert.po |
| ul.at/board/thread/508/?page=1 | | ul.at/board/thread/508/?page=1 |
| | | |
| It took me in total 5.6 hours to complete.. (altho | | It took me in total 5.6 hours to complete.. (altho |
| ugh it's not perfect, i probably need to see if i | | ugh it's not perfect, i probably need to see if i |
| can remove some hacks later...) | | can remove some hacks later...) |
n | | n |
|
| | |
|
| | | After all .. it seems i'm basically evaluating the |
| | | modules USED by catalyst, instead of evaluating c |
| | | atalyst .. since.. a developer is basically dealin |
| | | g with those modules, and catalyst seems to do it' |
| | | s job without getting in my way :) (these modules |
| | | include DBIx::Class, HTML::Widget, HTML::Toolkit, |
| | | ..)
|
| | | |
| # Screenshots | | # Screenshots |
| | | |
| This is the "default" layout you get after the cre | | This is the "default" layout you get after the cre |
| ate-scripts .. | | ate-scripts .. |
| | | |
| Whats a bit a shame during development is that you | | Whats a bit a shame during development is that you |
| have to manually restart the server (i forgot to | | have to manually restart the server (i forgot to |
| do that quite often and wondered why my changes we | | do that quite often and wondered why my changes we |
| ren't effective.. at least something as django use | | ren't effective.. at least something as django use |
| s (restart automatically if any change is detected | | s (restart automatically if any change is detected |
| ) would be nice..) - but this is only a problem du | | ) would be nice..) - but this is only a problem du |
| ring development | | ring development |
| | | |
| | | |
| ** How extend able is the result ? (e.g. Imagine i | | ** How extend able is the result ? (e.g. Imagine i |
| would like to add a workflow where changes get on | | would like to add a workflow where changes get on |
| line once an administrator approves them) ** | | line once an administrator approves them) ** |
| | | |
n | TODO - figure this out
| n | Since everything is coded (and no magic happens in |
| | | the background), extending it is as easy as it ge |
| | | ts ... simply add code ..
|
| | | |
| ** How much duplication was necessary ? (e.g. need | | ** How much duplication was necessary ? (e.g. need |
| to describe the models in the database as well as | | to describe the models in the database as well as |
| in code or xml ? / need to describe attributes of | | in code or xml ? / need to describe attributes of |
| models in models and views ?, etc.) ** | | models in models and views ?, etc.) ** |
| | | |
| | | |
| Quite a bit in my opinion - although it might be p | | Quite a bit in my opinion - although it might be p |
| ossible that it can be cut down a bit.. but .. jus | | ossible that it can be cut down a bit.. but .. jus |
| t following the tutorials.. this is my impression: | | t following the tutorials.. this is my impression: |
| | | |
| ** How can you link in templates to other actions/ | | ** How can you link in templates to other actions/ |
| views/... ? ** | | views/... ? ** |
| | | |
| Seems to work quite well.. example: [% Catalyst.ur | | Seems to work quite well.. example: [% Catalyst.ur |
| i_for( 'details/' ) _ bar.id %] .. it is a bit str | | i_for( 'details/' ) _ bar.id %] .. it is a bit str |
| ange that you simple append the bar id .. but anyw | | ange that you simple append the bar id .. but anyw |
| ay .. it seems to work .. | | ay .. it seems to work .. |
| | | |
| | | |
t | | t | # Various comments
|
| | |
|
| | | ## Authentication
|
| | |
|
| | | I think it is a bit strange that i needed to use: |
| | | $c->user->get_object->get_column('id') to get to t |
| | | he id of the currently logged in user .. (to store |
| | | in the editor_id of Bar) .. shouldn't this be a b |
| | | it less verbose ?
|
| | |
|
| | | It seems the authentication system was not made to |
| | | be directly referenced, but instead use the usern |
| | | ame to link a model instance to a user (?)
|
| | |
|
| | | ## Timestamps ???
|
| | |
|
| | | I was not able to figure out how to properly use t |
| | | imestamps with DBIx::Class .. i thought i could si |
| | | mply set the value to 'time()'.. but that is not t |
| | | rue.. so i used Class::Date::now .. which works pe |
| | | rfect.. (no idea if this is the "right" way to do |
| | | it ..)
|
| | |
|
| | | ## "Model"-Hooks ?
|
| | |
|
| | | The Bar and Comment models contain a 'editdate' an |
| | | d 'postdate' field.. it would have been nice if i |
| | | could have some sort of 'pre save' hook to set it |
| | | in the model once.. instead of in the Controller . |
| | | .
|
| | |
|
| | | But i haven't searched long enough for a solution |
| | | ... probably there is one ... somewhere..
|
| | |
|
| # Code Examples | | # Code Examples |
| | | |
| ## Controller | | ## Controller |
| | | |
| TODO | | TODO |