Generated: Wed 2013-03-13 10:33 CET
Source file: /media/Envs/Envs/filer-gallery/lib/python2.7/site-packages/cms/plugins/googlemap/cms_plugins.py
Stats: 0 executed, 11 missed, 5 excluded, 16 ignored
from cms.plugin_pool import plugin_poolfrom cms.plugin_base import CMSPluginBasefrom django.utils.translation import ugettext_lazy as _from .models import GoogleMapfrom .forms import GoogleMapFormclass GoogleMapPlugin(CMSPluginBase): model = GoogleMap name = _("Google Map") render_template = "cms/plugins/googlemap.html" admin_preview = False form = GoogleMapForm fieldsets = ( (None, { 'fields': ('title', 'address', ('zipcode', 'city',), 'content', 'zoom', ('lat', 'lng'),), }), (_('Advanced'), { 'fields': (('route_planer', 'route_planer_title'), ('width', 'height',),), }), ) def render(self, context, instance, placeholder): context.update({ 'object': instance, 'placeholder': placeholder, }) return contextplugin_pool.register_plugin(GoogleMapPlugin)