Sure, the problem is I don't like flags in the
code ;-)
I see!
Some of things you labelled as hard wired are not hard
wired, these
are just default values that can be changed trough the web-interface.
Something totally unrelated, just to write it down: it would be cool
to have sort of a tagging system in Smalltalk, so that one could
associate tags with classes, methods, instance variables, etc. Then
we could get rid of the categories and all the flags and one could
simply open a browser on all entities tagged as "hard wired", or on
all classes tagged as "document" and "visitor" displaying the
PRDocumentVisitor class ...
I am not sure if I remember rightly, but wasn't this what the developer
of starbrowser had in mind too?
On reflection
it looks like the direction this is leading to is to
refactor all of the environment stuff, and some of the pierconfig
stuff out of PRStructure into a separate extension module. For want
of a better name "PREnvironment" and sons.
This would allow Environments (i.e. the out of the box style and
configuration) to be selected in the seaside configuration panel,
and offer a creative outlet for users to produce a range of pre-
configured environments. This becomes the natural starting point
for new 'power' users to begin creating bespoke environments, while
allowing the core of pier to remain lean and fit.
For #icon and #label this would be a good idea, else I don't really
see the point. The environment is instantiated once when you set up
I see your point... but I am leaning in the direction of doing a whole
lot more with the environement concept so I guess I just have to try it
out and see.
To have the choice between different ready-made
templates I created a
small command with less than 30 lines of code. See Pier-Environment-
lr.1 in the Pier repository. It has 3 slightly different templates
defined on the class-side, that can be applied from the web-interface
anywhere inside Pier. Does this help? Do you think that should go
into the core?
Its certainly nice to have around as an example, and I think that having
a Pier-Environment space on the server for such things is a great idea.
do you open your source server for contibutions?
Keith
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of
use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html