Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clarified: don't do this in production! | Christopher Allan Webber | 2011-05-20 | 1 | -1/+2 |
| | |||||
* | Added some stuff on how to run CELERY_ALWAYS_EAGER | Christopher Allan Webber | 2011-05-20 | 1 | -0/+10 |
| | |||||
* | Moves virtualenv instructions to a place far far away | Will Kahn-Greene | 2011-05-20 | 1 | -121/+15 |
| | | | | | But seriously, moved them to the stop-gap wiki: https://gitorious.org/mediagoblin/pages/HackingWithVirtualenv | ||||
* | This check is redundant now that it's handled by the decorator. | Christopher Allan Webber | 2011-05-20 | 1 | -4/+0 |
| | |||||
* | Make sure that a MediaEntry does belong to this appropriate user in | Christopher Allan Webber | 2011-05-20 | 2 | -7/+19 |
| | | | | the decorator. (Thanks Elrond) | ||||
* | Now you can set CELERY_ALWAYS_EAGER environment variable so that you | Christopher Allan Webber | 2011-05-20 | 2 | -1/+12 |
| | | | | | | don't have to run celeryd at the same time. This should make Elrond happy ;) | ||||
* | Added a url_for_self method for generating mediaentry links | Christopher Allan Webber | 2011-05-20 | 3 | -4/+20 |
| | | | | This allows for optionally making the url based off of slugs or ids | ||||
* | Cosmetic changes: removed an unused import, stripped some trailing whitespace. | Christopher Allan Webber | 2011-05-20 | 2 | -2/+2 |
| | |||||
* | MediaEntry slugs usable in URLs, & decorator that grabs media from the request | Christopher Allan Webber | 2011-05-20 | 3 | -10/+31 |
| | |||||
* | Adjusting spacing a little bit | Christopher Allan Webber | 2011-05-20 | 1 | -1/+1 |
| | |||||
* | pass in page number in uses_pagination view via keyword argument so ordering ↵ | Christopher Allan Webber | 2011-05-20 | 1 | -1/+1 |
| | | | | doesn't matter. | ||||
* | I think 30 is a good default number of items per page. | Christopher Allan Webber | 2011-05-19 | 1 | -1/+3 |
| | |||||
* | Another minor formatting change. | Christopher Allan Webber | 2011-05-19 | 1 | -3/+4 |
| | |||||
* | One more mild styling tweak | Christopher Allan Webber | 2011-05-19 | 1 | -3/+4 |
| | |||||
* | We don't really need to use a \ here so let's not do so. | Christopher Allan Webber | 2011-05-19 | 1 | -2/+2 |
| | |||||
* | Adjusting docstrings a bit to my taste. | Christopher Allan Webber | 2011-05-19 | 1 | -5/+7 |
| | |||||
* | Reorganizing the uses_pagination decorator a little and having it pass | Christopher Allan Webber | 2011-05-19 | 2 | -7/+5 |
| | | | | in the page number to the view | ||||
* | Merge remote branch 'remotes/hanaku/pagination' | Christopher Allan Webber | 2011-05-19 | 7 | -16/+192 |
|\ | | | | | | | | | Conflicts: mediagoblin/user_pages/views.py | ||||
| * | moved check for correct page values into decorator for view function | Bernhard Keller | 2011-05-19 | 3 | -8/+28 |
| | | |||||
| * | removed request arg from Pagination class | Bernhard Keller | 2011-05-19 | 5 | -46/+61 |
| | | | | | | | | | | added get_page_url() in Pagination class, to generate proper urls without losing other get arguments | ||||
| * | changed some coding styles and changed the interface for pagination from ↵ | Bernhard Keller | 2011-05-19 | 4 | -87/+62 |
| | | | | | | | | | | | | __call__ to the __init__, also getting a cursor as input, instead of the query details | ||||
| * | added Pagination class, usage description in Pagination,__call__ | Bernhard Keller | 2011-05-18 | 6 | -16/+183 |
| | | | | | | | | added pagination.html, object_gallery.html as templates | ||||
* | | Factor out most of the database connection into db/open.py | Elrond | 2011-05-19 | 4 | -26/+44 |
| | | | | | | | | | | | | | | | | I needed to split the db connection/opening into open.py, due to an import loop: - util.py needs db/util.py:ObjectId - db/util.py would need db/models.py - db/models.py needs util.py:slugify | ||||
* | | Clean unused imports (found by pyflakes). | Elrond | 2011-05-18 | 4 | -11/+4 |
| | | |||||
* | | Renaming connect_database to connect_database_from_config and using in ↵ | Christopher Allan Webber | 2011-05-18 | 3 | -8/+6 |
| | | | | | | | | from_celery | ||||
* | | Need to import asint for users who specify ports via config file | Christopher Allan Webber | 2011-05-18 | 1 | -0/+2 |
| | | |||||
* | | Adding copyright headers and explaining why these unused imports are here | Christopher Allan Webber | 2011-05-18 | 2 | -0/+33 |
| | | |||||
* | | Move ObjectId, DESCENDING to db.util | Elrond | 2011-05-18 | 5 | -8/+8 |
| | | | | | | | | | | | | We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this. | ||||
* | | Move "connect to database" into db/util.py | Elrond | 2011-05-18 | 2 | -6/+13 |
| | | |||||
* | | Move models into new db/ directory | Elrond | 2011-05-18 | 5 | -3/+5 |
|/ | | | | | | | | 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. | ||||
* | Actually we only need unique slugs per uploader. | Christopher Allan Webber | 2011-05-16 | 1 | -3/+5 |
| | | | | But I want to fix http://bugs.foocorp.net/issues/340 first. | ||||
* | My name's Chris Webber and I'm pedantic about lines not going over 80 ↵ | Christopher Allan Webber | 2011-05-16 | 1 | -1/+2 |
| | | | | characters. | ||||
* | Require that the slug field have only unique values. | Christopher Allan Webber | 2011-05-16 | 1 | -0/+4 |
| | |||||
* | Adding the is_admin field now per Elrond's sane request / advice. ;) | Christopher Allan Webber | 2011-05-16 | 1 | -2/+4 |
| | |||||
* | ./bin/gmg shell documented in the hackinghowto | Christopher Allan Webber | 2011-05-16 | 1 | -0/+15 |
| | |||||
* | Show images in reverse submit order | Sebastian Spaeth | 2011-05-16 | 2 | -2/+4 |
| | | | | | | | Fixes bug #327. Just do a .sort('created', DESCENDING) on Media when showing them to show the latest first. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de> | ||||
* | Properly linking to the background image | Christopher Allan Webber | 2011-05-16 | 1 | -1/+1 |
| | |||||
* | ./bin/gmg shell! Should make a lot of peoples' hacking lives easier I ↵ | Christopher Allan Webber | 2011-05-15 | 2 | -0/+110 |
| | | | | suspect :) | ||||
* | Removing the raw string-ness | Christopher Allan Webber | 2011-05-13 | 1 | -1/+1 |
| | |||||
* | Removing backup files and preventing them from showing up via .gitignore | Jef van Schendel | 2011-05-13 | 10 | -369/+2 |
| | |||||
* | labels changed to font-weight normal instead of bold, css structure improved | Jef van Schendel | 2011-05-13 | 2 | -9/+21 |
| | |||||
* | Added @font-face to css | Jef van Schendel | 2011-05-13 | 2 | -0/+22 |
| | |||||
* | Added header to base.html | Jef van Schendel | 2011-05-13 | 4 | -56/+22 |
| | |||||
* | Changed all headers to <h1> | Jef van Schendel | 2011-05-13 | 11 | -12/+90 |
| | |||||
* | Styled buttons for real this time | Jef van Schendel | 2011-05-13 | 9 | -17/+52 |
| | |||||
* | Styled input buttons | Jef van Schendel | 2011-05-13 | 6 | -3/+113 |
| | |||||
* | Changed base.html back to old version | Jef van Schendel | 2011-05-13 | 1 | -3/+1 |
| | |||||
* | Fixing changes | Jef van Schendel | 2011-05-13 | 13 | -5/+307 |
| | |||||
* | Minor fomatting fix. | Aaron Williamson | 2011-05-13 | 1 | -1/+1 |
| | |||||
* | Generate unique slugs for newly submitted images. | Aaron Williamson | 2011-05-13 | 6 | -2/+37 |
| |