Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-09-11 Thread Stephan Richter
On Monday 29 August 2005 11:41, Christoph Frick wrote:
> as part of the customization of my product by the "end-user" (the admin
> that wants to install this software) there is need for a python-script
> (or whatever) that basically transforms an uploaded file into a bunch of
> objects (parses the file if you wish).
>
> with our current zope2 ttw app we just force an external method with a
> certain name to exist in the root-folder of the product and thats it.
>
> my goal for the new product is to have only the basic parser (and no
> longer the logic for handling the data then). but once somebody wants to
> install my product he/she needs to customize this for its needs.
>
> so basically (thinking in big terms of component based programming - or
> at least as far as i thing i understood it):
> one needs to write an adapter for my product, so it "adapts" for the
> game one wants to represent in its instance. in terms of the good ole OO
> - one would subclass my product and override the e.g. upload method. in
> terms of design i would consider the approach of an abstract method
> upload, that has to be implemented a lot cleaner.

I think what you want are wizards. You can create wizards on many levels, 
including add forms.

You could also develop views that are wizards for certain setups. All of those 
things are not really hard problems. It's just a lot of work, since you have 
to code the wizard screens.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-29 Thread Christoph Frick
On Sun, Aug 28, 2005 at 06:34:09PM -0400, Stephan Richter wrote:

> On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> > for b) and c) i simply thought about forcing the user to subclass my
> > implementation and simply do what they want - but of course it would be
> > nicer, if you dont have to be a developer to install the product (even
> > if you have at least to write a script that handles the upload).
> Never make subclassing an object to extend anything in Zope 3.
> Anyways, for point (b) you have not told us about your use case. I
> think you are on the wrong track there.

additionally to my previous mail there is of course something the solves
it simply without having the user to adapt/subclass my product - i could
write all the parsers, that are needed and let the user configurate,
which parser it wants. and parsers for new games are added to my
product. 

-- 
cu


pgpjisRyqP7oI.pgp
Description: PGP signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-29 Thread Christoph Frick
On Sun, Aug 28, 2005 at 06:30:04PM -0400, Stephan Richter wrote:

> On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> > c) the whole product needs beside the visual customization by the admin
> >    also one piece of software - a script that handles the upload. for
> >    the old version of the software (zope2) we forced an external method
> >    with a certain name.
> I do not understand your question.

as part of the customization of my product by the "end-user" (the admin
that wants to install this software) there is need for a python-script
(or whatever) that basically transforms an uploaded file into a bunch of
objects (parses the file if you wish).

with our current zope2 ttw app we just force an external method with a
certain name to exist in the root-folder of the product and thats it.

my goal for the new product is to have only the basic parser (and no
longer the logic for handling the data then). but once somebody wants to
install my product he/she needs to customize this for its needs.

so basically (thinking in big terms of component based programming - or
at least as far as i thing i understood it): 
one needs to write an adapter for my product, so it "adapts" for the
game one wants to represent in its instance. in terms of the good ole OO
- one would subclass my product and override the e.g. upload method. in
terms of design i would consider the approach of an abstract method
upload, that has to be implemented a lot cleaner.

-- 
cu


pgpMaGBTVK8T2.pgp
Description: PGP signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-29 Thread Stephan Richter
On Monday 29 August 2005 11:32, Christoph Frick wrote:
> > > b) i want the users of the racerank product to be able to do easy
> > >    customization of the views and their apprearence. i though about
> > >    simply adding a css+logo as attributes to my main-interface and use
> > >    this for manipulation that goes beyond my skin. but whats the best
> > >    approach to allow the admin to change texts per instance? abuse the
> > >    i18n for this? or allow annotation of my views with e.g. a
> > >    text-attribute.
> >
> > I have misused I18n for those type of cases before and I don't mind
> > doing this. ;-) Of course, if you want the admins to be able to adjust
> > *content*, then you have to get into the content internationalization.
>
> no it is actually adjusting the text. there will be small text passages
> on the various pages, that explain whats to do. so users of the product
> might want to adjust them to their needs. the aim here is not the
> internationalization but the customization.

Then your application has to provide this functionality. It is certainly 
nothing that comes standard with Zope 3.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-29 Thread Christoph Frick
On Sun, Aug 28, 2005 at 06:27:19PM -0400, Stephan Richter wrote:

