Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move db/indexes.py to db/mongo/indexes.py | Elrond | 2011-12-20 | 2 | -1/+1 |
| | | | | And change references (one!). | ||||
* | Move db/open.py to db/mongo/open.py | Elrond | 2011-12-20 | 3 | -39/+71 |
| | | | | | | | | | | | | Starting to move the mongo specific stuff into db/mongo. And create thin "from db.mongo.Y import z" wrappers in db/Y.py. Why? 1) Will make it lots easier to switch to sql for testing/developing. 2) The mongo stuff needs to stay around after moving to sql, because the converter needs it. | ||||
* | SQL: mongokit like interface | Elrond | 2011-12-18 | 4 | -2/+54 |
| | | | | | | | | In trying to ease the migration to SQL, created an interface to sqlalchemy that looks a lot like the interface that is currently in use. *WARNING* Work in progress | ||||
* | Simple Mongo -> SQL migration tool | Elrond | 2011-12-17 | 1 | -0/+143 |
| | | | | | | | | | | | | | | | | This is just a start at a Migration tool from Mongo to SQL. It fills all currently available SQL models with data from MongoDB. A few fields in the SQL tables are left out, because some data format migrations are needed (notably: queue_file_name). This thing lives in mediagoblin/db/sql/convert.py because it has a lot of stuff hardcoded and is not, repeat not for end users! Hard coded: - output database: ./mediagoblin.db (sqlite) - Mediagoblin config: ./mediagoblin.ini | ||||
* | Little sql model update | Elrond | 2011-12-17 | 1 | -1/+2 |
| | | | | | | - Add title to the MediaEntry - Rename fp_verification_expire to fp_token_expire to follow the mongo model. | ||||
* | SQL: Some toys and little fix | Elrond | 2011-12-15 | 1 | -1/+12 |
| | | | | | | | | Run bin/python mediagoblin/db/sql/models.py and watch the create tables on a memory sqlite db. Also unicode strings need unicode defauls. Warning by sqlalchemy. | ||||
* | Move sql models into db/sql/ | Elrond | 2011-12-15 | 2 | -0/+15 |
| | | | | | So we can play with the sql models, let's put them in a proper place. | ||||
* | Merge remote branch 'remotes/cwebber/sqlalchemy' | Elrond | 2011-12-15 | 1 | -0/+95 |
|\ | | | | | | | | | * remotes/cwebber/sqlalchemy: Beginnings of sqlalchemy models | ||||
| * | Beginnings of sqlalchemy models | Christopher Allan Webber | 2011-11-17 | 1 | -0/+95 |
| | | |||||
* | | Dot-Notation for MediaEntry.media_data | Elrond | 2011-12-05 | 1 | -2/+2 |
| | | |||||
* | | Dot-Notation for MediaEntry.slug | Elrond | 2011-12-05 | 1 | -6/+6 |
| | | |||||
* | | Dot-Notation for MediaEntry.title | Elrond | 2011-12-05 | 1 | -1/+1 |
| | | |||||
* | | Dot-Notation for MediaEntry.uploader | Elrond | 2011-12-05 | 1 | -3/+3 |
| | | |||||
* | | Dot-Notation for Users.pw_hash | Elrond | 2011-12-05 | 1 | -1/+1 |
| | | |||||
* | | Dot-Notation for Users.username | Elrond | 2011-12-05 | 1 | -4/+4 |
| | | |||||
* | | Merge remote-tracking branch 'remotes/jwandborg/master' | Christopher Allan Webber | 2011-11-24 | 1 | -0/+8 |
|\ \ | |||||
| * \ | Merge branch 'video_gstreamer-only' | Joar Wandborg | 2011-11-21 | 1 | -0/+8 |
| |\ \ | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/submit/views.py | ||||
| | * | | Multimedia support - Commiting from a not yet finished state - Details below | Joar Wandborg | 2011-09-23 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | | | | Rename MediaEntry.uploader() to .get_uploader() | Elrond | 2011-11-22 | 1 | -4/+4 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | The .uploader() method conflicts with the uploader database field. As we're moving to .FIELD for db field access, this is a relevant conflict. So renaming .uploader() to .get_uploader() | ||||
* | | | Added parameter ascending to MediaEntry::get_comments, if true, comments | Pablo J. Urbano Santos | 2011-11-19 | 1 | -2/+7 |
| | | | | | | | | | | | | will be ordered ascending, otherwise descending | ||||
* | | | Dot-Notation for "_id" | Elrond | 2011-11-15 | 1 | -5/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: Migrations can't use "Dot Notation"! Migrations run on pymongo, not mongokit. So they can't use the "Dot Notation". This isn't really a big issue, as migrations are anyway quite mongo specific. | ||||
* | | | Enable mongokit's "Dot notation" | Elrond | 2011-11-15 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mongokit documents can allow to use x.FIELD instead of x["FIELD"]. First it looks a lot more pythonic. Second it might allow us an easier migration path towards an sqlalchemy database backend. Docs: http://namlook.github.com/mongokit/tutorial.html#dot-notation | ||||
* | | | Merge remote-tracking branch 'remotes/nyergler/pep8-ification' | Christopher Allan Webber | 2011-11-13 | 5 | -24/+27 |
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py | ||||
| * | | has_key is deprecated, converting uses to use "in" operator. | Nathan Yergler | 2011-10-01 | 1 | -1/+1 |
| | | | |||||
| * | | Whitespace and formatting cleanup. | Nathan Yergler | 2011-10-01 | 6 | -24/+27 |
| |/ | | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, = | ||||
* | | Factor out a add_table_field function | Elrond | 2011-10-21 | 1 | -23/+16 |
| | | | | | | | | | | | | Migrations often just add a new field to some table/collection. So just have a nice helper function for this! | ||||
* | | Finished splitting util.py into separate files. | Aaron Williamson | 2011-10-01 | 2 | -8/+6 |
| | | |||||
* | | Moved common, translation, template, and url code out of util.py and into ↵ | Aaron Williamson | 2011-10-01 | 1 | -2/+2 |
|/ | | | | tools/[file].py | ||||
* | Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality' | Christopher Allan Webber | 2011-09-08 | 2 | -0/+17 |
|\ | | | | | | | | | Conflicts: mediagoblin/auth/routing.py | ||||
| * | user_add_forgot_password_token_and_expires migration should set new fields ↵ | Christopher Allan Webber | 2011-09-07 | 1 | -2/+2 |
| | | | | | | | | to None/null | ||||
| * | oops, uses Alejandro's fp_verification_key. my bad. | Caleb Forbes Davis V | 2011-08-28 | 2 | -3/+3 |
| | | |||||
| * | Adding fotgot password functionality | Alejandro Villanueva | 2011-08-28 | 2 | -0/+17 |
| | | |||||
* | | 508. Updates copyright/license information | Will Kahn-Greene | 2011-09-01 | 6 | -6/+6 |
|/ | |||||
* | Method to get the failure exception object for a MediaEntry, if appropriate. | Christopher Allan Webber | 2011-08-14 | 1 | -0/+7 |
| | |||||
* | Add fail_error and fail_metadata fields to MediaEntry and relevant migration | Christopher Allan Webber | 2011-08-13 | 2 | -1/+26 |
| | |||||
* | Missing multi=True closing this migration, oops :) | Christopher Allan Webber | 2011-08-12 | 1 | -0/+1 |
| | |||||
* | Merge branch 'master' into processing | Christopher Allan Webber | 2011-08-11 | 2 | -6/+11 |
|\ | | | | | | | | | Conflicts: mediagoblin/db/migrations.py | ||||
| * | Bug #372 - MediaEntry.thumbnail_file not used | Caleb Forbes Davis V | 2011-08-10 | 2 | -6/+11 |
| | | | | | | | | | | - deleted the thumbnail_file from the media_entries collection - added a migration to remove the field from previous db versions | ||||
* | | Merge branch 'master' into processing | Christopher Allan Webber | 2011-08-10 | 2 | -1/+16 |
|\| | |||||
| * | Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetags | Christopher Allan Webber | 2011-07-30 | 2 | -1/+16 |
| |\ | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/views.py mediagoblin/util.py | ||||
| | * | updates indices to index on the slug component of the tag list | Caleb Forbes Davis V | 2011-07-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | - uses dot notation to reach into the JSON-style MediaEntry tags field object to index on the slug property of each tag | ||||
| | * | changes tags to a list of dicts in the db, adding tag slugs | Caleb Forbes Davis V | 2011-07-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - adds a function to convert the tag list of dicts to a text string properly delimited for loading into forms - tag string conversion function updated to generate list of dicts - updates all mentions of the conversion of the string to the tags db object - adds a tags template utility and updates the media template accordingly | ||||
| | * | adds "state" to tags indices | Caleb Forbes Davis V | 2011-07-13 | 1 | -6/+8 |
| | | | |||||
| | * | adds index for searching across all users' tagged images | Caleb Forbes Davis V | 2011-07-13 | 1 | -0/+6 |
| | | | |||||
| | * | adds index for tag searches by an uploader | Caleb Forbes Davis V | 2011-07-10 | 1 | -0/+7 |
| | | | |||||
* | | | Store the task id of a processing action in the database. | Christopher Allan Webber | 2011-07-24 | 2 | -0/+15 |
|/ / | |||||
* | | docstring for MediaComment's structure | Christopher Allan Webber | 2011-07-17 | 1 | -1/+12 |
| | | |||||
* | | Described the MediaEntry structure in the docstring. | Christopher Allan Webber | 2011-07-17 | 1 | -6/+81 |
| | | |||||
* | | Docstring for the User model's various schema fields | Christopher Allan Webber | 2011-07-17 | 1 | -0/+26 |
| | | |||||
* | | Migration for mediafiles main->original | Christopher Allan Webber | 2011-07-17 | 1 | -0/+16 |
| | |