aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
Commit message (Collapse)AuthorAgeFilesLines
* Dot-Notation for MediaEntry.media_dataElrond2011-12-051-2/+2
|
* Dot-Notation for MediaEntry.slugElrond2011-12-051-6/+6
|
* Dot-Notation for MediaEntry.titleElrond2011-12-051-1/+1
|
* Dot-Notation for MediaEntry.uploaderElrond2011-12-051-3/+3
|
* Dot-Notation for Users.pw_hashElrond2011-12-051-1/+1
|
* Dot-Notation for Users.usernameElrond2011-12-051-4/+4
|
* Rename MediaEntry.uploader() to .get_uploader()Elrond2011-11-221-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, commentsPablo J. Urbano Santos2011-11-191-2/+7
| | | | will be ordered ascending, otherwise descending
* Dot-Notation for "_id"Elrond2011-11-151-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"Elrond2011-11-151-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 Webber2011-11-131-17/+18
|\ | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/user_pages/views.py mediagoblin/util.py
| * Whitespace and formatting cleanup.Nathan Yergler2011-10-011-17/+18
| | | | | | | | | | | | | | * Removed trailing whitespace * Line length < 80 where possible * Honor conventions on number of blank lines * Honor conventions about spaces around :, =
* | Finished splitting util.py into separate files.Aaron Williamson2011-10-011-7/+5
| |
* | Moved common, translation, template, and url code out of util.py and into ↵Aaron Williamson2011-10-011-2/+2
|/ | | | tools/[file].py
* Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality'Christopher Allan Webber2011-09-081-0/+2
|\ | | | | | | | | Conflicts: mediagoblin/auth/routing.py
| * oops, uses Alejandro's fp_verification_key. my bad.Caleb Forbes Davis V2011-08-281-1/+1
| |
| * Adding fotgot password functionalityAlejandro Villanueva2011-08-281-0/+2
| |
* | 508. Updates copyright/license informationWill Kahn-Greene2011-09-011-1/+1
|/
* Method to get the failure exception object for a MediaEntry, if appropriate.Christopher Allan Webber2011-08-141-0/+7
|
* Add fail_error and fail_metadata fields to MediaEntry and relevant migrationChristopher Allan Webber2011-08-131-1/+9
|
* Merge branch 'master' into processingChristopher Allan Webber2011-08-111-6/+1
|\ | | | | | | | | Conflicts: mediagoblin/db/migrations.py
| * Bug #372 - MediaEntry.thumbnail_file not usedCaleb Forbes Davis V2011-08-101-6/+1
| | | | | | | | | | - deleted the thumbnail_file from the media_entries collection - added a migration to remove the field from previous db versions
* | Merge branch 'master' into processingChristopher Allan Webber2011-08-101-1/+1
|\|
| * Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetagsChristopher Allan Webber2011-07-301-1/+1
| |\ | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/views.py mediagoblin/util.py
| | * changes tags to a list of dicts in the db, adding tag slugsCaleb Forbes Davis V2011-07-271-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
* | | Store the task id of a processing action in the database.Christopher Allan Webber2011-07-241-0/+3
|/ /
* | docstring for MediaComment's structureChristopher Allan Webber2011-07-171-1/+12
| |
* | Described the MediaEntry structure in the docstring.Christopher Allan Webber2011-07-171-6/+81
| |
* | Docstring for the User model's various schema fieldsChristopher Allan Webber2011-07-171-0/+26
| |
* | Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'Christopher Allan Webber2011-07-161-0/+22
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/migrations.py mediagoblin/db/models.py mediagoblin/process_media/__init__.py mediagoblin/templates/mediagoblin/user_pages/media.html mediagoblin/util.py
| * | Removed debug code, erroneously included in my last commitJoar Wandborg2011-07-031-1/+1
| | |
| * | Feature #400 - Resize images to fit on page - AdditionsJoar Wandborg2011-07-031-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `migrations.py` * Removed empty line * Added empty line * `models.py` * Added `MediaEntry.get_display_media()` helper function * `process_media.__init__.py` * Updated `process_media_initial()` * Renamed `main` => `original`. * Added condition to `medium`, it's only created if the original dimensions exceed the MEDIUM_SIZE dimensions. * `media.html` * The image tag is now populated by `MediaEntry.get_display_media()` * `util.py` * Added `DISPLAY_IMAGE_FETCHING_ORDER`, used by `MediaEntry.get_display_media()`
* | | Merge remote branch 'remotes/aaronw/feature410_markdown_bio'Christopher Allan Webber2011-07-131-1/+2
|\ \ \
| * | | Markdown-enable user bio (Feature 410)Aaron Williamson2011-07-101-1/+2
| | |/ | |/|
* / | Removing old style migrations... not in use anymoreChristopher Allan Webber2011-07-111-6/+2
|/ /
* | This should actually fix the next and previous buttons now. Sorry I borked ↵Christopher Allan Webber2011-07-071-2/+2
| | | | | | | | the merge!
* | Merge remote branch ↵Christopher Allan Webber2011-07-061-3/+3
|\ \ | | | | | | | | | | | | | | | | | | 'remotes/gullydwarf-cfdv/f423_match_image_ordering_between_scroll_and_gallery' Conflicts: mediagoblin/db/models.py
| * | Feature #423 - gallery and scroll image ordering matchCaleb Forbes Davis V2011-07-041-4/+4
| | |
* | | Merge remote branch 'remotes/gullydwarf-cfdv/f435_limit_prev_next_by_processed'Christopher Allan Webber2011-07-061-2/+4
|\ \ \
| * | | f#435 - avoids linking to unprocessed media in prev and nextCaleb Forbes Davis V2011-07-051-2/+4
| |/ /
* / / slug-style urls in previous and next urls look much betterCaleb Forbes Davis V2011-07-051-2/+2
|/ / | | | | | | Bug #434 - identifies media by slug instead of _id in prev/next
* | Merge remote branch 'remotes/gullydwarf-cfdv/f401_prev_next_media_nav'Christopher Allan Webber2011-07-021-1/+27
|\ \ | | | | | | | | | | | | | | | Conflicts: mediagoblin/db/models.py mediagoblin/templates/mediagoblin/user_pages/media.html
| * | adds previous and next links in the sidebarCaleb Forbes Davis V2011-07-021-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | Feature #401 - previous/next navigation on media pages * media.html includes a new prev_next.html template containing the links * prev_next.html calls functions added to the media model to retrieve the appropriate objects from the database, formatted with urlgen * a small change to util.py brings ASCENDING into the mix
| * | Merge remote branch 'remotes/jwandborg/feature_362-simple_comments'Christopher Allan Webber2011-06-291-3/+43
| |\ \
* | | | Issue #362 - Simple comments - Changes based on feedback recieved from ↵Joar Wandborg2011-07-011-17/+5
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | #mediagoblin * `db.models` - Removed `MediaEntry.get_comments()` and replaced it with a helper which just returns a cursor for the comments query * `media.html` - Added `{% set comment_author = comment.author() %}` * `user_pages.views` - media_home() now passes `MediaEntry.get_comments()` directly to `Pagination`, handles pagination for comments. * Added `MEDIA_COMMENTS_PER_PAGE` to define the number of comments per page in the `media_home()` view.
* | | Merge branch 'feature_362-simple_comments'Joar Wandborg2011-06-291-3/+43
|\ \ \ | |/ / |/| / | |/
| * Issue #362 - Updated the MediaComment modelJoar Wandborg2011-06-291-4/+20
| | | | | | | | | | | | | | * `MediaComment.get_comments()` now uses pagination * `MediaComment.get_comments()` now sorts by `created` DESC * `MediaComment.media_entry` is now **required** * `MediaComment.media_entry()` now returns parent `MediaEntry`
| * Issue 362 - Add simple commentsJoar Wandborg2011-06-271-1/+25
| | | | | | | | | | * Added MediaComment database model Holds `media_entry` (`ObjectId`), `author` (`ObjectId`), `created`, `content` and `content_html`.
* | Adding our current indexes and removing the index that was in models.pyChristopher Allan Webber2011-06-271-5/+0
|/
* assigns migration steps to User database objectscfdv2011-06-201-0/+2
| | | | | | adds the migration_handler to the User db class, connecting the migration steps in ../db/migrations.py to the migration code in gmg_commands