Jquery Pyproxy - Vincent Pretre
-
Upload
zest-software -
Category
Technology
-
view
1.073 -
download
1
description
Transcript of Jquery Pyproxy - Vincent Pretre
![Page 1: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/1.jpg)
Prettig PersoneeljQuery.pyproxyVincent Pretre - Zest software
14-09-10 - Plone user day - Rotterdam
![Page 2: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/2.jpg)
Prettig Personeel
Products.plonehrm
collective.sendaspdf
collective.pdftransform
jquery.pyproxy
![Page 3: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/3.jpg)
![Page 4: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/4.jpg)
jQuery.pyproxy
replace KSS to handle Ajax
modify the DOM with Python
![Page 5: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/5.jpg)
jQuery.pyproxy
easy to use on both client and server side
keep jQuery syntax
as extensible as jQuery
![Page 6: Jquery Pyproxy - Vincent Pretre](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/6.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/7.jpg)
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](https://reader033.fdocuments.us/reader033/viewer/2022042816/558cf135d8b42a9c318b4787/html5/thumbnails/8.jpg)
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