Upgrade to Pro — share decks privately, control downloads, hide ads and more …

CKAN Introduction with zh_TW

CKAN Introduction with zh_TW

開放研討系列之二:CKAN, Drupal, CiviCRM 以及運用自由軟體協助非營利組織

講題:CKAN - 開放資料平台

摘要:CKAN 的架構介紹,安裝與中文化的經驗分享

http://registrano.com/events/3ac818

D1804d3c315cbb850aaa88d2fbadc3cf?s=128

Keith Yang

July 09, 2013
Tweet

Transcript

  1. CKAN Introduction with zh_TW Keith Yang @keitheis

  2. @keitheis Keith Yang • architect.py in biideal.com • Organizer/Coordinator in

    Taipei.py • Web Lead in PyCon Taiwan 2013 • Thinking of PyCon Taiwan 2014 2
  3. CKAN & me • 3 months experience & CKAN (1.8)

    with zh_TW • 3 years experience & Pylons • ~1 year experience & Pyramid • n years experience & Web, System Admin, Open Source 3
  4. Survey: 1. Installed CKAN? 2. Internationalization (i18n) and/or Localization (l10n)?

    3. Create Organizations on CKAN? 4. No experience? 5. Well, just walking by? 4
  5. “... Powerful data management system that makes data accessible –

    by providing tools to streamline publishing, sharing, Qnding and using data.” Backed by Open Knowledge Foundation (OKF) 5
  6. “with great power, comes great responsibility.”

  7. Good news

  8. CKAN 2.0 Release • Jinja2 - easier template and theme

    • Authorisation and workRow: • Introducing CKAN “Organizations” • More built-in previews • # Announcing CKAN 2.0 | Open Knowledge Foundation Blog 8
  9. Software Architecture • Core: Pylons • Database: PostgreSQL • Database

    ORM: SQLAlchemy • Template: Jinja2 • I18n and l10n: Babel (& gettext) • Search: Solr 9
  10. and Pylons architecture

  11. What!? 11

  12. Pylons book for the work • Internationalization (i18n) • Routes

    (mapping /this/url to class Controller def action) • Watch out ckan.logic • CKAN's own logic behaviors 12
  13. Read the of9cial (endless) documents Many useful info on the

    oScial sites: • SQLAlchemy • Jinja2 • Pylons • CKAN 13
  14. The core of i18n of CKAN “tools to build and

    work with gettext message catalogs” 14
  15.  mitsuhiko/babel The news of Babel Babel project was frozen

    on 0.9.6 for 2 years. During EuroPython 2013 @ Florence, Armin Ronacher called for Babel sprint to revive its evolution with features required. (e.g. Python 3 support) 15
  16. The core of Babel: gettext (python setup.py extract_messages) python setup.py

    update_catalog --locale zh_TW python setup.py compile_catalog --locale zh_TW Watch out the language written in database, templates and images. 16
  17. More on details

  18. The challenge of running CKAN

  19. Just like running a startup

  20. Working on application 1. Setup & Develop 2. Maintain 3.

     Goto 1 20
  21. Setup & Maintenance 1. Linux (& Security) 2. HTTP Server

    (Apache or Nginx) 3. PostgreSQL 4. Solr 5. Backup and Disaster-Recovery (DR) 21
  22. Development 1. Pylons 2. SQLAlchemy 3. Jinja2 4. PostgreSQL 5.

    Babel 22
  23. Factors of business •  Human Resource (HR) is key

    (as usual). •  Marketing or no one use it. •  Monitor performance. •  Educate new [ user | operator | developer | admin ] •  Passion & reward 23
  24. You might encounter... • Bugs or issues (tickets on trac)

    • Try (to learn) search trac • CKAN issues moved   github! • Finding (or being) a dev ops like an entrepreneur • Javascript issues • Finding users(?) 24
  25. git show git branch None mentioned here: • Javascript parts

    • e.g. Newly introduced pdf.js • CKAN 2.2 (in alpha) • Know where you're 25
  26. Thank You