pcplantdb@lists.ibiblio.org
Subject: pcplantdb
List archive
Re: [pcplantdb] Richard Re: dataset and client/server API
- From: John Schinnerer <john@eco-living.net>
- To: pcplantdb@lists.ibiblio.org
- Subject: Re: [pcplantdb] Richard Re: dataset and client/server API
- Date: Tue, 10 Aug 2004 20:50:29 +0000
Aloha,
Or, if you remember my HGObject class example you could have a:
class HGImage(HGObject):
def display(self, verbosity='terse', displayType='html')
"Overriding display method in HGObject supperclass"
....
return "<img src="IMGURL" width="400" height="300" alt="Photo of a
bannana">"
> Micro task: get system to return a page with an image in it.
FYI the zope image object by default returns an img tag for/of itself, with available attributes in place when called - it calculates width and height itself when image data is stuffed into it...
I'm curious why you would want to do an initial UI in PHP on top of zope instead of just zope.
> My tendancy is not to go overboard on moderation for stage 1.
> Initially we will not have that many users so manual moderation
> by us will do. I think we should focus of getting a product out the door.
I agree with you here, even though I think moderation essential to
having a largish scale system with many users, it's not really part of
the focus of this particular grant. It's more of one of those things
on my personal todo list.
Agree for initial phases - just want to avoid designing ourselves into a corner/out of certain options as we get there.
> Chad:
> >> ...data not method, possibly as a attribute of the object in the form of
> >> a list of urls.
> > Methods not data! First rule of OO design don't expose your
> data, expose methods. Rather that
I simply meant that the URL data some method accesses should not be hard-coded...
Direct attribute access is fairly
common in python. In fact, most builtin python classes have directly
accessible attributes.
Yeah, very true in zope objects, and one can add arbitrary attributes via the TTW management interface to most any integral zope object as well as to objects of one's own.
Only problem I've had with this so far is when creating new instances manually TTW I have to remember to add an attribute that's expected in for example my master page template.
Adding programmatically, I only have to remember it once, when I'm writing the add object code...
> Theres a nice way of handelling this on mathworld. Besides
> each link is a little "fix broken link" button, so we can, to
> some extent, let our users do the work for us. (or at least point out > where the problems are).
Yeah, on my to-do list for my site (last priority...:-p) is to simply replace my static links pages with a searchable links DB product.
--
John Schinnerer - MA, Whole Systems Design
------------------------------------------
- Eco-Living -
Whole Systems Design Services
People - Place - Learning - Integration
john@eco-living.net
http://eco-living.net
-
[pcplantdb] Richard Re: dataset and client/server API,
Chad Knepp, 08/08/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Richard Morris, 08/09/2004
- Thoughts on guilds - Re: [pcplantdb] Richard Re: dataset and client/server API, Lawrence F. London, Jr., 08/09/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Chad Knepp, 08/09/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
John Schinnerer, 08/10/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Richard Morris, 08/10/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Chad Knepp, 08/10/2004
- Re: [pcplantdb] Richard Re: dataset and client/server API, John Schinnerer, 08/11/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Chad Knepp, 08/10/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Richard Morris, 08/10/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Richard Morris, 08/11/2004
- Re: [pcplantdb] Richard Re: dataset and client/server API, John Schinnerer, 08/12/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
John Schinnerer, 08/10/2004
- Re: [pcplantdb] Richard Re: dataset and client/server API, John Schinnerer, 08/10/2004
-
Re: [pcplantdb] Richard Re: dataset and client/server API,
Richard Morris, 08/09/2004
Archive powered by MHonArc 2.6.24.