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

Keith Yang

July 09, 2013
Tweet

More Decks by Keith Yang

Other Decks in Technology

Transcript

  1. @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
  2. 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
  3. 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
  4. “... 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
  5. 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
  6. Software Architecture • Core: Pylons • Database: PostgreSQL • Database

    ORM: SQLAlchemy • Template: Jinja2 • I18n and l10n: Babel (& gettext) • Search: Solr 9
  7. 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
  8. Read the of9cial (endless) documents Many useful info on the

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

    work with gettext message catalogs” 14
  10.  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
  11. 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
  12. Setup & Maintenance 1. Linux (& Security) 2. HTTP Server

    (Apache or Nginx) 3. PostgreSQL 4. Solr 5. Backup and Disaster-Recovery (DR) 21
  13. 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
  14. 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
  15. 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