mediagoblin.git
12 years agoAdds the docs for client registration
xray7224 [Mon, 1 Jul 2013 18:13:07 +0000 (19:13 +0100)]
Adds the docs for client registration

12 years agoClient registration now supports application/x-www-form-urlencoded now
xray7224 [Mon, 1 Jul 2013 16:50:39 +0000 (17:50 +0100)]
Client registration now supports application/x-www-form-urlencoded now

12 years agoAdds update ability
xray7224 [Sun, 30 Jun 2013 14:26:49 +0000 (15:26 +0100)]
Adds update ability

12 years agoAdds more support to begin to deal with updates
xray7224 [Fri, 28 Jun 2013 18:34:56 +0000 (19:34 +0100)]
Adds more support to begin to deal with updates

12 years agoWorking client registration
xray7224 [Fri, 28 Jun 2013 16:59:32 +0000 (17:59 +0100)]
Working client registration

12 years agoMoves json_response into tools/json.py
xray7224 [Thu, 27 Jun 2013 18:34:21 +0000 (19:34 +0100)]
Moves json_response into tools/json.py

12 years agoMoves json_response into tools/json.py
xray7224 [Thu, 27 Jun 2013 18:34:21 +0000 (19:34 +0100)]
Moves json_response into tools/json.py

12 years agoRevert "remove the list from response.vary. not sure why I was getting an error using...
Christopher Allan Webber [Wed, 10 Jul 2013 22:58:30 +0000 (17:58 -0500)]
Revert "remove the list from response.vary. not sure why I was getting an error using openid without it, but everything seems to be working fine now"

This reverts commit 05ceada051dad011bb9b3e1c93fb42b2d9875939.

It turns out the reason for this in the first place was werkzeug
backwards compatibility.

