# Path: poweredsites/libs/handler.py
# class ErrorHandler(BaseHandler):
#     """Default 404: Not Found handler."""
#     def prepare(self):
#         super(ErrorHandler, self).prepare()
#         raise HTTPError(404)
# 
# Path: poweredsites/handlers/admin.py
# class AdminIndexHandler(AdminBaseHandler):
# class AdminClearCacheHandler(AdminBaseHandler):
# class AdminNewUsersHandler(AdminBaseHandler):
#     def get(self):
#     def get(self):
#     def get(self):
# 
# Path: poweredsites/handlers/blog.py
# class BlogBaseHandler(BaseHandler):
# class BlogIndexHandler(BlogBaseHandler):
# class BlogEntryHandler(BlogBaseHandler):
# class BlogArchiveHandler(BlogBaseHandler):
# class BlogFeedHandler(BlogBaseHandler):
# class BlogComposeHandler(BlogBaseHandler):
# class BlogEntryModule(UIModule):
#     def prepare(self):
#     def bloggers(self):
#     def get(self):
#     def get(self, slug):
#     def get(self):
#     def get(self):
#     def get(self):
#     def post(self):
#     def render(self, entry):
# 
# Path: poweredsites/handlers/front.py
# class FrontSearchHandler(BaseHandler):
# class FrontFeedsHandler(BaseHandler):
# class FrontIndexHandler(BaseHandler):
# class FrontTopHandler(FrontIndexHandler):
# class FrontOpensourceHandler(FrontIndexHandler):
# class WebsitesModule(UIModule, PaginationMixin):
# class WebsitesIndexModule(UIModule):
# class WebsitesTopModule(WebsitesIndexModule):
# class WebsitesOpensourceModule(WebsitesIndexModule):
#     def get(self):
#     def get(self):
#     def get(self):
#     def render(self, count_query, query, page):
#     def render(self, count_query, query, page):
# 
# Path: poweredsites/handlers/help.py
# class HelpHandler(BaseHandler):
#     def get(self, slug=""):
# 
# Path: poweredsites/handlers/project.py
# class ProjectBaseHandler(BaseHandler):
# class ProjectMainHandler(ProjectBaseHandler):
# class SubmitProjectHandler(ProjectBaseHandler):
# class SubmitProjectPreHandler(ProjectBaseHandler):
# class ProjectIndexHandler(ProjectBaseHandler):
# class ProjectTopHandler(ProjectIndexHandler):
# class ProjectOpensourceHandler(ProjectIndexHandler):
# class HotProjectsModule(UIModule):
# class SideProjectsModule(HotProjectsModule):
#     def categories(self):
#     def get(self):
#     def _get_count(self, query):
#     def get(self):
#     def _on_fetch(self, response):
#     def post(self):
#     def get(self):
#     def post(self):
#     def get(self):
#     def get_hot_projects(self, offset=10):
#     def render(self):
#     def render(self):
# 
# Path: poweredsites/handlers/site.py
# class SubmitSitePreHandler(BaseHandler):
# class SubmitSiteHandler(SubmitProjectHandler, AlexaRankMixin, \
#                         PageRankMinxin):
# class SubmitSitePoweredHandler(BaseHandler):
# class _WebsiteHandler(BaseHandler):
# class WebsiteHandler(BaseHandler):
# class _WebsiteIndexHandler(BaseHandler):
# class _WebsitesFeedsHandler(BaseHandler):
# class WebsitePoweredsModule(UIModule):
#     def get(self):
#     def post(self):
#     def _authorize(self, author_id):
#     def get(self):
#     def post(self):
#     def _ar_callback(self, ar):
#     def _pr_callback(self, pr):
#     def prepare(self):
#     def _authorize(self, author_id):
#     def get_powered_project(self, site_id):
#     def get(self):
#     def post(self):
#     def get(self, uuid_):
#     def cache_pre(self, slug):
#     def cache_condition(self):
#     def get(self, slug):
#     def get(self):
#     def get(self):
#     def render(self, site_id):
# 
# Path: poweredsites/handlers/user.py
# class LoginHandler(BaseHandler):
# class LogoutHandler(BaseHandler):
# class OpenidLoginHandler(BaseHandler):
# class FacebookLoginHandler(OpenidLoginHandler, tornado.auth.FacebookMixin):
# class FriendfeedLoginHandler(OpenidLoginHandler, tornado.auth.FriendFeedMixin):
# class GoogleLoginHandler(OpenidLoginHandler, tornado.auth.GoogleMixin):
# class TwitterLoginHandler(OpenidLoginHandler, tornado.auth.TwitterMixin):
# class ProfileHandler(BaseHandler):
# class UserCheckHandler(BaseHandler):
# class UserHandler(BaseHandler):
#     def get(self):
#     def get(self):
#     def _cache_next(self):
#     def _next_key_gen(self):
#     def get(self):
#     def _login(self, user):
#     def _create_user(self, openid_api, openid_id, openid_name, email, username):
#     def _login_redirect(self, status_):
#     def get(self):
#     def _on_auth(self, openid):
#     def get(self):
#     def _on_auth(self, openid):
#     def _on_auth(self, openid):
#     def get(self):
#     def _on_auth(self, openid):
#     def get(self):
#     def post(self):
#     def post(self):
#     def get(self, username):