> > b) i want the users of the racerank product to be able to do easy
> >    customization of the views and their apprearence. i though about
> >    simply adding a css+logo as attributes to my main-interface and use
> >    this for manipulation that goes beyond my skin. but whats the best
> >    approach to allow the admin to change texts per instance? abuse the
> >    i18n for this? or allow annotation of my views with e.g. a
> >    text-attribute.
> I have misused I18n for those type of cases before and I don't mind
> doing this. ;-) Of course, if you want the admins to be able to adjust
> *content*, then you have to get into the content internationalization.

no it is actually adjusting the text. there will be small text passages
on the various pages, that explain whats to do. so users of the product
might want to adjust them to their needs. the aim here is not the
internationalization but the customization.

-- 
cu


pgpBjuVRlLTyd.pgp
Description: PGP signature
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-28 Thread Stephan Richter
On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> for b) and c) i simply thought about forcing the user to subclass my
> implementation and simply do what they want - but of course it would be
> nicer, if you dont have to be a developer to install the product (even
> if you have at least to write a script that handles the upload).

Never make subclassing an object to extend anything in Zope 3. Anyways, for 
point (b) you have not told us about your use case. I think you are on the 
wrong track there.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-28 Thread Stephan Richter
On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> c) the whole product needs beside the visual customization by the admin
>    also one piece of software - a script that handles the upload. for
>    the old version of the software (zope2) we forced an external method
>    with a certain name.

I do not understand your question.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-28 Thread Stephan Richter
On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> b) i want the users of the racerank product to be able to do easy
>    customization of the views and their apprearence. i though about
>    simply adding a css+logo as attributes to my main-interface and use
>    this for manipulation that goes beyond my skin. but whats the best
>    approach to allow the admin to change texts per instance? abuse the
>    i18n for this? or allow annotation of my views with e.g. a
>    text-attribute.

I have misused I18n for those type of cases before and I don't mind doing 
this. ;-) Of course, if you want the admins to be able to adjust *content*, 
then you have to get into the content internationalization.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-28 Thread Stephan Richter
On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> a) i want my skin to be the default for certain views. this means i have
>    a set of options i regulary use the ZMI views. but i want the page
>    itself to be itself look like i want it too - thats why i defined a
>    layer/skin "racerank" and moved e.g. my index.html into this layer.
>    accessing the index.html now only works if i call it with
>    ++skin++racerank - otherwise i get a 404; is there a way to use the
>    set layer as default for the file? so no ++skin++... needed? or is a
>    layer/skin the wrong approach at all for customizing views to users
>    (not admin users)?

See overrides.zcml, where you can switch the default skin. Another option 
would be to define a IBeforeTraversal subscriber that adjusts the skin, like 
the skin preference demo in the trunk and the SchoolTool project does.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-28 Thread Stephan Richter
On Tuesday 16 August 2005 06:29, Christoph Frick wrote:
> i am still writing on my racerank software and i am currenlty adressing
> the problems that revolve around the "customizeability". so i have quite
> some questions i put together in one mail - maybe all of them can be
> solved by reading the right URL - so feel free to push me in the right
> direction with a nice RTFM ;)

Reading long E-mails always turns me off. I rather read 4 small ones. ;-)

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] write a product keeping the customization of the instances in mind

2005-08-16 Thread E. Frerich
Am 16 Aug 2005 um 12:29 hat Christoph Frick geschrieben:

> hi list,
> 
> i am still writing on my racerank software and i am currenlty
> adressing the problems that revolve around the "customizeability". so
> i have quite some questions i put together in one mail - maybe all of
> them can be solved by reading the right URL - so feel free to push me
> in the right direction with a nice RTFM ;)
> 
> a) i want my skin to be the default for certain views. this means i
> have
>a set of options i regulary use the ZMI views. but i want the page
>itself to be itself look like i want it too - thats why i defined a
>layer/skin "racerank" and moved e.g. my index.html into this layer.
>accessing the index.html now only works if i call it with
>++skin++racerank - otherwise i get a 404; is there a way to use the
>set layer as default for the file? so no ++skin++... needed? or is
>a layer/skin the wrong approach at all for customizing views to
>users (not admin users)?

look at overrides.zcml in your Zope instance /etc

[snip]


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users