Skip to Content.
Sympa Menu

pcplantdb - [pcplantdb] Hello World

pcplantdb@lists.ibiblio.org

Subject: pcplantdb

List archive

Chronological Thread  
  • From: Richard Morris <webmaster@pfaf.org>
  • To: pcplantdb <pcplantdb@lists.ibiblio.org>
  • Subject: [pcplantdb] Hello World
  • Date: Thu, 12 Aug 2004 21:10:42 +0100

Playing about with zope a bit more
and want to do a "Hello World" with objects and an object database.

I want to create two classes

class BotName
String getFullName() {return genusName + " " + taxonName; }
String author
String genusName
String taxonName

class TestPlant
BotName acceptedName
BotName synonyms[] (i.e. and array of synonyms)

create a few objects, store them somewhere, retreive them.

Go back to fix the getFullName code so that can cope with
cultivars, varieties and forma.

class BotName
String getFullName() {return genusName + " " + taxonName + ...; }
String author
String genusName
String taxonName
String cultivarName
String varietyName
String formaName


Fix the already created objects so they fit the new BotName class.

Then get a text file in the format

Accepted Latin Name|Synonym|Author
Actinidia deliciosa|Actinidia deliciosa|(A.Chev.)C.F.Liang.& A.R.Ferguson.
Actinidia deliciosa|Actinidia chinensis deliciosa|(A.Chev.)A.Chev.
.....

get a script to parse the above file,
and create the corresponding objects.

No idea where to start at moment.

?

Rich

p.s. OK so its a little more than hello world. But its the sort of stuff, I'd envisage doing.

--
Plants for a Future: 7000 useful plants
Web: http://www.pfaf.org/ same as http://www.comp.leeds.ac.uk/pfaf/
Post: 1 Lerryn View, Lerryn, Lostwithiel, Cornwall, PL22 0QJ
Tel: 01208 872 963 / 0845 458 4719
Email: webmaster@pfaf.org
PFAF electronic mailing list http://groups.yahoo.com/group/pfaf










Archive powered by MHonArc 2.6.24.

Top of Page