Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Deleted unused controllers

  • Loading branch information...
commit c96d2a2ddd4fb70abc966ae567b9f7459d112f25 1 parent 23fdc28
@rochacbruno authored
View
5 LICENSE
@@ -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
27 controllers/activity.py
@@ -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
15 controllers/ajax.py
@@ -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
3  controllers/appadmin.py
@@ -24,7 +24,8 @@
CookRecipe,
CookRecipeBook,
CodeRecipe,
- Product])
+ Product,
+ Ads])
ArticleData(db)
auth = db.auth
View
27 controllers/comment.py
@@ -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
27 controllers/group.py
@@ -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
7 controllers/home.py
@@ -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
27 controllers/page.py
@@ -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
19 controllers/people.py
@@ -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
27 controllers/xxxx.py
@@ -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.
Something went wrong with that request. Please try again.