4049 Commits

Author SHA1 Message Date
Aditi
f6cee302e4 Fix attribute error by writing request.user.is_admin. 2013-07-22 19:10:36 +05:30
Aditi
6353362546 Change class name to BlogPostData(camelcase) and add blog id attribute to the class. 2013-07-22 07:04:29 +05:30
Aditi
391f4456a2 Create may_edit_blogpost function. 2013-07-22 07:01:28 +05:30
Aditi
5230b41895 Remove form action url. 2013-07-21 18:03:48 +05:30
Aditi
511ce0d6c7 Fix media type. 2013-07-21 17:21:01 +05:30
Aditi
783b50057b Make changes in blogpost_edit view. 2013-07-21 17:19:57 +05:30
Aditi
e058cdce91 Create view for blogpost_edit. 2013-07-21 11:24:44 +05:30
Aditi
aebc179da2 Remove unused import. 2013-07-21 11:22:46 +05:30
Jessica Tallon
617bff1830 Fixes some typo's and removes unused imports 2013-07-20 19:08:02 +01:00
Aditi
26de7c2267 Change in blogpost create Url. 2013-07-20 11:35:46 +05:30
Aditi
bafaa93d8c Remove BlogPost model and Add attribute for blog id in BlogPostData. 2013-07-20 11:28:10 +05:30
Aditi
00993a68e5 Add temporary template for blogpost create/edit view. 2013-07-20 11:25:32 +05:30
Aditi
9505f1a395 Add BlogPostMediaManager and setup_plugin. 2013-07-20 11:23:12 +05:30
Aditi
145a173851 Indent properly. 2013-07-20 11:01:52 +05:30
Aditi
0574d30d9a temperory url change for creating a new blog. 2013-07-19 19:33:49 +05:30
Aditi
fa5a13f8f3 Wrote blogpost_create view. 2013-07-19 19:29:13 +05:30
Aditi
03e2a0f806 Add blog media_type plugin to plugin section. 2013-07-19 16:58:35 +05:30
Aditi
b1e234365c Change view and urls for blog edit/create page. 2013-07-19 16:55:42 +05:30
Aditi
e0e02e98bc Replace hardcoded URL by variable for the same. 2013-07-19 16:52:35 +05:30
Aditi
8ab67da4ae Add class BlogMixin. 2013-07-19 16:47:27 +05:30
Aditi
4261c85f04 Create file for utility function and add function. 2013-07-19 16:40:21 +05:30
Aditi
af8f995f38 Add view for blog edit and create page. 2013-07-19 16:37:22 +05:30
xray7224
7271b06282 Moves first versions of the the models to migrations 2013-07-18 20:39:15 +01:00
xray7224
8ddd7769de Adds migration for OAuth1 tables 2013-07-18 20:24:35 +01:00
xray7224
89d5b44e0a Adds test for request_tokens 2013-07-18 19:15:05 +01:00
tilly-Q
6bba33d7e6 Whew. This is a big update. I did some significant keeping work. I moved all of
the folders and enpoints labeled 'admin' to the more accurate term of 'moderat-
ion.' I also created the ability for admins and moderators to add or remove pr-
ivileges or to ban a user in response to a report. This also meant implementing
the UserBan class in various places. I also had to add a column called result
to the ReportBase table. This allows the moderator/admin to leave comments when
they respond to a report, allowing for archiving of what responses they do/n't
take.

--\ mediagoblin/db/migrations.py
--| Added result column to ReportBase

--\ mediagoblin/db/models.py
--| Added result column to ReportBase
--| Added documentation to tables I had made previously

--\ mediagoblin/decorators.py
--| Editted the user_has_privilege decorator to check whether a user has been
  | banned or not
--| Created a seperate user_not_banned decorator to prevent banned users from
  | accessing any pages
--| Changed require_admin_login into require_admin_or_moderator login

--\ mediagoblin/gmg_commands/users.py
--| Made the gmg command `adduser` create a user w/ the appropriate privileges

--\ mediagoblin/moderation/routing.py  << formerly mediagoblin/admin/routing.py
--| Renamed all of the routes from admin -> moderation

--\ mediagoblin/routing.py
--| Renamed all of the routes from admin -> moderation

--\ mediagoblin/moderation/views.py << formerly mediagoblin/admin/views.py
--| Renamed all of the routes & functions from admin -> moderation
--| Expanded greatly on the moderation_reports_detail view and functionality
--| Added in the give_or_take_away_privilege form, however this might be a use-
  | -less function which I could remove (because privilege changes should happe-
  | n in response to a report so they can be archived and visible)

--\ mediagoblin/static/css/base.css
--| Added in a style for the reports_detail page

--\ mediagoblin/templates/mediagoblin/base.html
--| Renamed all of the routes from admin -> moderation

--\ mediagoblin/templates/mediagoblin/moderation/report.html
--| Added form to allow moderators and admins to respond to reports.

--\ mediagoblin/templates/mediagoblin/moderation/reports_panel.html
--| Fixed the table for closed reports

