• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Science To Bfg
 

Science To Bfg

on

  • 1,527 views

 

Statistics

Views

Total Views
1,527
Views on SlideShare
1,525
Embed Views
2

Actions

Likes
0
Downloads
4
Comments
0

1 Embed 2

http://www.slideshare.net 2

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Science To Bfg Science To Bfg Presentation Transcript

    • Migrating a public NASA site to Repoze BFG Chris Shenton koansys.com
    • Talk Overview • Science@NASA • Repoze BFG • S@N in BFG
    • science@nasa • science.nasa.gov • 13 years of stories • 1.8 million visits/month • manually maintained • varying HTML formats over time • no built-in search
    • s@n varying html • 2009
    • s@n varying html • 2003
    • s@n varying html • 1996
    • CMS Wanted • Folders, Pages • Files, Images • Search • TTW Editor • Permissions per object
    • Existing Plone Site • nasascience.nasa.gov • too complex
    • New Plone Site? • Plone3’s become painful :-(
    • Repoze BFG? • Same Zope Object Database • Similar ZPT Templates • Same Catalog index, search • Tiny • Fast • Easy to learn
    • Repoze BFG • http://bfg.repoze.org/ • “Zope with the serial numbers filed off” • Chris McDonough’s 4th implementation • 100% test coverage • Excellent, complete documenation • Good fit for CMS-shaped data • ZODB • Traversal
    • ZODB • Persistent object store • Python objects • Dictionaries, attributes • children = page.items() • parent = page.__parent__
    • ZODB for lightly structured data recipes Spanish seafood paella sangria grouper squid on bbq cava red
    • ZODB: flexible recipes Spanish seafood paella sangria grouper squid on bbq cava red tasting photo notes
    • Traversal: the way we think /recipes/Spanish/sangria/cava recipes /recipes/seafood/squid Spanish seafood paella sangria grouper squid on bbq cava red
    • Traversal We don’t need no stinking ORM
    • Models: just Python • Folderish Page
    • Models: just Python • File • Image • subclass • blobs
    • Views: fill templates
    • View: add, edit
    • Templates Chameleon: ZPT on steroids • ZPT, TAL, METAL • http://chameleon.repoze.org/docs/zpt/ • http://www.zope.org/Documentation/ Books/ZopeBook/2_6Edition/ZPT.stx • http://wiki.zope.org/ZPT/ TALSpecification14
    • Templates: O-wrap • define-slot
    • Templates: page view • fill-slot
    • Catalog: index • define indices
    • Catalog: search • view
    • Import science@nasa • wget site • import html • use xpaths
    • But will it blend? • Live demo!