12 years agoMerge remote-tracking branch 'refs/remotes/rodney757/misc'
Christopher Allan Webber [Wed, 10 Jul 2013 22:50:14 +0000 (17:50 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757/misc'

12 years agoA few small formatting fixes on the release notes
Christopher Allan Webber [Wed, 10 Jul 2013 22:41:16 +0000 (17:41 -0500)]
A few small formatting fixes on the release notes

12 years agoMerge branch 'release-0.4.1'
Christopher Allan Webber [Wed, 10 Jul 2013 22:40:57 +0000 (17:40 -0500)]
Merge branch 'release-0.4.1'

Conflicts:
mediagoblin/_version.py

12 years agoUpdating docs regarding pulling in and fetching git submodules
Christopher Allan Webber [Wed, 10 Jul 2013 21:29:50 +0000 (16:29 -0500)]
Updating docs regarding pulling in and fetching git submodules

We use this for PDF.js now... we should reference that.

This commit sponsored by Bonnie King.  Thanks!

12 years agoadded docs explaining the authentication hooks
Rodney Ewing [Wed, 10 Jul 2013 20:29:58 +0000 (13:29 -0700)]
added docs explaining the authentication hooks

12 years agoFix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.
Christopher Allan Webber [Sat, 22 Jun 2013 17:25:31 +0000 (12:25 -0500)]
Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.

This commit back-cherry-picked from current master for the 0.4.1 fix release.

12 years agoPyTest needs to be >= 2.3.1
Christopher Allan Webber [Wed, 10 Jul 2013 18:34:49 +0000 (13:34 -0500)]
PyTest needs to be >= 2.3.1

12 years agoneed to use .get('messages') to not get a keyerror
Rodney Ewing [Wed, 10 Jul 2013 18:08:28 +0000 (11:08 -0700)]
need to use .get('messages') to not get a keyerror

12 years agoremove the list from response.vary. not sure why I was getting an error using openid...
Rodney Ewing [Wed, 10 Jul 2013 17:37:13 +0000 (10:37 -0700)]
remove the list from response.vary. not sure why I was getting an error using openid without it, but everything seems to be working fine now

12 years agoonly check password if there is a store_hash
Rodney Ewing [Mon, 8 Jul 2013 23:27:43 +0000 (16:27 -0700)]
only check password if there is a store_hash

12 years agoRelease notes v0.4.1 ... fixes serious issue with conversion via libreoffice.
Christopher Allan Webber [Wed, 10 Jul 2013 16:41:29 +0000 (11:41 -0500)]
Release notes v0.4.1 ... fixes serious issue with conversion via libreoffice.

This commit sponsored by William Linna.  Thank you!

12 years agoFixing bug that effectively broke document support in 0.4.0.. how embarassing :(
Christopher Allan Webber [Wed, 10 Jul 2013 13:45:18 +0000 (08:45 -0500)]
Fixing bug that effectively broke document support in 0.4.0.. how embarassing :(

This fix sponsored by Christophe Drevet.  Thank you!

12 years agoMention setup.py develop --upgrade also in release notes.
Christopher Allan Webber [Wed, 10 Jul 2013 00:40:04 +0000 (19:40 -0500)]
Mention setup.py develop --upgrade also in release notes.

This commit sponsored by Christoph Schumacher.  Thank you!

12 years agotypo
Rodney Ewing [Tue, 9 Jul 2013 20:41:40 +0000 (13:41 -0700)]
typo

12 years agoadded docs for the persona plugin
Rodney Ewing [Tue, 9 Jul 2013 20:31:32 +0000 (13:31 -0700)]
added docs for the persona plugin

12 years agoadded basic_auth and openid docs to index and link them together
Rodney Ewing [Tue, 9 Jul 2013 19:57:57 +0000 (12:57 -0700)]
added basic_auth and openid docs to index and link them together

12 years agoadded openid docs
Rodney Ewing [Tue, 9 Jul 2013 19:34:13 +0000 (12:34 -0700)]
added openid docs

12 years agobasic_auth documentation
Rodney Ewing [Tue, 9 Jul 2013 19:31:01 +0000 (12:31 -0700)]
basic_auth documentation

12 years agoI just added the attribution for the clipboard image to the code.
tilly-Q [Mon, 8 Jul 2013 18:31:28 +0000 (14:31 -0400)]
I just added the attribution for the clipboard image to the code.

12 years agoThis update I mostly did work on the templates for the admin pages. I did a co-
tilly-Q [Mon, 8 Jul 2013 18:20:28 +0000 (14:20 -0400)]
This update I mostly did work on the templates for the admin pages. I did a co-
-uple other small changes. I changed the information around the media processi-
ng panel to be more specific, since it was written when it was the only admin
page. Git didn't catch this, but I renamed the templates, so mediagoblin/templ-
ates/admin/user.html now referrs to the page which shows the details of a spec-
ific user. The list view pages are now named ELEMENT_panel.html(ie. user_panel)
I also added a column reported_user_id to the ReportBase table, and had to add
to Report filing to make sure that column gets created. Also I moved the report
media button (on a media page) to the sidebar, though it still needs some form-
atting

--\ mediagoblin/static/images/icon_clipboard.png
--| Added this image for use in template mediagoblin/admin/report.html.
--| Distributed by the GNOME project http://www.gnome.org
--| Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license.
--| I'm still trying to figure out the appropriate way to attribute this in
  | the code

--\ mediagoblin/templates/mediagoblin/admin/media_panel.html
--| This template is actually the template formerly know as media.html. I
  | renamed it for clarity

--\ mediagoblin/templates/mediagoblin/admin/report_panel.html
--| This template is actually the template formerly know as report.html. I
  | renamed it for clarity

--\ mediagoblin/templates/mediagoblin/admin/user_panel.html
--| This template is actually the template formerly know as user.html. I renam-
  | -ed it for clarity

--\ mediagoblin/templates/mediagoblin/utils/report.html
--| This template is included in the media_home page. It is the report media
  | button. I figured I'd write it like this in case it got more complicated.

--\ mediagoblin/admin/routing.py
--| I changed the routing path /a/panel to /a/media for specificity

--\ mediagoblin/admin/views.py
--| I renamed admin_processing_panel to admin_media_processing_panel
--| I wrote a new view function admin_reports_detail
--| I wrote a new view function admin_users_detail

--\ mediagoblin/db/migrations.py
--| I added in the column reported_user_id to the ReportBase_v0 class

--\ mediagoblin/db/models.py
--| I added in the column reported_user_id to the ReportBase class

--\ mediagoblin/static/css/base.css
--| I added in css classes to display a report. Right now, they are just echo-
  | -ing the ways comments are displayed, but with the link in another color

--\ mediagoblin/templates/mediagoblin/admin/report.html
--| Created this new template (although git doesn't realize it) to show the de-
  | -tails of a specific report, indicated in the URL

--\ mediagoblin/templates/mediagoblin/admin/user.html
--| Created this new template (although git doesn't realize it) to show the de-
  | -tails of a specific user, indicated in the URL

--\ mediagoblin/templates/mediagoblin/base.html
--| Redirected the link from /a/panel to /a/media

--\ mediagoblin/templates/mediagoblin/user_pages/media.html
--| Moved the media report button to the sidebar

--\ mediagoblin/user_pages/lib.py
--| Changed the creation of reports, so that they also assign a column for rep-
  | -orted_user_id.

12 years agoMerge remote-tracking branch 'cweb/master'
Aditi [Thu, 4 Jul 2013 16:05:22 +0000 (21:35 +0530)]
Merge remote-tracking branch 'cweb/master'

sage aborts
Merge branch master of git://gitorious.org/mediagoblin/mediagoblin.git

12 years agomade it so that the create account button works with only persona enabled
Rodney Ewing [Wed, 3 Jul 2013 15:35:56 +0000 (08:35 -0700)]
made it so that the create account button works with only persona enabled

12 years agomoved persona template stuff to use template_hooks
Rodney Ewing [Wed, 3 Jul 2013 20:04:25 +0000 (15:04 -0500)]
moved persona template stuff to use template_hooks

12 years agomerge --squash persona branch to take care of a false merge commit in
Rodney Ewing [Wed, 26 Jun 2013 19:04:45 +0000 (12:04 -0700)]
merge --squash persona branch to take care of a false merge commit in
the basic_auth branch that persona is forked from

Conflicts:
mediagoblin/templates/mediagoblin/auth/login.html
mediagoblin/templates/mediagoblin/auth/register.html
mediagoblin/templates/mediagoblin/edit/edit_account.html

These are commit messages from the squashed persona stuff:

 - added tests and fixed minor errors
 - fixed a redirect loop when only persona is enabled and accessing /auth/login
 - moved persona.js to plugin's static dir
 - fixes for add/remove persona emails
 - add and remove personas
 - working with multiple plugins
 - working version
 - switched to hidden form instead of ajax
 - beginings

12 years agoMerge remote-tracking branch 'remotes/lotusecho/trac_711_test_speed'
Christopher Allan Webber [Wed, 3 Jul 2013 19:07:11 +0000 (14:07 -0500)]
Merge remote-tracking branch 'remotes/lotusecho/trac_711_test_speed'

12 years agoFix missing quote
Christopher Allan Webber [Wed, 3 Jul 2013 19:06:22 +0000 (14:06 -0500)]
Fix missing quote

12 years agochanged hook name to reuse with persona
Rodney Ewing [Wed, 3 Jul 2013 15:09:06 +0000 (08:09 -0700)]
changed hook name to reuse with persona

12 years agouse template hooks instead of hardcoding in templates
Rodney Ewing [Wed, 3 Jul 2013 14:16:31 +0000 (07:16 -0700)]
use template hooks instead of hardcoding in templates

12 years agoforgot to pass request.form into LoginForm class
Rodney Ewing [Wed, 26 Jun 2013 19:53:02 +0000 (12:53 -0700)]
forgot to pass request.form into LoginForm class

12 years agotypo
Rodney Ewing [Wed, 26 Jun 2013 19:44:37 +0000 (12:44 -0700)]
typo

12 years agofixed openid store cleanupAssociations
Rodney Ewing [Wed, 26 Jun 2013 19:43:12 +0000 (12:43 -0700)]
fixed openid store cleanupAssociations

12 years agoremoved openid/lib, since the get forms functions were not needed for persona plugin
Rodney Ewing [Wed, 26 Jun 2013 19:20:51 +0000 (12:20 -0700)]
removed openid/lib, since the get forms functions were not needed for persona plugin

12 years agomerge --squash openid branch to take care of a false merge commit in the
Rodney Ewing [Wed, 26 Jun 2013 18:20:50 +0000 (11:20 -0700)]
merge --squash openid branch to take care of a false merge commit in the
basic_auth branch that openid is forked from

Commits squashed together (in reverse chronological order):
 - do the label thing only for boolean fields
 - made edit_account to autofocus on the first field
 - added feature to render_divs where if field.label == '' then it
   will render form.description the same a render_label
 - added allow_registration check
 - refactored create_user
 - removed verification_key from create_user
 - removed get_user from openid
 - cleanup after removing openid from template_env.globals
 - fix for werkzueg 0.9.1
 - cleanup after merge
 - more tests
 - restored openid extra_validation just for safety
 - tests for openid
 - deleted openid extra_validation
 - passed next parameter in session for openid
 - fixed a bug that was deleting the messages
 - implemented openid store using sqlalchemy
 - ask openid provider for 'nickname' to prefill username in registration form
 - refactored delete openid url to work with generic urls such as
   google and to not allow a user to delete a url if it is there only
   one and they don't have a pw
 - refactored login to register user workflow, which fixed a problem
   where the 'or register with a password link' wasn't showing up when
   the finish_login view called the register view because there wasn't
   any redirect.
 - added the ability to remove openid's
 - added the ability to add openids to an existing account
 - refactored start_login and finish_login views
 - modified edit_account.html to use render_divs
 - modified gmg/edit/views to behave appropriatly if no password
   authentication is enabled. moved the update email stuff to it's own
   funtion to make edit_account view cleaner. edit_account now
   modifies the form depending on the plugins.
 - minor typos
 - added retrieving email from openid provider
 - moved allow_registration check to a decorator
 - moved check if auth is enabled to a decorator
 - changed openid user registration to go through login first
 - cleanup after merge
 - modified verification emails to use itsdangerous tokens
 - added error handling on bad token, fixed route, and added tests
 - added support for user to change email address
 - added link to login view openid/password in login template
 - updated openid get_user function
 - modified get_user function to take kwargs instead of username
 - no need for user might be email kwarg in check_login_simple
 - added gen_password_hash and check_password functions to auth/__init__
 - added focus to form input
 - made imports fully qualified
 - modified basic_auth.check_login to check that the user has a pw_hash first
 - changed occurances of form.data['whatever'] to form.whatever.data
 - convert tabs to spaces in register template, remove unsed
   templates, and fixed trans tags in templates
 - in process of openid login. it works, but needs major imporvements
 - make password field required in basic_auth form
 - check if password field present in basic_auth create_user
 - modified openid create_user function
 - modified models based on Elronds suggestions
 - changed register form action to a variable to be passed in by the
   view using the template
 - openid plugin v0, still need to authenticate via openid.
 - added a register_user function to be able to use in a plugin's
   register view, and modified auth/views.register to redirect to
   openid/register if appropriate.
 - Modified basic_auth plugin to work with modified auth plugin
   hooks. Added context variables. Removed basic_auth/tools which was
   previously renamed to basic_auth/lib.
 - modified auth/__init__ hooks to work better with multiple
   plugins. Removed auth/lib.py. And added a basic_extra_verification
   function that all plugins will use.
 - added models and migrations for openid plugin

12 years agoThis was a simple commit. I changed all references to Groups into Privileges so
tilly-Q [Wed, 3 Jul 2013 18:46:21 +0000 (14:46 -0400)]
This was a simple commit. I changed all references to Groups into Privileges so
as to not conflict with the new federated groups which are also being written.
I also fixed up some of the code in the user_in_group/user_has_privilege decor-
ator. Users are now assigned the default privileges when they sign up, and ass-
iged active once they are activated. I updated the gmg command makeadmin to use
my groups as well. Lastly, I added the decorator to various views, requiring th-
at users belong to appropriate groups to access pages.

--\ mediagoblin/auth/tools.py
--| Added code to assign new users to default privileges

--\ mediagoblin/auth/views.py
--| Added code to assign users to u'active' privilege once the email
  | verification is complete

--\ mediagoblin/db/migrations.py
--| Renamed Group class to Privilege class

--\ mediagoblin/db/models.py
--| Renamed Group class to Privilege class

--\ mediagoblin/decorators.py
--| Renamed function based on the Group->Privilege change
--| Rewrote the function to be, ya know, functional

--\ mediagoblin/gmg_commands/users.py
--| Changed the 'makeadmin' command to add the target user to the admin
  | privilege group as well as affecting 'is_admin' column

--\ mediagoblin/submit/views.py
--| Added the requirement that a user has the 'uploader' privilege in order
  | to submit new media.

--\ mediagoblin/user_pages/views.py
--| Added the requirement that a user has the 'commenter' privilege in order
  | to make a comment.
--| Added the requirement that a user has the 'reporter' privilege in order
  | to submit new reports.
--| Got rid of some vestigial code in the file_a_report function.

12 years agofixing the config section we pull things out of for basic_auth
Christopher Allan Webber [Wed, 3 Jul 2013 13:09:48 +0000 (08:09 -0500)]
fixing the config section we pull things out of for basic_auth

12 years agoTypo error.
Aditi [Wed, 3 Jul 2013 02:52:48 +0000 (08:22 +0530)]
Typo error.

12 years agoadded a warning for old media types
Rodney Ewing [Tue, 2 Jul 2013 16:26:12 +0000 (09:26 -0700)]
added a warning for old media types

12 years agoconverted video media_type to plugin
Rodney Ewing [Tue, 2 Jul 2013 15:57:10 +0000 (08:57 -0700)]
converted video media_type to plugin

12 years agoconverted stl media_type to plugin
Rodney Ewing [Tue, 2 Jul 2013 15:52:33 +0000 (08:52 -0700)]
converted stl media_type to plugin

12 years agoconverted pdf media_type to plugin
Rodney Ewing [Tue, 2 Jul 2013 15:48:47 +0000 (08:48 -0700)]
converted pdf media_type to plugin

12 years agoconverted audio media_type to plugin
Rodney Ewing [Tue, 2 Jul 2013 15:43:14 +0000 (08:43 -0700)]
converted audio media_type to plugin

12 years agotypo in image supported_filetypes
Rodney Ewing [Tue, 2 Jul 2013 15:14:40 +0000 (08:14 -0700)]
typo in image supported_filetypes

12 years agoconverted ascii media_type to plugin
Rodney Ewing [Tue, 2 Jul 2013 15:09:37 +0000 (08:09 -0700)]
converted ascii media_type to plugin

12 years agofixed some typos and enabled media_type plugins in tests
Rodney Ewing [Tue, 2 Jul 2013 14:54:38 +0000 (07:54 -0700)]
fixed some typos and enabled media_type plugins in tests

12 years agoremoved sniff_handler from Imange Media Manager class
Rodney Ewing [Tue, 2 Jul 2013 14:20:20 +0000 (07:20 -0700)]
removed sniff_handler from Imange Media Manager class

12 years agoremoved CompatMediaManager() since all core media_types are classes
Rodney Ewing [Tue, 2 Jul 2013 00:23:47 +0000 (17:23 -0700)]
removed CompatMediaManager() since all core media_types are classes

12 years agomodified gmg to use plugin media_types and converted image media_type to new plugin...
Rodney Ewing [Tue, 2 Jul 2013 00:19:22 +0000 (17:19 -0700)]
modified gmg to use plugin media_types and converted image media_type to new plugin style

12 years agoAdd '/' at the end of each url.
Aditi [Tue, 2 Jul 2013 02:04:05 +0000 (07:34 +0530)]
Add '/' at the end of each url.

12 years agoMerge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Aditi [Sun, 30 Jun 2013 14:19:53 +0000 (19:49 +0530)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin

"Merge with cweb/master."

12 years agoAdd template for blog edit and create page.
Aditi [Sun, 30 Jun 2013 04:03:04 +0000 (09:33 +0530)]
Add template for blog edit and create page.

12 years agoAdd user in template dictonary as it is in the url field.
Aditi [Sun, 30 Jun 2013 04:01:29 +0000 (09:31 +0530)]
Add user in template dictonary as it is in the url field.

12 years agoAdd views for creating and editing a blog
Aditi [Fri, 28 Jun 2013 17:28:07 +0000 (22:58 +0530)]
Add views for creating and editing a blog

12 years agoRegister blog urls with mediagoblin
Aditi [Fri, 28 Jun 2013 17:26:46 +0000 (22:56 +0530)]
Register blog urls with mediagoblin

12 years agoRegister blog create url in routing.py
Aditi [Fri, 28 Jun 2013 16:52:28 +0000 (22:22 +0530)]
Register blog create url in routing.py

12 years agoMore clarifications on what ./bin/gmg dbupdate does on each run.
Christopher Allan Webber [Fri, 28 Jun 2013 16:51:40 +0000 (11:51 -0500)]
More clarifications on what ./bin/gmg dbupdate does on each run.

This commit sponsored by Jessica Howard.  Thanks, sistah!

12 years agoAdd forms for editing and creating forms
Aditi [Fri, 28 Jun 2013 16:51:27 +0000 (22:21 +0530)]
Add forms for editing and creating forms

12 years agoSome documentation on how to write database migrations.
Christopher Allan Webber [Fri, 28 Jun 2013 15:27:06 +0000 (10:27 -0500)]
Some documentation on how to write database migrations.

This commit sponsored by Andrei Cristian Petcu.  Thanks!

12 years agoIn this commit, I have made a few changes and tightened up some of my models
tilly-Q [Thu, 27 Jun 2013 21:13:42 +0000 (14:13 -0700)]
In this commit, I have made a few changes and tightened up some of my models
code. I added in two major pieces of functionality: table foundations and a
decorator to confirm whether or not a user is a member of a certain group.

Table Foundations are default rows that should be present in a given table as
soon as the database is initialized. For example, I am using these to populate
the core__groups table with all of the necessary groups ('moderator', 'com-
menter', etc). Right now, this is achieved by adding a dictionary of parameters
(with the parameters as lists) to the constant FOUNDATIONS in
mediagoblin.db.models. The keys to this dictionary are uninstantiated classes.
The classes which require foundations also have must have a constructor so that
the list of parameters can be passed appropriately like so:
        Model(*parameters)
In order to implement these foundations, I added the method populate_table_fou-
-ndations to MigrationManager in mediagoblin.db.migration_tools.

The decorator, called user_in_group, accepts as a parameter a unicode string,
and then decides whether to redirect to 403 or let the user access the page. The
identifier is the Group.group_name string, because I believe that will allow for
the most readable code.

I also added in the simple decorator require_admin_login.

In terms of tightening up my code, I made many minor changes to my use of white
space and made a few small documentation additions. I removed a vestigial class
(ReportForm) from mediagoblin.user_pages.forms. I moved all of my migrations in-
to one registered Migration.

Setting up Foundations
==============================

--\ mediagoblin/db/migration_tools.py
--| created: MigrationManager.populate_table_foundations
--| modified: MigrationManager.init_or_migrate to run
  |     self.populate_table_foundations on init

--\ mediagoblin/db/models.py
--| created: FOUNDATIONS
----| created: group_foundations

Working With Permissions
==============================
--\ mediagoblin/decorators.py
--| created: user_in_group
--| created: require_admin_login

--\ mediagoblin/user_pages/views.py
--| modified: added decorator user_in_group to file_a_report

--\ mediagoblin/admin/views.py
--| modified: added decorator require_admin_login to all views functions

General Code Tidying
=============================

--/ mediagoblin/admin/views.py
--/ mediagoblin/user_pages/forms.py
--/ mediagoblin/db/models.py
--/ mediagoblin/user_pages/lib.py
--/ mediagoblin/user_pages/views.py
--/ mediagoblin/db/migrations.py

12 years agoUpdated comments for run_all_migrations and config_spec.ini.
Emily O'Leary [Thu, 27 Jun 2013 21:05:25 +0000 (17:05 -0400)]
Updated comments for run_all_migrations and config_spec.ini.

12 years agoAdd url mapping for blog-admin, blog-collection-admin, blog edit/create, blog post...
Aditi [Thu, 27 Jun 2013 05:06:21 +0000 (10:36 +0530)]
Add url mapping for blog-admin, blog-collection-admin, blog edit/create, blog post edit/create views.

12 years agoAdd BlogPostEditForm for editing and creating a blog post entry.
Aditi [Wed, 26 Jun 2013 18:23:27 +0000 (23:53 +0530)]
Add BlogPostEditForm for editing and creating a blog post entry.

12 years agoAdd basic files models, views, forms, routing, __init__ to for a new media_type...
Aditi [Wed, 26 Jun 2013 18:13:26 +0000 (23:43 +0530)]
Add basic files models, views, forms, routing, __init__ to  for a new media_type blog.

12 years agoCreated filr structure for blog as a plugin(option 1).
Aditi [Wed, 26 Jun 2013 17:57:45 +0000 (23:27 +0530)]
Created filr structure for blog as a plugin(option 1).

12 years agoMerge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin
Aditi [Wed, 26 Jun 2013 16:43:23 +0000 (22:13 +0530)]
Merge branch 'master' of git://gitorious.org/mediagoblin/mediagoblin

12 years agotypo
Rodney Ewing [Wed, 26 Jun 2013 14:39:17 +0000 (07:39 -0700)]
typo

12 years agodo the label thing only for boolean fields
Rodney Ewing [Wed, 26 Jun 2013 14:36:11 +0000 (07:36 -0700)]
do the label thing only for boolean fields

12 years agomade edit_account to autofocus on the first field
Rodney Ewing [Wed, 26 Jun 2013 13:45:36 +0000 (06:45 -0700)]
made edit_account to autofocus on the first field

12 years agoImproved test runtime from 352 seconds to 59 seconds by implementing an in-memory...
Emily O'Leary [Wed, 26 Jun 2013 00:57:50 +0000 (20:57 -0400)]
Improved test runtime from 352 seconds to 59 seconds by implementing an in-memory sqlite DB and including an option to run migrations on this newly created database by adding a config option called run_migrations to the config_spec and passing it along in app.py to the setup_database function.

12 years agoadded feature to render_divs where if field.label == '' then it will render form...
Rodney Ewing [Tue, 25 Jun 2013 22:50:31 +0000 (15:50 -0700)]
added feature to render_divs where if field.label == '' then it will render form.description the same a render_label

12 years agoExplain about sqlite dropping the constraint and why we're adding it back manually.
Christopher Allan Webber [Tue, 25 Jun 2013 22:12:33 +0000 (17:12 -0500)]
Explain about sqlite dropping the constraint and why we're adding it back manually.

12 years agocleanup after merge
Rodney Ewing [Tue, 25 Jun 2013 20:43:33 +0000 (13:43 -0700)]
cleanup after merge

12 years agoMerge remote-tracking branch 'upstream/master' into auth
Rodney Ewing [Tue, 25 Jun 2013 20:37:21 +0000 (13:37 -0700)]
Merge remote-tracking branch 'upstream/master' into auth

Conflicts:
mediagoblin/app.py
mediagoblin/auth/forms.py
mediagoblin/auth/tools.py
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/edit/views.py
mediagoblin/plugins/basic_auth/tools.py
mediagoblin/tests/test_edit.py

12 years agotypo
Rodney Ewing [Tue, 25 Jun 2013 20:22:56 +0000 (13:22 -0700)]
typo

12 years agoAdd a bit more docs to plugin configuration
Christopher Allan Webber [Tue, 25 Jun 2013 18:25:25 +0000 (13:25 -0500)]
Add a bit more docs to plugin configuration

This commit sponsored by Michael Rauch.  Thank you!

12 years agoThis is the first stage of my project of implenting admin/moderator functiona-
tilly-Q [Mon, 24 Jun 2013 23:35:31 +0000 (16:35 -0700)]
This is the first stage of my project of implenting admin/moderator functiona-
lity. At this point, I have finished all the of basic work with the models! I
still need to do some tightening of their documentation, but they seem to be
working well.

Working with Models
========================================

--\ mediagoblin/db/models.py
--| Added in the Report model and table. This model is strictly a parent
----| Added in the CommentReport model which holds information about a report
    | filed against a comment. This class inherits from Report.
----| Added in the MediaReport model which holds information about a report f-
    | -iled against a media entry. This class inherits from Report.
--| Added in a UserBan model and table. This model is in a one to one relatio-
  | -nship with User. This object acts as a marker for whether a user is banned
  | or not.
--| Added in a Group model. These objects are in a many-to-many relationship
  | with User to explain which privileges a User has.
----| Added in GroupUserAssociation which is a table used to hold this many to
    | many relationship  between Group & User.

--\ mediagoblin/db/migrations.py
--| Added in the migrations for all of the additions to models
--| Added UserBan_v0
--| Added Report_v0
----| Added CommentReport_v0
----| Added MediaReport_v0
--| Added Group_v0
----| Added GroupUserAssociation_v0

Working with Templates, Views, and Routing
===============================================

>>> Reporting a Comment or a MediaEntry

--\ mediagoblin/user_pages/views.py
--| Added in the function file_a_report to allow user to file reports against
  | MediaEntries or Comments. Handles GET and POST requests.
--| Added in the function file_a_comment_report which uses file_a_report but
  | also catches appropriate information for comment_ids. I may be able to do
  | this more eloquently with decorators.

--\ mediagoblin/user_pages/routing.py
--| Added in route 'mediagoblin.user_pages.media_home.report_media'
  | (linked to address /u/<user>/m/<media>/report/ )
--| Added in route ''mediagoblin.user_pages.media_home.report_comment'
  | (linked to address /u/<user>/m/<media>/c/<comment>/report/ )

--\ mediagoblin/templates/mediagoblin/user_pages/report.html
--| I created this file to handle the filing of a report.

--\ mediagoblin/templates/mediagoblin/user_pages/media.html
--| Modified this file to add in links allowing users to report either media
  | or comments.

--\ mediagoblin/user_pages/lib.py
--| Added in build_report_form which processes data as either a CommentReport or
  | a MediaReport depending on which parameters are present

--\ mediagoblin/user_pages/forms.py
--| Added in CommentReportForm
--| Added in MediaReportForm
--| note: ReportForm is vestigial to an earlier strategy I used and I'll remove it
  | promptly

--\ mediagoblin/decorators.py
--| Added in 'get_media_comment_by_id' for use in mediagoblin/user_pages/views.py

>>> New Admin Panels

--\ mediagoblin/admin/views.py
--| Added in the function admin_users_panel
--| Added in the function admin_reports_panel

--\ mediagoblin/admin/routing.py
--| Added in route 'mediagoblin.admin.users'
  | (linked to address '/a/users')
--| Added in route 'mediagoblin.admin.reports'
  | (linked to address '/a/reports/')

--\ mediagoblin/templates/admin/user.html
--| Created this file as a template for monitoring users

--\ mediagoblin/templates/admin/report.html
--| Created this file as a template for monitoring reports filed against media or
  | comments

12 years agoReverting "No more of this find_packages nonsense."
Christopher Allan Webber [Mon, 24 Jun 2013 14:10:48 +0000 (09:10 -0500)]
Reverting "No more of this find_packages nonsense."

This reverts commit b75eb88fabdac4a9fdc863969ec9472110732607.

12 years agoAdding a docstring to fixture_media_entry
Christopher Allan Webber [Sat, 22 Jun 2013 22:40:12 +0000 (17:40 -0500)]
Adding a docstring to fixture_media_entry

It's not complete, but it makes clearer how to avoid errors with
fake_upload :)

This commit sponsored by Harper Sanford.  Thank you!

12 years agoFix the data integrity bug in test_misc.
Christopher Allan Webber [Sat, 22 Jun 2013 22:37:30 +0000 (17:37 -0500)]
Fix the data integrity bug in test_misc.

It turns out this has to do with some additions to the fixture adding
of media entries.  Since the new fake_upload field is True by default,
adding multiple entries that have media_files at once meant that
multiple additions of FileKeynames would be added at once if they were
not saved at the same time.  Tricky!

Thankfully, Elrond helped us figure this one out.  Thanks, Elrond :)

And thanks also to Aapo Rantalainen for sponsoring this commit!

12 years agoPadding on the header-dropdown area
Christopher Allan Webber [Sat, 22 Jun 2013 21:19:58 +0000 (16:19 -0500)]
Padding on the header-dropdown area

This helps make it a bit clearer that things are "contained inside"
the header dropdown area.

12 years agoMerge remote-tracking branch 'refs/remotes/joar/notifications'
Christopher Allan Webber [Sat, 22 Jun 2013 21:13:41 +0000 (16:13 -0500)]
Merge remote-tracking branch 'refs/remotes/joar/notifications'

Conflicts:
mediagoblin/db/migrations.py

12 years agoFix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.
Christopher Allan Webber [Sat, 22 Jun 2013 17:25:31 +0000 (12:25 -0500)]
Fix by Rodney Ewing so render_http_exception works with newer Werkzeug versions.

12 years agoRemoving the "enter your password to change your email" bit.
Christopher Allan Webber [Fri, 21 Jun 2013 22:24:33 +0000 (17:24 -0500)]
Removing the "enter your password to change your email" bit.

A good idea, though it feels fairly clumsy in the form, and I think if
you're logged in you can already sabotage the user pretty well.

This commit sponsored by Sergey Matveev.  Thanks!

12 years agochanges after cwebb's review
Rodney Ewing [Fri, 21 Jun 2013 21:14:40 +0000 (14:14 -0700)]
changes after cwebb's review

12 years agoMerge remote-tracking branch 'refs/remotes/rodney757-github/mail'
Christopher Allan Webber [Fri, 21 Jun 2013 20:50:36 +0000 (15:50 -0500)]
Merge remote-tracking branch 'refs/remotes/rodney757-github/mail'

12 years agoMerge remote-tracking branch 'cweb/master'
Aditi [Fri, 21 Jun 2013 17:39:22 +0000 (23:09 +0530)]
Merge remote-tracking branch 'cweb/master'

12 years agoInitial commit
Aditi Mittal [Fri, 21 Jun 2013 15:55:46 +0000 (08:55 -0700)]
Initial commit

12 years agoIndenting some stuff in pdf.html and wrapping width and height parameters in quotes
Christopher Allan Webber [Thu, 20 Jun 2013 23:14:14 +0000 (18:14 -0500)]
Indenting some stuff in pdf.html and wrapping width and height parameters in quotes

12 years agopdf: remove two unused files (we use pdf.js in an iframe, no need for our own bastard...
Alon Levy [Thu, 20 Jun 2013 22:51:47 +0000 (01:51 +0300)]
pdf: remove two unused files (we use pdf.js in an iframe, no need for our own bastard copy)

Signed-off-by: Alon Levy <alevy@redhat.com>
12 years agoWhat is models_v0.py? An explaination!
Christopher Allan Webber [Thu, 20 Jun 2013 17:08:20 +0000 (12:08 -0500)]
What is models_v0.py?  An explaination!

This commit sponsored by Alex Hannan-Joyner.  Thanks!

12 years agoNow in dev mode on 0.4.1
Christopher Allan Webber [Tue, 18 Jun 2013 03:50:31 +0000 (22:50 -0500)]
Now in dev mode on 0.4.1

12 years agoMediaGoblin v0.4.0!
Christopher Allan Webber [Mon, 17 Jun 2013 01:32:28 +0000 (20:32 -0500)]
MediaGoblin v0.4.0!

12 years agoCommitting extracted and compiled translations
Christopher Allan Webber [Mon, 17 Jun 2013 01:06:48 +0000 (20:06 -0500)]
Committing extracted and compiled translations