jquery pyproxy - vincent pretre

8
Prettig Personeel jQuery.pyproxy Vincent Pretre - Zest software 14-09-10 - Plone user day - Rotterdam

Upload: zest-software

Post on 26-Jun-2015

1.073 views

Category:

Technology


1 download

DESCRIPTION

Lighting talk: a quick technical presentation on how to use jquery.pyproxy to add lightweight AJAX in Python.

TRANSCRIPT

Page 1: Jquery Pyproxy -  Vincent Pretre

Prettig PersoneeljQuery.pyproxyVincent Pretre - Zest software

14-09-10 - Plone user day - Rotterdam

Page 2: Jquery Pyproxy -  Vincent Pretre

Prettig Personeel

Products.plonehrm

collective.sendaspdf

collective.pdftransform

jquery.pyproxy

Page 3: Jquery Pyproxy -  Vincent Pretre
Page 4: Jquery Pyproxy -  Vincent Pretre

jQuery.pyproxy

replace KSS to handle Ajax

modify the DOM with Python

Page 5: Jquery Pyproxy -  Vincent Pretre

jQuery.pyproxy

easy to use on both client and server side

keep jQuery syntax

as extensible as jQuery

Page 6: Jquery Pyproxy -  Vincent Pretre

jQuery plugin

pyproxy: binds a call to an event

pyproxy_call: executes an Ajax call and processes the result.

Page 7: Jquery Pyproxy -  Vincent Pretre

Python module

extend_grammar: defines plugins syntax

JQueryProxy: object used to modify the DOM

@jquery: defines a view as callable by jquery.pyproxy

Page 8: Jquery Pyproxy -  Vincent Pretre

To infinity and beyond

Limitations:

chained call

save the query

function as parameters

Used on production for months

Plone & Django versions. Can be extended to other frameworks