Skip to content. | Skip to navigation

Personal tools
You are here: Home Members kurt Plone Programming Tutorial Time Tracker Demo Time Tracker Example Plone Product

Time Tracker Example Plone Product

Here is how Sean Kelley builds a time tracker.

This is the demo from getting your feet wet with plone from Sean Kelley's screencast

http://www.archive.org/download/SeanKellyGettingYourFeetWetwithPlone/wetfeet.mov


Step 1:

    install framework
    python
    zope
    plone


boa.ts.gatech.edu: ~/src/Python-2.4.3$ ./configure --prefix=/usr/local/demo ; make ; sudo make install
boa.ts.gatech.edu:~/src/Zope-2.8.6-final$ ./configure --with-python=/usr/local/demo/bin/python --prefix=/usr/local/demo ; make ; sudo make install


boa.ts.gatech.edu: /usr/local/demo/bin/mkzopeinstance.py /Users/kurt/demo
Username: admin
Password: *****

boa.ts.gatech.edu: cd ~/demo
boa.ts.gatech.edu: ./bin/runzope
^C


# untar plone then...
boa.ts.gatech.edu: cd ~/src/Plone-2.1.2/
boa.ts.gatech.edu: mv * ~/demo/Products

boa.ts.gatech.edu: cd ~/demo
boa.ts.gatech.edu: ./bin/runzope

Step 1.a : done
Step 1.b: add plone site to zope

Visit http://boa.ts.gatech.edu:8080/manage
click "Add" from "Plone Site" dropdown on main page

ID: tt
Title: Time tracker demo
Desc: A time tracker demo from Sean kelley
click "Add Plone Site"


Visit: http://localhost:8080/tt


So now our system looks like this diagram                           

PLONE

(framework)
 zope


 <-(instance)             "demo:zope"
     (contained object)  "plone"
     (instance)              "tt:plone site"
python
os

Step 1.b: done


Step 2: get development tools

    ArchGenXML
    ArgoUML
    Textmate(strikethat)


# So we use a modeling tool to make a xmi, send it to ArchGenXML and the plone knows how to display via the archetype API.
ArgoUML (export xmi) -> file.xmi
file.xmi (defines class model) -> ArchGenXML (generates class definitions) -> archetypes (defines content types for) -> Plone

So I went and downloaded ArgoUML.app(or the windows/linux version of this)


Then at plone.org/products I got the ArchGenXML product under "development tools" by wgeting the url in ~/src
And then I made a symlink so I could run it from the command line
boa.ts.gatech.edu: ln -s ~/src/ArchGenXML/ArchGenXML.py ~/bin/ArchGenXML


Now make the app!    Draw up classed in ArgoULM...  remove some of the java specific "tag vaules" and put your own in.

  Export to tt.xmi


boa.ts.gatech.edu:  ArchGenXML ~/demo/tt.xmi ~/demo/Products/tt


# stop/start zope/plone
^C
boa.ts.gatech.edu: ./bin/runzope

Visit http://localhost:8080/tt/  and click "Site Setup"  URHC(upper right hand corner) then "Add/Remove Products"  and click 'tt'/"Install"

Then go back to localhost:8080/tt and select "add to folder" "time log" and thats it.

More info on archetypes - tinyurl.com/mc2mw - chapter 14 lists all the tagged values

irc #plone irc.freenode.net nutjob

Document Actions
« November 2009 »
November
MoTuWeThFrSaSu
1
2345678
9101112131415
16171819202122
23242526272829
30