Elrond [Wed, 8 Jun 2011 21:22:11 +0000 (23:22 +0200)]
Refactor filename generation in the public store
Just a small refactoring of the filename setup in the
public store. Very simple.
Elrond [Sun, 5 Jun 2011 13:49:08 +0000 (15:49 +0200)]
Create redirect shortcut and use it around
This is just replacing exc.HTTPFound(location=request.urlgen(...))
by redirect(request, ...). No magic.
Elrond [Sun, 5 Jun 2011 14:02:12 +0000 (16:02 +0200)]
Reformat render_to_response calls
Just a simple indentation and ordering change, no
functional change.
Elrond [Sun, 5 Jun 2011 13:25:45 +0000 (15:25 +0200)]
Create render_to_reponse and use it everywhere.
Just a shortcut for Response(render_template(...))
Christopher Allan Webber [Sun, 5 Jun 2011 14:14:38 +0000 (09:14 -0500)]
Firefox 3.X shows hidden fields for some reason, adding display: none;
to be rid of them for sure
Christopher Allan Webber [Sat, 4 Jun 2011 22:36:36 +0000 (17:36 -0500)]
Moving all views over to using util.render_template()!
Christopher Allan Webber [Sat, 4 Jun 2011 21:44:22 +0000 (16:44 -0500)]
Cache template environments and gettexts so we don't have to reproduce
them on every request.
Christopher Allan Webber [Sat, 4 Jun 2011 21:32:13 +0000 (16:32 -0500)]
Added new render_template method which will make our lives nicer and
also will be useful for unit testing purposes :)
Christopher Allan Webber [Sat, 4 Jun 2011 18:20:48 +0000 (13:20 -0500)]
Proper webtest infrastructure... seems to be about right anyway :)
Christopher Allan Webber [Sat, 4 Jun 2011 13:48:51 +0000 (08:48 -0500)]
Mount media editing under /u/{username}/m/{media}/edit/
Christopher Allan Webber [Sat, 4 Jun 2011 13:48:17 +0000 (08:48 -0500)]
Let's redirect back to the media homepage using the slug instead of the id
Christopher Allan Webber [Sat, 4 Jun 2011 12:41:31 +0000 (07:41 -0500)]
I shouldn't have removed the .save() entirely :)
Christopher Allan Webber [Fri, 3 Jun 2011 23:47:22 +0000 (18:47 -0500)]
Title first and foremost... anything else looks weird to me.
Christopher Allan Webber [Fri, 3 Jun 2011 23:43:20 +0000 (18:43 -0500)]
Merge branch 'media_edit'
Christopher Allan Webber [Fri, 3 Jun 2011 23:43:08 +0000 (18:43 -0500)]
Find out if such a slug exists via a query instead of via a .save() call
Elrond [Fri, 3 Jun 2011 21:54:33 +0000 (23:54 +0200)]
Propagate Exceptions up in Celery-Eager-Mode
When running in celery-eager mode, the celery machinery
hides all exceptions inside "celery tasks" (you can find
out about them on the task handle somehow). Currently much
better to propagate them straight up, so they're visible on
the console.
Aleksandar Micovic [Fri, 3 Jun 2011 01:07:37 +0000 (21:07 -0400)]
Refactored the sending of verification emails.
Christopher Allan Webber [Thu, 2 Jun 2011 21:30:06 +0000 (16:30 -0500)]
attribute values should be quoted :)
Christopher Allan Webber [Thu, 2 Jun 2011 21:04:17 +0000 (16:04 -0500)]
No reason for 'verification_successful = bool' here.
Elrond [Thu, 2 Jun 2011 16:28:26 +0000 (18:28 +0200)]
Add GNU headers to new *.py
Elrond [Thu, 2 Jun 2011 15:43:54 +0000 (17:43 +0200)]
Handle Exceptions from save(); Move may_edit_media
Turn .save() excpetions into a HTTPConflict. Not nice, but
at least the user gets the error. Until there is a proper
way to validate things and get nice errors.
Move may_edit_media() to lib.py, as it's not a view.
Elrond [Thu, 2 Jun 2011 14:48:15 +0000 (16:48 +0200)]
Prepare for moving /edit/ under /u/.../edit/
To make moving the whole thing under /u/ easier, prepare to
pass in the {user} needed for that.
Elrond [Thu, 2 Jun 2011 14:39:47 +0000 (16:39 +0200)]
Change edit form to use divs instead of table
Christopher Allan Webber [Thu, 2 Jun 2011 14:02:13 +0000 (09:02 -0500)]
No need for a method for generating the verification key as a method
on the class, can just do that in the view
Christopher Allan Webber [Thu, 2 Jun 2011 13:47:30 +0000 (08:47 -0500)]
Elrond put that ObjectId thing in the db.util module and wants us to
use that one ;)
Elrond [Thu, 2 Jun 2011 12:33:26 +0000 (14:33 +0200)]
Merge remote branch 'upstream/master'
Conflicts:
mediagoblin/templates/mediagoblin/user_pages/media.html
Elrond [Thu, 2 Jun 2011 12:25:31 +0000 (14:25 +0200)]
Check for edit permission.
You need to own the media, or be an admin to use the edit form.
As simple as that, for now.
Christopher Allan Webber [Wed, 1 Jun 2011 00:54:26 +0000 (19:54 -0500)]
0.0.2 of GNU MediaGoblin!
Christopher Allan Webber [Wed, 1 Jun 2011 00:37:28 +0000 (19:37 -0500)]
If a user doesn't provide a userid and a token to the verify_email function, might as well 404
Christopher Allan Webber [Wed, 1 Jun 2011 00:31:23 +0000 (19:31 -0500)]
Moving import to outside of this function
Christopher Allan Webber [Wed, 1 Jun 2011 00:30:05 +0000 (19:30 -0500)]
Just adjusting some spacing so we don't go over 80 chars
Christopher Allan Webber [Wed, 1 Jun 2011 00:29:36 +0000 (19:29 -0500)]
Give a "proper" view for resending verification email
Christopher Allan Webber [Wed, 1 Jun 2011 00:17:28 +0000 (19:17 -0500)]
Merge remote branch 'remotes/aleks/aleks'
Aleksandar Micovic [Tue, 31 May 2011 21:14:23 +0000 (17:14 -0400)]
Added the ability to regenerate a verification key.
Aleksandar Micovic [Tue, 31 May 2011 19:26:00 +0000 (15:26 -0400)]
Fixed bug where someone who wasn't logged in was asked to verify
their emails.
Aleksandar Micovic [Tue, 31 May 2011 03:51:30 +0000 (23:51 -0400)]
Added a temporary verification page informing the user they need
to authenticate.
Christopher Allan Webber [Mon, 30 May 2011 23:06:12 +0000 (18:06 -0500)]
Add an index on MediaEntries making sure slugs + uploader combos are unique
Christopher Allan Webber [Sun, 29 May 2011 22:49:03 +0000 (17:49 -0500)]
Use the object gallery file on the front page also
Christopher Allan Webber [Sun, 29 May 2011 22:43:18 +0000 (17:43 -0500)]
This <ul /> not used (second inside), removing
Jakob Kramer [Sun, 29 May 2011 17:49:25 +0000 (19:49 +0200)]
remove all 'username_repr' stuff
Jakob Kramer [Sun, 29 May 2011 17:17:44 +0000 (19:17 +0200)]
don't import 're'
Jakob Kramer [Sun, 29 May 2011 17:15:46 +0000 (19:15 +0200)]
this should fix #354
Jef van Schendel [Sun, 29 May 2011 00:02:26 +0000 (02:02 +0200)]
First changes to media gallery view
Jef van Schendel [Sat, 28 May 2011 23:53:41 +0000 (01:53 +0200)]
Slightly modified text on media page
Jef van Schendel [Sat, 28 May 2011 23:47:12 +0000 (01:47 +0200)]
Centered image on media page
Jef van Schendel [Sat, 28 May 2011 23:43:12 +0000 (01:43 +0200)]
Modified logo to change on :hover
Jef van Schendel [Sat, 28 May 2011 23:14:48 +0000 (01:14 +0200)]
Changed submit form to divs
Joar Wandborg [Sat, 28 May 2011 21:56:29 +0000 (23:56 +0200)]
Changed <p> font from 'sans' to 'sans-serif'
Joar Wandborg [Sat, 28 May 2011 21:54:15 +0000 (23:54 +0200)]
Changed <body> font from 'sans' to 'sans-serif'
Joar Wandborg [Sat, 28 May 2011 21:52:00 +0000 (23:52 +0200)]
Merge branch 'master' of git://gitorious.org/~schendje/mediagoblin/schendjes-mediagoblin
Joar Wandborg [Sat, 28 May 2011 21:19:44 +0000 (23:19 +0200)]
*GNU* MediaGoblin on <title>
Jef van Schendel [Sat, 28 May 2011 19:32:12 +0000 (21:32 +0200)]
Fixed submit button style, added create-account notice to log in page
Jef van Schendel [Sat, 28 May 2011 19:15:15 +0000 (21:15 +0200)]
Forgot a bottom-margin for the error div
Jef van Schendel [Sat, 28 May 2011 19:10:54 +0000 (21:10 +0200)]
Changed login forms to use divs instead of tables
Jef van Schendel [Sat, 28 May 2011 19:02:34 +0000 (21:02 +0200)]
Styled error messages
Jef van Schendel [Sat, 28 May 2011 18:43:57 +0000 (20:43 +0200)]
Fixed form header
Jef van Schendel [Sat, 28 May 2011 16:32:43 +0000 (18:32 +0200)]
Styled forms
Jef van Schendel [Sat, 28 May 2011 15:44:15 +0000 (17:44 +0200)]
Merge remote-tracking branch 'gitorious/master'
Christopher Allan Webber [Sat, 28 May 2011 14:54:09 +0000 (09:54 -0500)]
Added a new form rendering system, render_divs, and using it for registration
Elrond [Thu, 26 May 2011 22:17:30 +0000 (00:17 +0200)]
"edit": Finally implement saving.
Currently no checks. Probably not so good.
And especially, every logged in user currently can edit the
data for any other user's media.
Elrond [Thu, 26 May 2011 21:17:41 +0000 (23:17 +0200)]
Use new button style
Elrond [Thu, 26 May 2011 21:09:33 +0000 (23:09 +0200)]
Starting "edit" functionality.
This adds a link to the "edit" form, the form, the view for
displaying the form and that's about it.
Jef van Schendel [Thu, 26 May 2011 17:27:58 +0000 (19:27 +0200)]
Merge remote-tracking branch 'gitorious/master'
Christopher Allan Webber [Thu, 26 May 2011 15:14:46 +0000 (10:14 -0500)]
*GNU* MediaGoblin home ;)
Jef van Schendel [Wed, 25 May 2011 23:24:13 +0000 (01:24 +0200)]
Changed logout/account text
Jef van Schendel [Wed, 25 May 2011 22:45:17 +0000 (00:45 +0200)]
Changed header size
Jef van Schendel [Wed, 25 May 2011 22:41:13 +0000 (00:41 +0200)]
We now have only one button style
Jef van Schendel [Wed, 25 May 2011 22:15:26 +0000 (00:15 +0200)]
Put log in / log out in its place!
Jef van Schendel [Wed, 25 May 2011 22:12:23 +0000 (00:12 +0200)]
Changed mediagoblin_content name to mediagoblin_container
Jef van Schendel [Wed, 25 May 2011 22:05:08 +0000 (00:05 +0200)]
Added actual image
Jef van Schendel [Wed, 25 May 2011 22:04:40 +0000 (00:04 +0200)]
Added header icon link
Jef van Schendel [Wed, 25 May 2011 21:57:51 +0000 (23:57 +0200)]
Removed clever subtitle
Jef van Schendel [Thu, 19 May 2011 23:33:28 +0000 (01:33 +0200)]
Changed link color and underline
Jef van Schendel [Thu, 19 May 2011 23:31:45 +0000 (01:31 +0200)]
Changed background colors to plain colors
Christopher Allan Webber [Mon, 23 May 2011 22:39:44 +0000 (17:39 -0500)]
Expanded page width to 960px
Conflicts:
mediagoblin/static/css/base.css
Jef van Schendel [Thu, 19 May 2011 23:26:52 +0000 (01:26 +0200)]
Removed background images and logo, won't need those for a while
Bernhard Keller [Mon, 23 May 2011 17:00:46 +0000 (19:00 +0200)]
modified atomfeed feature, corrected spacing, url generation, routing id
Christopher Allan Webber [Sun, 22 May 2011 22:11:59 +0000 (17:11 -0500)]
Encourage users to run migrations every time they buildout.
Christopher Allan Webber [Sun, 22 May 2011 22:06:11 +0000 (17:06 -0500)]
A more explicit version of get_page_url that doesn't use the request
is still an option now ;)
Christopher Allan Webber [Sun, 22 May 2011 21:55:01 +0000 (16:55 -0500)]
Merge remote branch 'refs/remotes/elrond/idea/new_get_page_url'
Christopher Allan Webber [Sun, 22 May 2011 21:40:31 +0000 (16:40 -0500)]
Slightly better spacing in media.html
Christopher Allan Webber [Sun, 22 May 2011 21:37:58 +0000 (16:37 -0500)]
Forgot switch to media.uploader() in the same way on two lines :P
Christopher Allan Webber [Sun, 22 May 2011 21:06:45 +0000 (16:06 -0500)]
Update all the views so that they use the uploader reference instead
of uploader embedding
Christopher Allan Webber [Sun, 22 May 2011 15:52:53 +0000 (10:52 -0500)]
User migration works (but the rest of the system isn't updated for new user setup yet)
Christopher Allan Webber [Sun, 22 May 2011 14:56:33 +0000 (09:56 -0500)]
Move the general applicaiton setup commands to a utility module
Christopher Allan Webber [Sun, 22 May 2011 14:25:51 +0000 (09:25 -0500)]
Move the ./bin/gmg shell command into its own module.
Elrond [Sat, 21 May 2011 15:02:49 +0000 (17:02 +0200)]
Fix doc string of get_page_url()
Elrond [Sat, 21 May 2011 14:38:34 +0000 (16:38 +0200)]
Give Pagination.get_page_url() a request instead of path and GET
Makes calling Pagination.get_page_url() much simpler.
Christopher Allan Webber [Sat, 21 May 2011 00:35:11 +0000 (19:35 -0500)]
Clarified: don't do this in production!
Christopher Allan Webber [Sat, 21 May 2011 00:34:28 +0000 (19:34 -0500)]
Added some stuff on how to run CELERY_ALWAYS_EAGER
Will Kahn-Greene [Sat, 21 May 2011 00:20:33 +0000 (20:20 -0400)]
Moves virtualenv instructions to a place far far away
But seriously, moved them to the stop-gap wiki:
https://gitorious.org/mediagoblin/pages/HackingWithVirtualenv
Christopher Allan Webber [Sat, 21 May 2011 00:12:44 +0000 (19:12 -0500)]
This check is redundant now that it's handled by the decorator.
Christopher Allan Webber [Sat, 21 May 2011 00:12:32 +0000 (19:12 -0500)]
Make sure that a MediaEntry does belong to this appropriate user in
the decorator. (Thanks Elrond)
Christopher Allan Webber [Fri, 20 May 2011 23:49:04 +0000 (18:49 -0500)]
Now you can set CELERY_ALWAYS_EAGER environment variable so that you
don't have to run celeryd at the same time.
This should make Elrond happy ;)
Christopher Allan Webber [Fri, 20 May 2011 23:16:10 +0000 (18:16 -0500)]
Added a url_for_self method for generating mediaentry links
This allows for optionally making the url based off of slugs or ids
Christopher Allan Webber [Fri, 20 May 2011 22:48:43 +0000 (17:48 -0500)]
Cosmetic changes: removed an unused import, stripped some trailing whitespace.
Christopher Allan Webber [Fri, 20 May 2011 22:47:36 +0000 (17:47 -0500)]
MediaEntry slugs usable in URLs, & decorator that grabs media from the request
Christopher Allan Webber [Fri, 20 May 2011 22:37:50 +0000 (17:37 -0500)]
Adjusting spacing a little bit
Christopher Allan Webber [Fri, 20 May 2011 22:36:29 +0000 (17:36 -0500)]
pass in page number in uses_pagination view via keyword argument so ordering doesn't matter.
Christopher Allan Webber [Fri, 20 May 2011 03:46:18 +0000 (22:46 -0500)]
I think 30 is a good default number of items per page.