| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
sqlalchemy gives autoloading (hopefully caching) link to
other objects as properties. So turn get_uploader on the
current mongo based stuff into a property to ease
transition.
|
|
|
|
|
|
| |
media.get_uploader()._id loads a complete user object
without actually needing it, because media.uploader already
has the id!
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
these things?
|
|\ |
|
| |\
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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()
|
| | |
| | |
| | |
| | | |
Nothing else.
|
| | |
| | |
| | |
| | | |
deleted.
|
|/ /
| |
| |
| | |
without cheking the "I'm sure" checkbox.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/user_pages/views.py
mediagoblin/util.py
|
| |/
| |
| |
| |
| |
| |
| | |
* Removed trailing whitespace
* Line length < 80 where possible
* Honor conventions on number of blank lines
* Honor conventions about spaces around :, =
|
| | |
|
| |
| |
| |
| | |
See: http://bugs.foocorp.net/issues/621
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
tools/[file].py
|
|
|
|
|
|
| |
Some places used to generate the URL for a media entry on
their own instead of calling media.url_for_self() to do
that. The later handles missing slugs better.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* Moved `mediagoblin.confirm` stuff to `mediagoblin.user_pages`,
templates too.
* Removed route extension for `mediagoblin.confirm`
* Created `delete_media_files` which deletes all media files
on the public_store when the entry is deleted
* Created a new decorator to check if a user has the permission
to delete an entry.
|
|\
| |
| |
| |
| |
| |
| | |
Conflicts:
mediagoblin/edit/views.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/user_pages/routing.py
|
| |
| |
| |
| |
| | |
+ implemented delete functionality
* fixed several instances of 'must be an instance of unicode, not str'
|
|\|
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
mediagoblin/config_spec.ini
mediagoblin/edit/forms.py
mediagoblin/edit/views.py
mediagoblin/submit/views.py
mediagoblin/templates/mediagoblin/user_pages/media.html
|
| | |
|
| |
| |
| |
| | |
Now you can view your failed and in-process media items!
|
| | |
|
|/
|
|
|
| |
* Moved attachment uploading to separate view
* Support for multiple attachments!
|
| |
|
| |
|
| |
|
|
|
|
| |
* Also changed file encoding of `user_pages/forms.py` from dos to unix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
linking
* `media.html`
* Changed comment textarea handle from `comment` => `field_comment`
* Active comment is hilighted with the CSS class name `comment_active`
and also with the hyperlink anchor #comment
* Changed media.html so that pagination always uses
Route('mediagoblin.user_pages.media_home') as base_url
* `user_pages/forms.py`
* Renamed MediaComment form field `comment` => `field_comment`
* `user_pages/routing.py`
* Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home`
* `user_pages/views.py`
* `media_home` now checks if the request contains a comment id parameter
then acts accordingly with pagination whether to call it with a
`jump_to_id` or not.
* `media_post_comment` - Updated MediaCommentForm field name
`comment` => `field_comment`
* `util.py`
* `redirect` now supports querystring arguments. - NOT USED (should we
keep it? I think so, it might be useful, sometime [don't call me a
code hoarder]).
* `Pagination.__init__` now accepts one further argument, the `jump_to_id`.
It assist the comment linking functionality in finding and returning the
proper page for a comment.
This feature will work for all kinds of objects. It might not be
optimal, but it is well functional :)
|
|
|
|
|
|
| |
This required a couple of changes:
- making a new render_pagination macro
- switching things over to use that
|
|
|
|
|
|
|
|
|
|
|
|
| |
#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.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
comments" feature
* ADDED `media_post_comment(request)` which creates `MediaComments`
from POST requests
* UPDATED `media_home(request, media, **kwargs)` now passes `comments`,
`pagination` and `comments_form` to `media.html`
|
|\
| |
| |
| |
| | |
Conflicts:
setup.py
|
| | |
|
| | |
|