aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Clarified: don't do this in production!Christopher Allan Webber2011-05-201-1/+2
|
* Added some stuff on how to run CELERY_ALWAYS_EAGERChristopher Allan Webber2011-05-201-0/+10
|
* Moves virtualenv instructions to a place far far awayWill Kahn-Greene2011-05-201-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 Webber2011-05-201-4/+0
|
* Make sure that a MediaEntry does belong to this appropriate user inChristopher Allan Webber2011-05-202-7/+19
| | | | the decorator. (Thanks Elrond)
* Now you can set CELERY_ALWAYS_EAGER environment variable so that youChristopher Allan Webber2011-05-202-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 linksChristopher Allan Webber2011-05-203-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 Webber2011-05-202-2/+2
|
* MediaEntry slugs usable in URLs, & decorator that grabs media from the requestChristopher Allan Webber2011-05-203-10/+31
|
* Adjusting spacing a little bitChristopher Allan Webber2011-05-201-1/+1
|
* pass in page number in uses_pagination view via keyword argument so ordering ↵Christopher Allan Webber2011-05-201-1/+1
| | | | doesn't matter.
* I think 30 is a good default number of items per page.Christopher Allan Webber2011-05-191-1/+3
|
* Another minor formatting change.Christopher Allan Webber2011-05-191-3/+4
|
* One more mild styling tweakChristopher Allan Webber2011-05-191-3/+4
|
* We don't really need to use a \ here so let's not do so.Christopher Allan Webber2011-05-191-2/+2
|
* Adjusting docstrings a bit to my taste.Christopher Allan Webber2011-05-191-5/+7
|
* Reorganizing the uses_pagination decorator a little and having it passChristopher Allan Webber2011-05-192-7/+5
| | | | in the page number to the view
* Merge remote branch 'remotes/hanaku/pagination'Christopher Allan Webber2011-05-197-16/+192
|\ | | | | | | | | Conflicts: mediagoblin/user_pages/views.py
| * moved check for correct page values into decorator for view functionBernhard Keller2011-05-193-8/+28
| |
| * removed request arg from Pagination classBernhard Keller2011-05-195-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 Keller2011-05-194-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 Keller2011-05-186-16/+183
| | | | | | | | added pagination.html, object_gallery.html as templates
* | Factor out most of the database connection into db/open.pyElrond2011-05-194-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).Elrond2011-05-184-11/+4
| |
* | Renaming connect_database to connect_database_from_config and using in ↵Christopher Allan Webber2011-05-183-8/+6
| | | | | | | | from_celery
* | Need to import asint for users who specify ports via config fileChristopher Allan Webber2011-05-181-0/+2
| |
* | Adding copyright headers and explaining why these unused imports are hereChristopher Allan Webber2011-05-182-0/+33
| |
* | Move ObjectId, DESCENDING to db.utilElrond2011-05-185-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.pyElrond2011-05-182-6/+13
| |
* | Move models into new db/ directoryElrond2011-05-185-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 Webber2011-05-161-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 Webber2011-05-161-1/+2
| | | | characters.
* Require that the slug field have only unique values.Christopher Allan Webber2011-05-161-0/+4
|
* Adding the is_admin field now per Elrond's sane request / advice. ;)Christopher Allan Webber2011-05-161-2/+4
|
* ./bin/gmg shell documented in the hackinghowtoChristopher Allan Webber2011-05-161-0/+15
|
* Show images in reverse submit orderSebastian Spaeth2011-05-162-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 imageChristopher Allan Webber2011-05-161-1/+1
|
* ./bin/gmg shell! Should make a lot of peoples' hacking lives easier I ↵Christopher Allan Webber2011-05-152-0/+110
| | | | suspect :)
* Removing the raw string-nessChristopher Allan Webber2011-05-131-1/+1
|
* Removing backup files and preventing them from showing up via .gitignoreJef van Schendel2011-05-1310-369/+2
|
* labels changed to font-weight normal instead of bold, css structure improvedJef van Schendel2011-05-132-9/+21
|
* Added @font-face to cssJef van Schendel2011-05-132-0/+22
|
* Added header to base.htmlJef van Schendel2011-05-134-56/+22
|
* Changed all headers to <h1>Jef van Schendel2011-05-1311-12/+90
|
* Styled buttons for real this timeJef van Schendel2011-05-139-17/+52
|
* Styled input buttonsJef van Schendel2011-05-136-3/+113
|
* Changed base.html back to old versionJef van Schendel2011-05-131-3/+1
|
* Fixing changesJef van Schendel2011-05-1313-5/+307
|
* Minor fomatting fix.Aaron Williamson2011-05-131-1/+1
|
* Generate unique slugs for newly submitted images.Aaron Williamson2011-05-136-2/+37
|