From 0ff6db861aee2c767b0b5d4321172601debe0008 Mon Sep 17 00:00:00 2001 From: Aditi Date: Wed, 26 Jun 2013 23:27:45 +0530 Subject: [PATCH] Created filr structure for blog as a plugin(option 1). --- mediagoblin/plugins/blog/LICENCE | 0 mediagoblin/plugins/blog/README.srt | 0 mediagoblin/plugins/blog/__init__.py | 0 mediagoblin/plugins/blog/forms.py | 17 +++++++++++++++++ mediagoblin/plugins/blog/setup.py | 10 ++++++++++ .../plugins/blog/templates/blogpost_edit.html | 19 +++++++++++++++++++ mediagoblin/plugins/blog/views.py | 16 ++++++++++++++++ 7 files changed, 62 insertions(+) create mode 100644 mediagoblin/plugins/blog/LICENCE create mode 100644 mediagoblin/plugins/blog/README.srt create mode 100644 mediagoblin/plugins/blog/__init__.py create mode 100644 mediagoblin/plugins/blog/forms.py create mode 100644 mediagoblin/plugins/blog/setup.py create mode 100644 mediagoblin/plugins/blog/templates/blogpost_edit.html create mode 100644 mediagoblin/plugins/blog/views.py diff --git a/mediagoblin/plugins/blog/LICENCE b/mediagoblin/plugins/blog/LICENCE new file mode 100644 index 00000000..e69de29b diff --git a/mediagoblin/plugins/blog/README.srt b/mediagoblin/plugins/blog/README.srt new file mode 100644 index 00000000..e69de29b diff --git a/mediagoblin/plugins/blog/__init__.py b/mediagoblin/plugins/blog/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/mediagoblin/plugins/blog/forms.py b/mediagoblin/plugins/blog/forms.py new file mode 100644 index 00000000..52af1cf1 --- /dev/null +++ b/mediagoblin/plugins/blog/forms.py @@ -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 . + +import wtforms diff --git a/mediagoblin/plugins/blog/setup.py b/mediagoblin/plugins/blog/setup.py new file mode 100644 index 00000000..c4e0ee97 --- /dev/null +++ b/mediagoblin/plugins/blog/setup.py @@ -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', + ) diff --git a/mediagoblin/plugins/blog/templates/blogpost_edit.html b/mediagoblin/plugins/blog/templates/blogpost_edit.html new file mode 100644 index 00000000..fec7a9c2 --- /dev/null +++ b/mediagoblin/plugins/blog/templates/blogpost_edit.html @@ -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 . +-#} +{% extends "mediagoblin/base.html" %} + diff --git a/mediagoblin/plugins/blog/views.py b/mediagoblin/plugins/blog/views.py new file mode 100644 index 00000000..c4e8601d --- /dev/null +++ b/mediagoblin/plugins/blog/views.py @@ -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 . -- 2.25.1