--\ mediagoblin/templates/mediagoblin/moderation/user.html
--| Added in a table w/ all of the user's privileges and the option to add or
  | remove them. Again, this is probably vestigial
--| Renamed all of the routes from admin -> moderation

--\ mediagoblin/templates/mediagoblin/moderation/user_panel.html
--| Renamed all of the routes from admin -> moderation

--\ mediagoblin/tools/response.py
--| Added function render_user_banned, this is the view function for the redir-
  | -ect that happens when a user tries to access the site whilst banned

--\ mediagoblin/user_pages/forms.py
--| Added important translate function where I had text

--\ mediagoblin/user_pages/lib.py
--| Renamed functiion for clarity

--\ mediagoblin/user_pages/views.py
--| Added the user_not_banned decorator to every view

--\ mediagoblin/views.py
--| Added the user_not_banned decorator

--\ mediagoblin/moderation/forms.py
--| Created this new file

--\ mediagoblin/templates/mediagoblin/banned.html
--| Created this new file
--| This is the page which people are redirected to when they access the site
  | while banned
2013-07-17 16:16:07 -04:00
xray7224
86ba416883 Adds some tests for the OAuth and some docs 2013-07-16 19:19:49 +01:00
Aditi
52b5d5a0f4 Add config_spec for blog plugin specification. 2013-07-16 16:11:36 +05:30
Aditi
c80186a98f Change the field name in BlogEditForm. 2013-07-16 12:28:05 +05:30
Aditi
2b2df22d2a Create Blog and BlogPostData models. 2013-07-16 12:08:03 +05:30
Aditi
67d303ffa9 merge with remote master branch of cweb. 2013-07-16 06:48:33 +05:30
Christopher Allan Webber
64ad0beea8 Fixing docs: git submodule update, not git submodule fetch!
This commit sponsored by Charles Combs.  Thank you!
2013-07-14 21:05:01 -05:00
xray7224
1c694fbec5 Fixes tests 2013-07-14 19:00:52 +01:00
xray7224
670717d950 Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin 2013-07-14 17:31:03 +01:00
Christopher Allan Webber
df206ab633 Skip the openid tests if the openid module is not installed.
This commit sponsored by Brandon Smith.  Thank you!
2013-07-14 11:23:52 -05:00
xray7224
cfe7054c13 Using nonce now, preventing OAuth replay attacks 2013-07-14 16:24:04 +01:00
xray7224
e49263564b Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin 2013-07-14 15:27:52 +01:00
Christopher Allan Webber
2d0028e932 Documenting the media_manager fetching hook
This commit sponsored by Christian Corrodi.  Thank you!
2013-07-12 17:13:48 -05:00
Christopher Allan Webber
6403bc928b Switching the hook 'get_media_manager' to a more "directed" tuple-hook
By switching this to a tuple that includes the media type in the key
itself, this requires iteration and execution of functions that
"check" that they are the right type.

This commit sponsored by Greg Grossmeier.  Thanks buddy! :)
2013-07-12 17:04:08 -05:00
Rodney Ewing
91bee92e8e documenting the new media_type plugins and available hooks 2013-07-12 14:35:43 -07:00
Christopher Allan Webber
5305fee13b Merge branch 'rodney757-media_plugins'
Conflicts:
	mediagoblin.ini
	mediagoblin/tests/test_mgoblin_app.ini
2013-07-12 16:24:36 -05:00
Christopher Allan Webber
4259ad5bf1 Fix the last bit preventing all the unit tests from passing in media types->plugins
The last commit was also small, so Jeff Moe gets... two!  Two sponsored commits!
Ah ah ah. </count_voice>
2013-07-12 15:52:20 -05:00
Christopher Allan Webber
60eeb45664 Switch the import of the image media manager over to the new class
This helps resolve one of the remaining issues with the tests for the
media type pluginification.

This commit sponsored by Jeffrey Moe.  Thanks Jeff!  Lulzbot rocks!
2013-07-12 14:53:10 -05:00
Christopher Allan Webber
003ea47499 Changing the information spat out while printing from media types->plugins
Previously it called even plugins media types.  Ha!

This commit sponsored by Jon Merkley.  Thank you!
2013-07-12 14:16:47 -05:00
Rodney Ewing
ac08a9acaf Patch by Strum. Remove redundent tool-tips from Stl media_type 2013-07-12 09:51:42 -07:00
Rodney Ewing
7bfb3ae829 Patch by pythonsnake. Make mediagoblin.ini comments more helpful. 2013-07-12 09:32:50 -07:00
Rodney Ewing
0f231966b3 make change_pass page autofocus 2013-07-11 16:33:33 -07:00
Rodney Ewing
643f07af06 forgot to render errors 2013-07-11 16:29:16 -07:00
Rodney Ewing
a937ea9efd change to class instead of id to work with firefox 2013-07-11 16:29:16 -07:00
Rodney Ewing
f7998c3326 fix for boolean fields 2013-07-11 16:29:16 -07:00