Created filr structure for blog as a plugin(option 1).
This commit is contained in:
parent
054ef9a76a
commit
0ff6db861a
0
mediagoblin/plugins/blog/LICENCE
Normal file
0
mediagoblin/plugins/blog/LICENCE
Normal file
0
mediagoblin/plugins/blog/README.srt
Normal file
0
mediagoblin/plugins/blog/README.srt
Normal file
0
mediagoblin/plugins/blog/__init__.py
Normal file
0
mediagoblin/plugins/blog/__init__.py
Normal file
17
mediagoblin/plugins/blog/forms.py
Normal file
17
mediagoblin/plugins/blog/forms.py
Normal file
@ -0,0 +1,17 @@
|
||||
# GNU MediaGoblin -- federated, autonomous media hosting
|
||||
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import wtforms
|
10
mediagoblin/plugins/blog/setup.py
Normal file
10
mediagoblin/plugins/blog/setup.py
Normal file
@ -0,0 +1,10 @@
|
||||
from setuptools import setup, find_packages
|
||||
|
||||
setup(
|
||||
name = 'blog',
|
||||
version = '1.0',
|
||||
packages = find_packages();
|
||||
include_package_data = True,
|
||||
install_requires = [],
|
||||
license = 'AGPLv3',
|
||||
)
|
19
mediagoblin/plugins/blog/templates/blogpost_edit.html
Normal file
19
mediagoblin/plugins/blog/templates/blogpost_edit.html
Normal file
@ -0,0 +1,19 @@
|
||||
{#
|
||||
# GNU MediaGoblin -- federated, autonomous media hosting
|
||||
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-#}
|
||||
{% extends "mediagoblin/base.html" %}
|
||||
|
16
mediagoblin/plugins/blog/views.py
Normal file
16
mediagoblin/plugins/blog/views.py
Normal file
@ -0,0 +1,16 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# GNU MediaGoblin -- federated, autonomous media hosting
|
||||
# Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
Loading…
x
Reference in New Issue
Block a user