| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Thanks for catching, Elrond.
This commit sponsored by Graham King. Thank you!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Okay, that's a totally confusing statement, but the docstring of this
migration summarizes it well:
Entries without slugs now display differently in the url like:
/u/cwebber/m/id=251/
... because of this, we should back-convert:
- entries without slugs should be converted to use the id, if possible, to
make old urls still work
- slugs with = (or also : which is now also not allowed) to have those
stripped out (small possibility of breakage here sadly)
This commit sponsored by John Sullivan. Thanks johnsu01! :)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use inspect_table in the new migration. Makes code more
readable, really.
And make the default for the preferred license be None.
This is a userspace thing, so we can even change the
migration here. Changing the migration means, that people
running the migration before this commit get a "" in
User.license_preference, while people running the migration
now get a None. Both values are okay.
None has been designated as "Use the site's default". We're
not actually having a site default right now. Which means
no license is selected in the dropdown.
While "" means "All rights reserved" being chosen by the
user.
Side note: Having no license being selected in the submit
dropdown is as "worse" as before and does not really hurt
much. MediaEntry.license==None means "All rights reserved"
as does "" also do.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This feature is absolutely necessary. Now a user can simply define
their default license and quickly go through a form, as opposed to
stopping to click on the select and choosing the same option over
and over again.
Also added DB migration for the field, so that's working now, too.
Rebased by Sebastian and made the default value to be unicode.
Reviewed-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
|
|
|
|
| |
Follow the new trend.
|
|
|
|
|
|
| |
In our current scheme of migrations, we reflect the current
sql schema into an SQLAlchemy schema. So let's have a tool
function for this.
|
|
|
|
|
|
|
|
|
| |
Factor all the migration related stuff out into a new
.db.sql.migration_tools.
First we don't have to load this module for our normal
server.
Second it makes all the import dependencies a little more
cleaner.
|
| |
|
|
|
|
|
|
|
|
| |
Now that sqlalchemy is providing the database abstractions, there is no
need to hide everything in db.sql. sub-modules. It complicates the code
and provides a futher layer of indirection.
Move the db.sql.util.py to db.util.py and adapt the importers.
|
| |
|
|
|
|
| |
And change references.
|
|
|
|
|
| |
- Change some reference
- Provide a wrapper db/util.py
|
|\
| |
| |
| |
| |
| | |
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/submit/views.py
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* DONE Initially testing with arista
** DONE Video display templates
*** TODO Multi-browser support
** TODO Video thumbnails
** TODO Link to original video
** TODO Video cropping
Also contains a lot of "debug" print's
|
| |
| |
| |
| |
| |
| | |
Migrations often just add a new field to some
table/collection. So just have a nice helper function for
this!
|
|/ |
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/auth/routing.py
|
| |
| |
| |
| | |
to None/null
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
mediagoblin/db/migrations.py
|
| |
| |
| |
| |
| | |
- deleted the thumbnail_file from the media_entries collection
- added a migration to remove the field from previous db versions
|
|/ |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| | |
+ fix whitespace issues
|
| | |
|
|/ |
|
| |
|
| |
|
|
setup yet)
|