| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I made was I added the method has_privilege (which takes a variable amount of
unicode privilege names as an argument) to the User model. This method allowed
for much cleaner checks as to whether or not a user has a privilege. Other-
wise, I also made it impossible for moderators to punish admins. I created a
new url path and three new pages for Users to look at filed reports and the
code of conduct for the mg instance.
=== Made reports on admins not resolvable by moderators:
--\ mediagoblin/moderation/views.py
--\ mediagoblin/templates/mediagoblin/moderation/report.html
=== Created new files for the new pages:
--\ mediagoblin/meta/__init__.py
--\ mediagoblin/meta/routing.py
--\ mediagoblin/meta/views.py
--\ mediagoblin/templates/mediagoblin/meta/code_of_conduct.html
--\ mediagoblin/templates/mediagoblin/meta/reports_details.html
--\ mediagoblin/templates/mediagoblin/meta/reports_panel.html
--\ mediagoblin/routing.py
--\ mediagoblin/static/css/base.css
=== Replaced vestigial methods of checking a user's privilege with the more
====== effective method has_privilege(u'privilege_name'):
--\ mediagoblin/db/models.py
--| Added in the has_privilege method to the User class
--\ mediagoblin/db/migrations.py
--\ mediagoblin/db/models.py
--\ mediagoblin/decorators.py
--\ mediagoblin/edit/lib.py
--\ mediagoblin/edit/views.py
--\ mediagoblin/gmg_commands/users.py
--\ mediagoblin/moderation/views.py
--\ mediagoblin/templates/mediagoblin/base.html
--\ mediagoblin/templates/mediagoblin/user_pages/collection.html
--\ mediagoblin/templates/mediagoblin/user_pages/media.html
--\ mediagoblin/templates/mediagoblin/user_pages/user.html
--\ mediagoblin/templates/mediagoblin/utils/collection_gallery.html
--\ mediagoblin/user_pages/views.py
=== Minor UI changes
--\ mediagoblin/templates/mediagoblin/moderation/report_panel.html
--\ mediagoblin/templates/mediagoblin/moderation/user.html
=== Other Bugs:
--\ mediagoblin/tools/response.py
--\ mediagoblin/db/migrations.py
|
|
|
|
|
| |
There were a few errors because of the switch from sqlalchemy 0.7 to 0.8 but I
cleared them up.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
made "import crypto" fully qualified
|
| | |
|
| |
| |
| |
| | |
This commit sponsored by Kenneth Dombrowski. Thanks!
|
| |
| |
| |
| | |
This commit sponsored by Charles Combs. Thank you!
|
| |
| |
| |
| | |
This commit sponsored by Brandon Smith. Thank you!
|
| |
| |
| |
| | |
This commit sponsored by Christian Corrodi. Thank you!
|
| |
| |
| |
| |
| |
| |
| |
| | |
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! :)
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | | |
Conflicts:
mediagoblin.ini
mediagoblin/tests/test_mgoblin_app.ini
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
types->plugins
The last commit was also small, so Jeff Moe gets... two! Two sponsored commits!
Ah ah ah. </count_voice>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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!
|
| | |
| | |
| | |
| | |
| | |
| | | |
Previously it called even plugins media types. Ha!
This commit sponsored by Jon Merkley. Thank you!
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
plugin style
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | | |
Fix to link to the pubsub hub for atom_feed 'by tag'.
Added 'rel': 'alternate' and 'type': 'text/html' to 'atomlinks'
|
| | |
| | |
| | |
| | | |
.one calls over to SQLAlchemy queries
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| |\ \ |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
using openid without it, but everything seems to be working fine now
|
| | | | |
|
| | | | |
|
| |\ \ \
| | |/ /
| |/| |
| | | |
| | | | |
Conflicts:
mediagoblin/_version.py
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We use this for PDF.js now... we should reference that.
This commit sponsored by Bonnie King. Thanks!
|
| | | |
| | | |
| | | |
| | | | |
This commit back-cherry-picked from current master for the 0.4.1 fix release.
|