from poweredsites.libs.handler import ErrorHandler
from poweredsites.handlers import admin, blog, front, \
            help, project, site, user

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.


handlers = []
sub_handlers = []
ui_modules = {}



handlers.extend(front.handlers)
handlers.extend(user.handlers)
handlers.extend(site.handlers)
handlers.extend(project.handlers)
handlers.extend(help.handlers)

# Append default 404 handler, and make sure it is the last one.
handlers.append((r".*", ErrorHandler))


sub_handlers.append(site.sub_handlers)
sub_handlers.append(blog.sub_handlers)
sub_handlers.append(admin.sub_handlers)
# wildcat subdomain handler for project should be the last one.
sub_handlers.append(project.sub_handlers)


# Path: poweredsites/libs/handler.py
# class ErrorHandler(BaseHandler):
#     """Default 404: Not Found handler."""
#     def prepare(self):
#         super(ErrorHandler, self).prepare()
#         raise HTTPError(404)
# 
# Path: poweredsites/handlers/admin.py
# class AdminIndexHandler(AdminBaseHandler):
# class AdminClearCacheHandler(AdminBaseHandler):
# class AdminNewUsersHandler(AdminBaseHandler):
#     def get(self):
#     def get(self):
#     def get(self):
# 
# Path: poweredsites/handlers/blog.py
# class BlogBaseHandler(BaseHandler):
# class BlogIndexHandler(BlogBaseHandler):
# class BlogEntryHandler(BlogBaseHandler):
# class BlogArchiveHandler(BlogBaseHandler):
# class BlogFeedHandler(BlogBaseHandler):
# class BlogComposeHandler(BlogBaseHandler):
# class BlogEntryModule(UIModule):
#     def prepare(self):
#     def bloggers(self):
#     def get(self):
#     def get(self, slug):
#     def get(self):
#     def get(self):
#     def get(self):
#     def post(self):
#     def render(self, entry):
# 
# Path: poweredsites/handlers/front.py
# class FrontSearchHandler(BaseHandler):
# class FrontFeedsHandler(BaseHandler):
# class FrontIndexHandler(BaseHandler):
# class FrontTopHandler(FrontIndexHandler):
# class FrontOpensourceHandler(FrontIndexHandler):
# class WebsitesModule(UIModule, PaginationMixin):
# class WebsitesIndexModule(UIModule):
# class WebsitesTopModule(WebsitesIndexModule):
# class WebsitesOpensourceModule(WebsitesIndexModule):
#     def get(self):
#     def get(self):
#     def get(self):
#     def render(self, count_query, query, page):
#     def render(self, count_query, query, page):
# 
# Path: poweredsites/handlers/help.py
# class HelpHandler(BaseHandler):
#     def get(self, slug=""):
# 
# Path: poweredsites/handlers/project.py
# class ProjectBaseHandler(BaseHandler):
# class ProjectMainHandler(ProjectBaseHandler):
# class SubmitProjectHandler(ProjectBaseHandler):
# class SubmitProjectPreHandler(ProjectBaseHandler):
# class ProjectIndexHandler(ProjectBaseHandler):
# class ProjectTopHandler(ProjectIndexHandler):
# class ProjectOpensourceHandler(ProjectIndexHandler):
# class HotProjectsModule(UIModule):
# class SideProjectsModule(HotProjectsModule):
#     def categories(self):
#     def get(self):
#     def _get_count(self, query):
#     def get(self):
#     def _on_fetch(self, response):
#     def post(self):
#     def get(self):
#     def post(self):
#     def get(self):
#     def get_hot_projects(self, offset=10):
#     def render(self):
#     def render(self):
# 
# Path: poweredsites/handlers/site.py
# class SubmitSitePreHandler(BaseHandler):
# class SubmitSiteHandler(SubmitProjectHandler, AlexaRankMixin, \
#                         PageRankMinxin):
# class SubmitSitePoweredHandler(BaseHandler):
# class _WebsiteHandler(BaseHandler):
# class WebsiteHandler(BaseHandler):
# class _WebsiteIndexHandler(BaseHandler):
# class _WebsitesFeedsHandler(BaseHandler):
# class WebsitePoweredsModule(UIModule):
#     def get(self):
#     def post(self):
#     def _authorize(self, author_id):
#     def get(self):
#     def post(self):
#     def _ar_callback(self, ar):
#     def _pr_callback(self, pr):
#     def prepare(self):
#     def _authorize(self, author_id):
#     def get_powered_project(self, site_id):
#     def get(self):
#     def post(self):
#     def get(self, uuid_):
#     def cache_pre(self, slug):
#     def cache_condition(self):
#     def get(self, slug):
#     def get(self):
#     def get(self):
#     def render(self, site_id):
# 
# Path: poweredsites/handlers/user.py
# class LoginHandler(BaseHandler):
# class LogoutHandler(BaseHandler):
# class OpenidLoginHandler(BaseHandler):
# class FacebookLoginHandler(OpenidLoginHandler, tornado.auth.FacebookMixin):
# class FriendfeedLoginHandler(OpenidLoginHandler, tornado.auth.FriendFeedMixin):
# class GoogleLoginHandler(OpenidLoginHandler, tornado.auth.GoogleMixin):
# class TwitterLoginHandler(OpenidLoginHandler, tornado.auth.TwitterMixin):
# class ProfileHandler(BaseHandler):
# class UserCheckHandler(BaseHandler):
# class UserHandler(BaseHandler):
#     def get(self):
#     def get(self):
#     def _cache_next(self):
#     def _next_key_gen(self):
#     def get(self):
#     def _login(self, user):
#     def _create_user(self, openid_api, openid_id, openid_name, email, username):
#     def _login_redirect(self, status_):
#     def get(self):
#     def _on_auth(self, openid):
#     def get(self):
#     def _on_auth(self, openid):
#     def _on_auth(self, openid):
#     def get(self):
#     def _on_auth(self, openid):
#     def get(self):
#     def post(self):
#     def post(self):
#     def get(self, username):


# Path: poweredsites/urls.py
from poweredsites.libs.handler import ErrorHandler
from poweredsites.handlers import admin, blog, front, \
            help, project, site, user

#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.


handlers = []
sub_handlers = []
ui_modules = {}



handlers.extend(front.handlers)
handlers.extend(user.handlers)
handlers.extend(site.handlers)
handlers.extend(project.handlers)
handlers.extend(help.handlers)

# Append default 404 handler, and make sure it is the last one.
handlers.append((r".*", ErrorHandler))


sub_handlers.append(site.sub_handlers)
sub_handlers.append(blog.sub_handlers)
sub_handlers.append(admin.sub_handlers)
# wildcat subdomain handler for project should be the last one.
sub_handlers.append(project.sub_handlers)


ui_modules.update(front.ui_modules)
