| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
Added unit tests for lowercasify username on login.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The login function in mediagoblin/auth/views.py grabs the username prior to
form validation. If validation passes, the pre-validated username is passed to
the check_login_simple function.
Lowercasifying of the username occurs as part of form validation. By sending
the pre-validated username, there's a chance of sending a username with
uppercase letters. This will fail to match any user ids in the database, as
all of the usernames are lowercased during the registration process.
This change sends the post-validated username to check_login_simple, so that
any username that was entered by the user with uppercase letters has a chance
to be properly lowercased before being passed.
|
|
|
|
|
| |
Thanks to Andrew Browning for requesting this and suggesting where to
put it!
|
|
|
|
|
|
|
|
|
|
| |
The .activity ForeignKey on several models such as MediaEntry expects
a ActivityIntmediatory ID not an Activity ID however in submit code the
activity attribute was being set the Activity, simply removing this
assignment should fix the issue as everything is set correctly at this point.
I have also moved the creation of the activity above the processing of media
to avoid race conditions.
|
|
|
|
| |
editing profile
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
- Add unit tests to cover get and set methods on Activity
- Rewrite the set to remove set and use Session.flush instead
- Use sqlalchemy's validator instead of .save hack
|
|/
|
|
| |
Fixes bug https://issues.mediagoblin.org/ticket/808
|
|
|
|
|
| |
This is to prevent our docs from confusing people in this
transitionary time period...
|
|
|
|
| |
This does a "friendly" fallback where it skips the middleware on python 3.
|
|
|
|
| |
This commit sponsored by Tryggvi Björgvinsson. Thank you!
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add Location model which holds textual, geolocation coordiantes
or postal addresses. This migrates data off Image model metadata
onto the general Location model. It also adds the ability for location
to be set on MediaEntry, User, MediaComment and Collection models.
The geolocation plugin has been updated so that the location can be displayed
in more general places rather than explicitely on the MediaEntry view.
If GPS coordiantes are set for the User the profile page will also have the
OSM provided by the geolocation plugin.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Add Activity and Generator models which allow for
activities to be created. This now works with the
feed API.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Make changes to objectType to be more pythonic "object_type"
- Move object_type to mixins rather than be on the models
- Convert migrations to sqlalchemy core rather than ORM (fix)
- Change TYPES to use descriptive strings rather than numbers
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- This has introduced a intermediatory table between object/target and
the activity. This allows for multiple activities to be associated
with one object/target.
- This moves some of the methods off Activity model into a mixin which
didn't need to interact with database things.
- This also cleaned up the migrations as well as adding retroactive
creation of activities for collection creation.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This adds betters upport for targets in the content generation
and on the model itself. Adding getters for properties which would
otherwise require looking up e.g. get_author.
|
| |/
| |
| |
| |
| |
| |
| |
| | |
This creates the Activity and Genrator models from the Activity
Streams spec and. I then created a migration which retro-actively
create activities for media uploaded and comments created. Through
out the code I've added so automatically activties are created when
a user peforms an action (uploading media, commenting, etc.).
|
| | |
|
| |
| |
| |
| | |
This can be moved to docs/source/devel/migrations.rst.
|
| |
| |
| |
| | |
sqlalchemy-migrate will do this for us.
|
| | |
|
| | |
|
| |
| |
| |
| | |
This commit sponsored by Loïc Grobol. Thank you!
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
* 942-default-location:
Add documentation on changing data dir and Fix stylistic changes
Updated config_spec.ini to add %(data_basedir)s and make use of it!
defaults now pulled from a mashup of mediagoblin.ini and config_spec.ini
|
| | | |
|
| | |
| | |
| | |
| | | |
This commit sponsored by Loïc Grobol. Thanks!
|
| | |
| | |
| | |
| | | |
This commit sponsored by Thomas Løcke. Thank you!
|
|/ /
| |
| |
| | |
remove non distributable good.pdf
|
| | |
|
| | |
|
| |
| |
| |
| | |
We want to make sure it works nicely first.
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
setup.py
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Fix the "pulling the error out of excinfo" stuff for py3
- The u"" only gets embedded in the string on py2.
This commit sponsored by Jeff Gibson. Thanks, Jeff! :)
|
| | |
| | |
| | |
| | | |
This commit sponsored by Ramana Kumar. Thanks!
|
| | |
| | |
| | |
| | | |
This commit sponsored by Chris Cormack. Thanks!
|
| | |
| | |
| | |
| | |
| | |
| | | |
This doesn't rely on checking HTML output... thus, cleaner.
This commit sponsored by Alexandre Guédon. Thank you!
|
| | |
| | |
| | |
| | |
| | | |
This isn't the nicest of checks... we should probably be checking the
actual form passed into the context. But for now, it's a fix.
|