86 Commits

Author SHA1 Message Date
Christopher Allan Webber
e9279f2137 Added new render_template method which will make our lives nicer and
also will be useful for unit testing purposes :)
2011-06-04 16:33:19 -05:00
Christopher Allan Webber
c5678c1ab3 Proper webtest infrastructure... seems to be about right anyway :) 2011-06-04 13:20:48 -05:00
Christopher Allan Webber
50c880ac0f A more explicit version of get_page_url that doesn't use the request
is still an option now ;)
2011-05-22 17:06:11 -05:00
Elrond
538a06e986 Fix doc string of get_page_url() 2011-05-21 17:02:49 +02:00
Elrond
0e84c707cb Give Pagination.get_page_url() a request instead of path and GET
Makes calling Pagination.get_page_url() much simpler.
2011-05-21 16:38:34 +02:00
Christopher Allan Webber
b9e9610bfe I think 30 is a good default number of items per page. 2011-05-19 22:46:18 -05:00
Christopher Allan Webber
dffa0b0983 Another minor formatting change. 2011-05-19 22:44:57 -05:00
Christopher Allan Webber
140e21028b We don't really need to use a \ here so let's not do so. 2011-05-19 22:41:27 -05:00
Christopher Allan Webber
a98d5254cb Adjusting docstrings a bit to my taste. 2011-05-19 22:40:49 -05:00
Christopher Allan Webber
af4d0b5cb0 Merge remote branch 'remotes/hanaku/pagination'
Conflicts:
	mediagoblin/user_pages/views.py
2011-05-19 22:34:57 -05:00
Bernhard Keller
3eb6fc4f2f moved check for correct page values into decorator for view function 2011-05-19 22:52:18 +02:00
Bernhard Keller
44e3e917fb removed request arg from Pagination class
added get_page_url() in Pagination class, to generate proper urls without losing
other get arguments
2011-05-19 20:37:04 +02:00
Bernhard Keller
ca3ca51c5a changed some coding styles and changed the interface for pagination from __call__ to the
__init__, also getting a cursor as input, instead of the query details
2011-05-19 17:24:31 +02:00
Bernhard Keller
ae85ed0f97 added Pagination class, usage description in Pagination,__call__
added pagination.html, object_gallery.html as templates
2011-05-18 17:32:49 +02:00
Elrond
254bc43174 Move ObjectId, DESCENDING to db.util
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.
2011-05-18 11:32:29 +02:00
Aaron Williamson
0546833c6e Generate unique slugs for newly submitted images. 2011-05-13 12:18:52 -04:00
Christopher Allan Webber
376e6ef296 locale rather than target_lang in the get parameters 2011-05-12 23:17:53 -05:00
Christopher Allan Webber
b77eec653d Load gettext, and load it into the template environment 2011-05-12 22:33:30 -05:00
Christopher Allan Webber
0e0e3d9aad Separation between setting up the template env and the template loader
for a glorious future where we have gettext in template context
2011-05-12 15:17:07 -05:00
Christopher Allan Webber
f62ccaac15 Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Conflicts:
	mediagoblin/util.py
2011-05-12 14:59:08 -05:00
Christopher Allan Webber
8b28bee4c1 Added some locale determination tools 2011-05-12 14:57:58 -05:00
Christopher Allan Webber
21919313df Fix the email debug inbox 2011-05-12 14:51:45 -05:00
Christopher Allan Webber
20c834ffe4 Add the jinja2 extension to the jinja loader 2011-05-12 09:18:53 -05:00
Christopher Allan Webber
29f3fb7052 Added an email debug mode which, by default, is enabled 2011-05-07 22:45:06 -05:00
Christopher Allan Webber
61ec968b0d A simple, maybe obvious, docstring for util.send_email() 2011-05-04 08:11:37 -05:00
Christopher Allan Webber
4d4f6050d8 send_email tool and email sending tests 2011-05-04 08:00:08 -05:00
Christopher Allan Webber
6648c52ba8 Use request.app.db, not request.db 2011-04-19 19:11:38 -05:00
Christopher Allan Webber
cb8ea0fe3f Moved app.load_controller -> util.import_component and added tests. 2011-04-17 09:43:03 -05:00
Christopher Allan Webber
904f61c298 documentation for get_jinja_env 2011-04-17 09:30:10 -05:00
Will Kahn-Greene
8e1e744d27 Changes Mediagoblin -> MediaGoblin. 2011-04-13 10:04:30 -04:00
Christopher Allan Webber
c74e1462fe Since we're searching by id, that try: except: was superfluous. 2011-04-03 18:56:48 -05:00
Christopher Allan Webber
59dd5c7e96 Functioning request.user, and a functioning greeting for users :) 2011-04-03 18:55:55 -05:00
Christopher Allan Webber
5d6840a010 We should always have a request.user object, even if None. 2011-04-03 18:35:52 -05:00
Christopher Allan Webber
58dec5efe5 Added setup_user_in_request 2011-04-03 18:34:05 -05:00
Matt Lee
e5572c6077 Added copyright notices 2011-03-27 18:47:23 -04:00
Christopher Allan Webber
31a8ff4288 Initial mediagoblin structure 2010-07-17 11:33:08 -05:00