src/ldt/ldt/admin.py
author cavaliet
Thu, 24 May 2012 16:04:07 +0200
branchmaintenance_0.21
changeset 624 2252fb64f74e
parent 129 e9f11d142db5
permissions -rw-r--r--
update ldt for maintenance 00.21.2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
129
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     1
##from django.contrib import admin
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     2
#from ldt.management import test_cms
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     3
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     4
#"""
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     5
#site admin pour cms page
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     6
#"""
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     7
#if test_cms():
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     8
#    pass
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
     9
##    class AdminSite(admin.AdminSite):
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    10
##        index_template = 'admin/page_index.html'
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    11
##        login_template = 'admin/page_login.html'
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    12
##        app_index_template = 'admin/page_app_index.html'    
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    13
#        
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    14
##    admin_site = AdminSite()
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    15
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    16
##    from cms.models import Page
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    17
##    from cms.admin import pageadmin
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    18
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    19
##    class CmsPageAdmin(pageadmin.PageAdmin):
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    20
##        change_list_template = "admin/cms_change_list.html"
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    21
##       change_form_template = "admin/cms_change_form.html"
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    22
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    23
##    admin_site.register(Page, CmsPageAdmin)
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    24
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    25
##    from cms.plugins.snippet.models import Snippet
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    26
##    from cms.plugins.snippet.admin import SnippetAdmin
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    27
#
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    28
##    class CmsSnippetAdmin(SnippetAdmin):
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    29
##        change_form_template = "admin/page_change_form.html"
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    30
##        change_list_template = "admin/page_change_list.html"
e9f11d142db5 the code works, but is not totally clean. all the parts meant to be removed are commented.
cavaliet
parents: 13
diff changeset
    31
##    admin_site.register(Snippet, CmsSnippetAdmin)