Aditi [Tue, 30 Jul 2013 13:18:41 +0000 (18:48 +0530)]
Add tinymce in head for description field of blog, blogpost edit and create templates.
Aditi [Tue, 30 Jul 2013 10:26:57 +0000 (15:56 +0530)]
Change blogpost_create redirect url.
Aditi [Tue, 30 Jul 2013 10:02:21 +0000 (15:32 +0530)]
Add temporary blogpost display template.
Aditi [Tue, 30 Jul 2013 09:56:11 +0000 (15:26 +0530)]
Add feature: redirect to 404 error if blog or blog post slug do not exist.
tilly-Q [Mon, 29 Jul 2013 22:40:19 +0000 (18:40 -0400)]
Merge branch 'ticket-679' into OPW-Moderation-Update
Conflicts:
mediagoblin/auth/tools.py
mediagoblin/auth/views.py
mediagoblin/db/migration_tools.py
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/decorators.py
mediagoblin/user_pages/views.py
Christopher Allan Webber [Mon, 29 Jul 2013 21:50:29 +0000 (16:50 -0500)]
Why isn't .ogg in this list? A comment explains... it's detected by sniffing!
This commit sponsored by Tom Marble. Thanks Tom!
tilly-Q [Mon, 29 Jul 2013 21:15:29 +0000 (17:15 -0400)]
I actually had to do a bit more work than I thought, because I needed to account
for plugins. In this commit I changed the MigrationManager and DatabaseData ob-
jects to account for FOUNDATIONS in any plugin's (or main program's) models.py
file.
tilly-Q [Mon, 29 Jul 2013 20:36:06 +0000 (16:36 -0400)]
This was a very simple ticket actually. I created a list called FOUNDATIONS in
mediagoblin/db/models.py. This list holds all of the information about rows that
should be created at database initialization. Read the documentation near the
FOUNDATIONS list to understand the proper format for this list.
All of the work is done through a new method on MigrationManager in
mediagoblin/db/migrations_tools.py. This method, `populate_table_foundations`
parses the FOUNDATIONS list and creates the foundations based on the data incl-
uded. This only ever happens when the database is initialized. Migrations to
releases with new Foundations should be very easy just using the basic
database functionality.
tilly-Q [Mon, 29 Jul 2013 19:14:39 +0000 (15:14 -0400)]
This is a very small commit. All that I have done here is to clean up my code
a bit. I made it so that mediagoblin.user_pages.report recieves the report
form as part of it's context. I also made sure I used {% trans %} tags effect-
-ively.
Rodney Ewing [Mon, 29 Jul 2013 18:25:34 +0000 (11:25 -0700)]
babel 1.0 doesn't have a localedata.list() method, so updated setup.py.
made "import crypto" fully qualified
xray7224 [Mon, 29 Jul 2013 16:48:53 +0000 (17:48 +0100)]
Fix problem causing exception when invalid Authentication header provided
xray7224 [Mon, 29 Jul 2013 16:28:50 +0000 (17:28 +0100)]
Fix problem with routing to oauth
xray7224 [Mon, 29 Jul 2013 16:25:10 +0000 (17:25 +0100)]
Fixes problem with headers pointing to old federation dir
Aditi [Mon, 29 Jul 2013 12:30:02 +0000 (18:00 +0530)]
Add Blog Edit button.
Aditi [Mon, 29 Jul 2013 08:01:35 +0000 (13:31 +0530)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Aditi [Mon, 29 Jul 2013 07:57:30 +0000 (13:27 +0530)]
Fix error in blog edit view.
Aditi [Mon, 29 Jul 2013 05:38:03 +0000 (11:08 +0530)]
Change Redirect url to blog dashboard in blog_edit view.
tilly-Q [Sat, 27 Jul 2013 20:44:40 +0000 (16:44 -0400)]
This commit had some important milestones in it. The major update is that now I
have mostly completed the moderator punishment and resolution of reports. Along
with this, I have also added one last table to the database: one that holds ar-
-chived (or resolved) reports. This is some of the primary functionality of my
whole update, so this is a big step! The other changes I made this update are
primarily organizational. I refactored some of my code into functions and I cl-
eaned up many of my templates.
--\ mediagoblin/db/models.py
--| Created the new ArchivedReport table
--| Removed columns from BaseReport table that are only necessary for Archived
| reports
--\ mediagoblin/db/migrations.py
--| Created the new ArchivedReport table
--| Removed columns from BaseReport table that are only necessary for Archived
| reports
--\ mediagoblin/db/util.py
--| Created the user_privileges_to_dictionary function. This is useful for
| accessing a user's permissions from within a template.
--\ mediagoblin/moderation/forms.py
--| Expanded the disciplinary actions a moderator can take
--| Allowed the moderator to choose more than one disciplinary action at a time
| (It's now managed with a list of checkboxes rather than radio buttons)
----| Pulled a MultiCheckBox class from a wtforms tutorial
--| Added various other form inputs for details of the moderator's disciplinary
| actions
--| Tried to ensure that every string is unicode and translated
--\ mediagoblin/moderation/tools.py
--| Created this file for holding useful moderation tools
--| Moved the penalizing code from views to the function take_punitive_actions
--| Added many more types of punitive actions
--| Added the archiving of old reports
--\ mediagoblin/moderation/views.py
--| Used the privileges_to_dictionary function for the Users Detail view to
| allow for different actions available to a moderator and an admin.
--| Added in functionality for ArchivedReports to the reports_detail and
| reports_panel views
--| Moved the punishments of repots_detail to tools.py (as mentioned above)
--\ mediagoblin/static/css/base.css
--| Added new styling for the User Detail page
--\ mediagoblin/static/images/icon_clipboard_alert.png
--| Added this image to represent unresolved reports
--\ mediagoblin/templates/mediagoblin/moderation/report.html
--| Added 'Return to Reports Panel' button
--| Fixed the spacing to be less that 80 columns wide
--| Added in display for Archived Reports
--\ mediagoblin/templates/mediagoblin/moderation/reports_panel.html
--| Changed the placement and columns of the tables
--| Fixed the spacing to be less that 80 columns wide
--| Added in display for Archived Reports
--\ mediagoblin/templates/mediagoblin/moderation/user.html
--| Fixed the spacing to be less that 80 columns wide
--| Took away the moderator's ability to add and remove privileges at will.
| Only the admin has this power now.
--\ mediagoblin/templates/mediagoblin/moderation/users_panel.html
--| Fixed the spacing to be less that 80 columns wide
--\ mediagoblin/tools/response.py
--| Added in code to remove a UserBan from a User if that user logs in after
| the expiration date
Christopher Allan Webber [Thu, 25 Jul 2013 20:15:49 +0000 (15:15 -0500)]
Set up in-package virtualenv via make
Christopher Allan Webber [Thu, 25 Jul 2013 19:56:08 +0000 (14:56 -0500)]
Removing aclocal.m4, which is autogenerated
Christopher Allan Webber [Thu, 25 Jul 2013 19:53:18 +0000 (14:53 -0500)]
Adding .gitignore for pyconfigure/automake generated files
Christopher Allan Webber [Thu, 25 Jul 2013 19:34:48 +0000 (14:34 -0500)]
Moving setup.py.in back to setup.py
Christopher Allan Webber [Thu, 25 Jul 2013 19:29:30 +0000 (14:29 -0500)]
Merge remote-tracking branch 'refs/remotes/brandoninvergo/pyconfigure' into merge-pyconfigure
Christopher Allan Webber [Thu, 25 Jul 2013 19:05:50 +0000 (14:05 -0500)]
More up to date README
Aditi [Thu, 25 Jul 2013 09:34:05 +0000 (15:04 +0530)]
Remove action url from form action.
Aditi [Thu, 25 Jul 2013 09:30:31 +0000 (15:00 +0530)]
Fix blog extraction for get and post both type of requests.
Aditi [Thu, 25 Jul 2013 07:51:35 +0000 (13:21 +0530)]
Change edit url to a button for each blog post.
Aditi [Thu, 25 Jul 2013 07:47:44 +0000 (13:17 +0530)]
Add edit url for each blog post.
Aditi [Wed, 24 Jul 2013 10:04:51 +0000 (15:34 +0530)]
Add 'Add Blog Post' button on blog dashboard.
Aditi [Wed, 24 Jul 2013 05:02:20 +0000 (10:32 +0530)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Christopher Allan Webber [Wed, 24 Jul 2013 01:24:30 +0000 (20:24 -0500)]
Move the "cd mediagoblin" to the right line. Thanks usrnix!
This commit sponsored by Kenneth Dombrowski. Thanks!
xray7224 [Mon, 22 Jul 2013 16:06:00 +0000 (17:06 +0100)]
Renames OAuth1 code to federation
xray7224 [Mon, 22 Jul 2013 15:56:22 +0000 (16:56 +0100)]
Refactor WTFormData
Jessica Tallon [Mon, 22 Jul 2013 16:17:01 +0000 (17:17 +0100)]
Fix problem with migration - OAuth
Aditi [Mon, 22 Jul 2013 13:45:06 +0000 (19:15 +0530)]
Write template for blog_dashboard.
Aditi [Mon, 22 Jul 2013 13:42:54 +0000 (19:12 +0530)]
Format url for blog_dashboard view.
Aditi [Mon, 22 Jul 2013 13:41:33 +0000 (19:11 +0530)]
Write blog_dashboard view.
Aditi [Mon, 22 Jul 2013 13:40:36 +0000 (19:10 +0530)]
Fix attribute error by writing request.user.is_admin.
Aditi [Mon, 22 Jul 2013 01:34:29 +0000 (07:04 +0530)]
Change class name to BlogPostData(camelcase) and add blog id attribute to the class.
Aditi [Mon, 22 Jul 2013 01:31:28 +0000 (07:01 +0530)]
Create may_edit_blogpost function.
Aditi [Sun, 21 Jul 2013 12:33:48 +0000 (18:03 +0530)]
Remove form action url.
Aditi [Sun, 21 Jul 2013 11:51:01 +0000 (17:21 +0530)]
Fix media type.
Aditi [Sun, 21 Jul 2013 11:49:57 +0000 (17:19 +0530)]
Make changes in blogpost_edit view.
Aditi [Sun, 21 Jul 2013 05:54:44 +0000 (11:24 +0530)]
Create view for blogpost_edit.
Aditi [Sun, 21 Jul 2013 05:52:46 +0000 (11:22 +0530)]
Remove unused import.
Jessica Tallon [Sat, 20 Jul 2013 18:08:02 +0000 (19:08 +0100)]
Fixes some typo's and removes unused imports
Aditi [Sat, 20 Jul 2013 06:05:46 +0000 (11:35 +0530)]
Change in blogpost create Url.
Aditi [Sat, 20 Jul 2013 05:58:10 +0000 (11:28 +0530)]
Remove BlogPost model and Add attribute for blog id in BlogPostData.
Aditi [Sat, 20 Jul 2013 05:55:32 +0000 (11:25 +0530)]
Add temporary template for blogpost create/edit view.
Aditi [Sat, 20 Jul 2013 05:53:12 +0000 (11:23 +0530)]
Add BlogPostMediaManager and setup_plugin.
Aditi [Sat, 20 Jul 2013 05:31:52 +0000 (11:01 +0530)]
Indent properly.
Aditi [Fri, 19 Jul 2013 14:03:49 +0000 (19:33 +0530)]
temperory url change for creating a new blog.
Aditi [Fri, 19 Jul 2013 13:59:13 +0000 (19:29 +0530)]
Wrote blogpost_create view.
Aditi [Fri, 19 Jul 2013 11:28:35 +0000 (16:58 +0530)]
Add blog media_type plugin to plugin section.
Aditi [Fri, 19 Jul 2013 11:25:42 +0000 (16:55 +0530)]
Change view and urls for blog edit/create page.
Aditi [Fri, 19 Jul 2013 11:22:35 +0000 (16:52 +0530)]
Replace hardcoded URL by variable for the same.
Aditi [Fri, 19 Jul 2013 11:17:27 +0000 (16:47 +0530)]
Add class BlogMixin.
Aditi [Fri, 19 Jul 2013 11:10:21 +0000 (16:40 +0530)]
Create file for utility function and add function.
Aditi [Fri, 19 Jul 2013 11:07:22 +0000 (16:37 +0530)]
Add view for blog edit and create page.
xray7224 [Thu, 18 Jul 2013 19:39:15 +0000 (20:39 +0100)]
Moves first versions of the the models to migrations
xray7224 [Thu, 18 Jul 2013 19:21:35 +0000 (20:21 +0100)]
Adds migration for OAuth1 tables
xray7224 [Thu, 18 Jul 2013 18:15:05 +0000 (19:15 +0100)]
Adds test for request_tokens
tilly-Q [Wed, 17 Jul 2013 20:16:07 +0000 (16:16 -0400)]
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
xray7224 [Tue, 16 Jul 2013 18:19:49 +0000 (19:19 +0100)]
Adds some tests for the OAuth and some docs
Aditi [Tue, 16 Jul 2013 10:41:36 +0000 (16:11 +0530)]
Add config_spec for blog plugin specification.
Aditi [Tue, 16 Jul 2013 06:58:05 +0000 (12:28 +0530)]
Change the field name in BlogEditForm.
Aditi [Tue, 16 Jul 2013 06:38:03 +0000 (12:08 +0530)]
Create Blog and BlogPostData models.
Aditi [Tue, 16 Jul 2013 01:18:33 +0000 (06:48 +0530)]
merge with remote master branch of cweb.
Christopher Allan Webber [Mon, 15 Jul 2013 02:05:01 +0000 (21:05 -0500)]
Fixing docs: git submodule update, not git submodule fetch!
This commit sponsored by Charles Combs. Thank you!
xray7224 [Sun, 14 Jul 2013 18:00:52 +0000 (19:00 +0100)]
Fixes tests
xray7224 [Sun, 14 Jul 2013 16:31:03 +0000 (17:31 +0100)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Christopher Allan Webber [Sun, 14 Jul 2013 16:23:52 +0000 (11:23 -0500)]
Skip the openid tests if the openid module is not installed.
This commit sponsored by Brandon Smith. Thank you!
xray7224 [Sun, 14 Jul 2013 15:24:04 +0000 (16:24 +0100)]
Using nonce now, preventing OAuth replay attacks
xray7224 [Sun, 14 Jul 2013 14:27:52 +0000 (15:27 +0100)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Christopher Allan Webber [Fri, 12 Jul 2013 22:13:48 +0000 (17:13 -0500)]
Documenting the media_manager fetching hook
This commit sponsored by Christian Corrodi. Thank you!
Christopher Allan Webber [Fri, 12 Jul 2013 22:04:08 +0000 (17:04 -0500)]
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! :)
Rodney Ewing [Fri, 12 Jul 2013 18:57:16 +0000 (11:57 -0700)]
documenting the new media_type plugins and available hooks
Christopher Allan Webber [Fri, 12 Jul 2013 21:24:36 +0000 (16:24 -0500)]
Merge branch 'rodney757-media_plugins'
Conflicts:
mediagoblin.ini
mediagoblin/tests/test_mgoblin_app.ini
Christopher Allan Webber [Fri, 12 Jul 2013 20:52:20 +0000 (15:52 -0500)]
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>
Christopher Allan Webber [Fri, 12 Jul 2013 19:53:10 +0000 (14:53 -0500)]
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!
Christopher Allan Webber [Fri, 12 Jul 2013 19:16:47 +0000 (14:16 -0500)]
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!
Rodney Ewing [Fri, 12 Jul 2013 16:51:42 +0000 (09:51 -0700)]
Patch by Strum. Remove redundent tool-tips from Stl media_type
Rodney Ewing [Fri, 12 Jul 2013 16:32:50 +0000 (09:32 -0700)]
Patch by pythonsnake. Make mediagoblin.ini comments more helpful.
Rodney Ewing [Thu, 11 Jul 2013 23:33:33 +0000 (16:33 -0700)]
make change_pass page autofocus
Rodney Ewing [Thu, 11 Jul 2013 23:21:35 +0000 (16:21 -0700)]
forgot to render errors
Rodney Ewing [Wed, 26 Jun 2013 15:45:59 +0000 (08:45 -0700)]
change to class instead of id to work with firefox
Rodney Ewing [Wed, 26 Jun 2013 15:29:03 +0000 (08:29 -0700)]
fix for boolean fields
Rodney Ewing [Tue, 25 Jun 2013 23:37:28 +0000 (16:37 -0700)]
updated to new render_divs macro
Jakob Kramer [Wed, 22 May 2013 12:51:12 +0000 (14:51 +0200)]
save “stay_logged_in” in the session
Since sessions are rebuilt, e.g. when you try to post a blank
comment and therefore receive an error message, the session will
be overwritten without the old max_age.
Jakob Kramer [Thu, 9 May 2013 22:40:13 +0000 (00:40 +0200)]
add login option: stay_logged_in
As proposed in issue #354; it adds an attribute max_age
to mediagoblin.tools.session.Session that is passed to
response.set_cookie; max_age is set to 30 days if the
checkbox is selected
Rodney Ewing [Thu, 11 Jul 2013 16:37:38 +0000 (09:37 -0700)]
Patch submitted by mrb.
Fix to link to the pubsub hub for atom_feed 'by tag'.
Added 'rel': 'alternate' and 'type': 'text/html' to 'atomlinks'
Rodney Ewing [Thu, 11 Jul 2013 21:17:50 +0000 (14:17 -0700)]
Patch by Strum. Ticket #451 - Convert all mongokit style .find, .find_one, .one calls over to SQLAlchemy queries
xray7224 [Thu, 11 Jul 2013 19:55:08 +0000 (20:55 +0100)]
Ensures endpoint queries with @oauth_required are validated
dunkyp [Tue, 6 Nov 2012 17:47:48 +0000 (17:47 +0000)]
fixes the inability to upload non ascii filenames, werkzeug strips all non ascii chars and returns an empty string. This checks if the filename contains non asciis and if it does generates a uuid for filename. Also the request version of filename is used for generating alternative title for upload
cherry-picked from dunkyp. fixed conflicts and missing import.
Rodney Ewing [Thu, 11 Jul 2013 19:34:43 +0000 (12:34 -0700)]
should use media.slug_or_id incase a MediaEntry doesn't have a slug
xray7224 [Thu, 11 Jul 2013 19:24:20 +0000 (20:24 +0100)]
Adds the decorator
xray7224 [Thu, 11 Jul 2013 18:43:00 +0000 (19:43 +0100)]
Cleans up some of the OAuth code
xray7224 [Thu, 11 Jul 2013 16:58:58 +0000 (17:58 +0100)]
Finishes most of oauth, just decorator to complete
xray7224 [Wed, 10 Jul 2013 14:49:59 +0000 (15:49 +0100)]
Adds more support for oauth - access_token & decorators still to do
xray7224 [Mon, 8 Jul 2013 19:35:03 +0000 (20:35 +0100)]
Adds oauth support up until authorization