Integrate automatic discovery of client versions
[snf-cloudcms] / cloudcms / cms.py
index 0cb997a..3d72a00 100644 (file)
@@ -54,7 +54,8 @@ from feincms.content.template.models import TemplateContent
 from feincms.content.video.models import VideoContent
 from feincms.content.richtext.models import RichTextContent
 
 from feincms.content.video.models import VideoContent
 from feincms.content.richtext.models import RichTextContent
 
-from cloudcmsblog.models import Entry
+from cloudcmsblog.models import Entry, LatestEntries
+from cloudcmsresources.models import ResourcesList
 from cloudcms.content import *
 
 Page.register_extensions(
 from cloudcms.content import *
 
 Page.register_extensions(
@@ -76,6 +77,7 @@ TEMPLATES = [{
     'regions': (
         ('main', 'Main region'),
         ('sidebar', 'Sidebar', 'inherited'),
     'regions': (
         ('main', 'Main region'),
         ('sidebar', 'Sidebar', 'inherited'),
+        ('bottom', 'Bottom section', 'inherited'),
         ),
     },
     {
         ),
     },
     {
@@ -94,6 +96,7 @@ TEMPLATES = [{
     'regions': (
         ('main', 'Main region'),
         ('sidebar', 'Sidebar', 'inherited'),
     'regions': (
         ('main', 'Main region'),
         ('sidebar', 'Sidebar', 'inherited'),
+        ('bottom', 'Bottom section', 'inherited'),
         ),
     },
     {
         ),
     },
     {
@@ -102,6 +105,7 @@ TEMPLATES = [{
     'path': 'cms/pages/onecol.html',
     'regions': (
         ('main', 'Main region'),
     'path': 'cms/pages/onecol.html',
     'regions': (
         ('main', 'Main region'),
+        ('bottom', 'Bottom region'),
         ),
     },
     {
         ),
     },
     {
@@ -113,6 +117,14 @@ TEMPLATES = [{
         ('sidebar', 'Sidebar', 'inherited'),
         ),
     },
         ('sidebar', 'Sidebar', 'inherited'),
         ),
     },
+    {
+    'key': 'raw',
+    'title': 'Empty content template',
+    'path': 'cms/pages/empty.html',
+    'regions': (
+        ('main', 'Main region'),
+        ),
+    },
 ]
 
 # register templates
 ]
 
 # register templates
@@ -125,6 +137,9 @@ Page.create_content_type(TemplateContent)
 Page.create_content_type(TwitterFeed)
 Page.create_content_type(VideoContent)
 Page.create_content_type(VideoSection)
 Page.create_content_type(TwitterFeed)
 Page.create_content_type(VideoContent)
 Page.create_content_type(VideoSection)
+Page.create_content_type(LatestEntries)
+Page.create_content_type(IntroButton)
+Page.create_content_type(ClientDownload)
 Page.create_content_type(ImageContent, POSITION_CHOICES=(
     ('default', 'Default position'),
 ))
 Page.create_content_type(ImageContent, POSITION_CHOICES=(
     ('default', 'Default position'),
 ))
@@ -139,6 +154,7 @@ Page.create_content_type(ApplicationContent, APPLICATIONS=(
 # cloudcms specific content registration
 Page.create_content_type(LoginForm)
 Page.create_content_type(AboutBlock)
 # cloudcms specific content registration
 Page.create_content_type(LoginForm)
 Page.create_content_type(AboutBlock)
+Page.create_content_type(ResourcesList)
 
 
 # Feincms specific registrations for our blog entry model
 
 
 # Feincms specific registrations for our blog entry model
@@ -151,5 +167,6 @@ Entry.create_content_type(TemplateContent)
 Entry.create_content_type(VideoContent)
 Entry.create_content_type(TwitterFeed)
 Entry.create_content_type(RawContent)
 Entry.create_content_type(VideoContent)
 Entry.create_content_type(TwitterFeed)
 Entry.create_content_type(RawContent)
+Entry.create_content_type(LatestEntries)
 Entry.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),))
 
 Entry.create_content_type(SectionContent, TYPE_CHOICES=(('block', 'Block'),))