aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* min=0 makes more sense than min=-1Christopher Allan Webber2011-05-121-1/+1
|
* On image submission, do not require title. If none entered, default to filename.Aaron Williamson2011-05-123-5/+7
|
* Merge remote branch 'refs/remotes/dneelyeps/master'Christopher Allan Webber2011-05-125-11/+11
|\
| * Update to previous commitDaniel Neel2011-05-121-1/+1
| | | | | | | | To add an extra comment symbol.
| * Edits to "What's where" diagram in docs/codebase.rstDaniel Neel2011-05-121-5/+5
| | | | | | | | | | Added comment symbols to distinguish comments from directory names. Changed wording a bit on one part.
| * Updated table of contentsDaniel Neel2011-05-121-1/+1
| | | | | | | | Updated TOC to match "Foreward" > "Foreword"
| * Fixed previous broken commitDaniel Neel2011-05-121-0/+46
| | | | | | | | Made a mistake with the last commit, fixed here.
| * Changed "Foreward" to "Foreword"Daniel Neel2011-05-121-46/+0
| | | | | | | | Figured this was a typo. If not, feel free to skip this commit.
| * Fixed a typo in docs/contributinghowto.rstDaniel Neel2011-05-121-1/+1
| | | | | | | | "it'd" > "it's"
| * Fixed another typo in docs/mediagoblin.rstDaniel Neel2011-05-121-1/+1
| | | | | | | | | | "We decide that in this case, that someone would be us!" > "We decided that in this case, that someone would be us!"
| * Fixed a typo in docs/mediagoblin.rstDaniel Neel2011-05-121-1/+1
| | | | | | | | | | "...their data and that measn someone..." > "...their data and that means someone..."
* | locale rather than target_lang in the get parametersChristopher Allan Webber2011-05-121-2/+2
| |
* | Improve user homepageSebastian Spaeth2011-05-122-10/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | 1) Only consider user's with 'status': 'active'. We don't want to display unconfirmed/blocked users, right? 2) Actually query user's media in the view and display on their home page. 3) Throw an error 404 if we don't find a valid user, rather than saying, "User not found" (from within the template). 4) Pass in medias as media_entries to remain compatible with the 'root' page. Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
* | Load gettext, and load it into the template environmentChristopher Allan Webber2011-05-125-6/+44
| |
* | moving mediagoblin.po to a filename that makes senseChristopher Allan Webber2011-05-121-0/+0
| |
* | Separation between setting up the template env and the template loaderChristopher Allan Webber2011-05-122-8/+19
| | | | | | | | for a glorious future where we have gettext in template context