aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/db/models.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | | 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
* Merge remote-tracking branch 'origin/master' into is315cfdv2011-06-201-1/+2
|\
| * Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblinJoar Wandborg2011-06-151-2/+2
| |\
| * | Added Markdown rendering for `media_entry`Joar Wandborg2011-06-121-1/+2
| | |
* | | baby step towards enabling profile editscfdv2011-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adds * url and bio fields to database * form for editing the user profile * route to the edit profile controller * view for the profile editing page * template for the profile editing page * link to edit profile in the welcome page still needs * thorough inspection to see if it makes sense * tests * ?
* | | adds user bio and website url fields to the databasecfdv2011-06-181-0/+2
| |/ |/|
* | mediagoblin.globals->mediagoblin.mg_globalsChristopher Allan Webber2011-06-121-2/+2
|/
* No need for a method for generating the verification key as a methodChristopher Allan Webber2011-06-021-8/+0
| | | | on the class, can just do that in the view
* Merge remote branch 'remotes/aleks/aleks'Christopher Allan Webber2011-05-311-0/+8
|\
| * Added the ability to regenerate a verification key.Aleksandar Micovic2011-05-311-0/+8
| |
* | Add an index on MediaEntries making sure slugs + uploader combos are uniqueChristopher Allan Webber2011-05-301-6/+5
|/
* remove all 'username_repr' stuffJakob Kramer2011-05-291-2/+1
|
* this should fix #354Jakob Kramer2011-05-291-1/+2
|
* Update all the views so that they use the uploader reference insteadChristopher Allan Webber2011-05-221-2/+7
| | | | of uploader embedding
* User migration works (but the rest of the system isn't updated for new user ↵Christopher Allan Webber2011-05-221-1/+5
| | | | setup yet)
* Added a url_for_self method for generating mediaentry linksChristopher Allan Webber2011-05-201-0/+18
| | | | This allows for optionally making the url based off of slugs or ids
* Move models into new db/ directoryElrond2011-05-181-0/+128
The database is a central point of interest/discussion. Represent that by its own directory. This will surely become more interesting when we have migrations for example.