README fixes
This commit is contained in:
parent
f96099ed48
commit
7040ba8900
10
README
10
README
|
@ -73,7 +73,7 @@ Static renderer
|
|||
|
||||
The simplest renderer is the static renderer you can configure one like this::
|
||||
|
||||
CMS_BLURP_RENDERERS = {
|
||||
CMS_PLUGIN_PLUGIN_BLURP_RENDERERS = {
|
||||
'homepage_text': {
|
||||
'name': u'Homepage text',
|
||||
'class': 'cmsplugin_blurp.renderers.static.Renderer',
|
||||
|
@ -168,7 +168,7 @@ Exemple with the JSON parser
|
|||
|
||||
The configuration::
|
||||
|
||||
CMS_BLURP_RENDERERS = {
|
||||
CMS_PLUGIN_BLURP_RENDERERS = {
|
||||
'json': {
|
||||
'name': u'My JSON content',
|
||||
'class': 'cmsplugin_blurp.renderer.data_source.Renderer',
|
||||
|
@ -207,7 +207,7 @@ the following datas::
|
|||
|
||||
You can present this file using this configuration::
|
||||
|
||||
CMS_BLURP_RENDERERS = {
|
||||
CMS_PLUGIN_BLURP_RENDERERS = {
|
||||
'timesheet': {
|
||||
'name': u'Timesheet of our organization',
|
||||
'class': 'cmsplugin_blurp.renderer.data_source.Renderer',
|
||||
|
@ -247,14 +247,14 @@ SQL Renderer
|
|||
|
||||
Configuration::
|
||||
|
||||
CMS_BLURP_RENDERERS = {
|
||||
CMS_PLUGIN_BLURP_RENDERERS = {
|
||||
'student_table': {
|
||||
'name': u'Table of students',
|
||||
'class': 'cmsplugin_blurp.renderer.sql.Renderer',
|
||||
'url': 'postgresql://scott:tiger@localhost:5432/mydatabase',
|
||||
'views': {
|
||||
'students': {
|
||||
'query': 'QUERY name, age, birthdate FROM student WHERE class_id = :class_id',
|
||||
'query': 'SELECT name, age, birthdate FROM student WHERE class_id = :class_id',
|
||||
'bindparams': {
|
||||
'class_id': 12
|
||||
}
|
||||
|
|
Reference in New Issue