Author: batiste.bieler
Date: Sat Feb 14 17:33:45 2009
New Revision: 342
Modified:
trunk/pages/templates/admin/pages/page/widgets/wymeditor.html
Log:
Add a 3 minutes cache onto the Wimeditor widget tree. Please find another
solution for generating the tree! The current solution is not good enough.
Modified: trunk/pages/templates/admin/pages/page/widgets/wymeditor.html
==============================================================================
--- trunk/pages/templates/admin/pages/page/widgets/wymeditor.html
(original)
+++ trunk/pages/templates/admin/pages/page/widgets/wymeditor.html Sat Feb
14 17:33:45 2009
@@ -1,4 +1,8 @@
-{% load mptt_tags %}
+{% load mptt_tags cache %}
+{% cache 180 WYMeditorTree %}
+{% comment %}
+ This code is *very* slow... please replace this code with some ajax
+{% endcomment %}
{% full_tree_for_model pages.Page as pages %}
<script type="text/javascript">
jQuery('#id_{{ name }}').wymeditor({
@@ -76,3 +80,4 @@
}
});
</script>
+{% endcache %}
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---