Permalink
Browse files

Deleted unused controllers

  • Loading branch information...
1 parent 23fdc28 commit c96d2a2ddd4fb70abc966ae567b9f7459d112f25 @rochacbruno committed Jan 19, 2012
Showing with 7 additions and 177 deletions.
  1. +5 −0 LICENSE
  2. +0 −27 controllers/activity.py
  3. +0 −15 controllers/ajax.py
  4. +2 −1 controllers/appadmin.py
  5. +0 −27 controllers/comment.py
  6. +0 −27 controllers/group.py
  7. +0 −7 controllers/home.py
  8. +0 −27 controllers/page.py
  9. +0 −19 controllers/people.py
  10. +0 −27 controllers/xxxx.py
View
@@ -0,0 +1,5 @@
+"""
+This file is part of Movuca The Social CMS
+Copyrighted by Bruno Cezar Rocha <rochacbruno@gmail.com>
+License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
+"""
View
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-if session.auth and session.auth.user:
- time_expire = 0
-else:
- time_expire = 300
-
-
-#@auth.requires_login()
-#@cache(request.env.path_info, time_expire=time_expire, cache_model=cache.ram)
-def index():
- from handlers.home import Home
- home = Home()
- home.context.left_sidebar_enabled = True
- home.context.right_sidebar_enabled = True
- return home.render("app/home")
-
-
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")
View
@@ -1,15 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-from movuca import DataBase, User
-from datamodel.article import Category, ContentType, Article
-from datamodel.contenttypes import CookRecipeBook
-
-db = DataBase([User, ContentType, Category, Article, CookRecipeBook])
-
-
-def addtobook():
- return db.CookRecipeBook.fields
View
@@ -24,7 +24,8 @@
CookRecipe,
CookRecipeBook,
CodeRecipe,
- Product])
+ Product,
+ Ads])
ArticleData(db)
auth = db.auth
View
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-if session.auth and session.auth.user:
- time_expire = 0
-else:
- time_expire = 300
-
-
-#@auth.requires_login()
-#@cache(request.env.path_info, time_expire=time_expire, cache_model=cache.ram)
-def index():
- from handlers.home import Home
- home = Home()
- home.context.left_sidebar_enabled = True
- home.context.right_sidebar_enabled = True
- return home.render("app/home")
-
-
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")
View
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-if session.auth and session.auth.user:
- time_expire = 0
-else:
- time_expire = 300
-
-
-#@auth.requires_login()
-#@cache(request.env.path_info, time_expire=time_expire, cache_model=cache.ram)
-def index():
- from handlers.home import Home
- home = Home()
- home.context.left_sidebar_enabled = True
- home.context.right_sidebar_enabled = True
- return home.render("app/home")
-
-
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")
View
@@ -21,13 +21,6 @@ def index():
return home.render("app/home")
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")
-
-
def search():
q = request.vars.q
kind = request.vars.kind
View
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-if session.auth and session.auth.user:
- time_expire = 0
-else:
- time_expire = 300
-
-
-#@auth.requires_login()
-#@cache(request.env.path_info, time_expire=time_expire, cache_model=cache.ram)
-def index():
- from handlers.home import Home
- home = Home()
- home.context.left_sidebar_enabled = True
- home.context.right_sidebar_enabled = True
- return home.render("app/home")
-
-
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")
View
@@ -1,19 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-from movuca import DataBase, User, UserTimeLine
-db = DataBase()
-auth = User(db)
-timeline = UserTimeLine(db)
-
-
-def usertimeline():
- user = request.args(0)
- events = db(timeline.entity.user_id == user).select()
- event_types = timeline.entity._event_types
- ret = DIV(
- UL(
- *[LI(XML(str(event_types[event.event_type]) % event)) for event in events]
- )
- )
- return dict(ret=ret)
View
@@ -1,27 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-
-# from gluon.tools import Auth
-# auth = Auth(DAL(None))
-
-if session.auth and session.auth.user:
- time_expire = 0
-else:
- time_expire = 300
-
-
-#@auth.requires_login()
-#@cache(request.env.path_info, time_expire=time_expire, cache_model=cache.ram)
-def index():
- from handlers.home import Home
- home = Home()
- home.context.left_sidebar_enabled = True
- home.context.right_sidebar_enabled = True
- return home.render("app/home")
-
-
-def base():
- from handlers.base import Base
- base = Base()
- base.context.teste = "TESTEEEE"
- return base.render("app/base")

0 comments on commit c96d2a2

Please sign in to comment.