223 Commits

Author SHA1 Message Date
Christopher Allan Webber
20c834ffe4 Add the jinja2 extension to the jinja loader 2011-05-12 09:18:53 -05:00
Christopher Allan Webber
829d50f350 Fixing tyop in README... thanks Daniel Neel!
Also clarifying that our public alpha may be in October, which is what
we've said elsewhere.
2011-05-12 07:17:02 -05:00
Christopher Allan Webber
1504acfddf Right, we don't need the exported HTML either. 2011-05-12 07:15:11 -05:00
Christopher Allan Webber
6557056bca I don't believe we need READMEish.org anymore. 2011-05-12 07:14:15 -05:00
Sebastian Spaeth
d483b9b473 Enforce using local dateutil with buildout
Natty has a too old system dateutil, but buildout will put the system
modules in the search path first. By adding the dateutil spec to the
'egg' requirement, we put the dateutil inclusion of the local egg first
and natty compiles (buildouts) fine.

Part of http://bugs.foocorp.net/issues/308

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-11 16:23:53 -05:00
Christopher Allan Webber
7222955fba URLs should end in trailing slashes, or slash redirection doesn't work 2011-05-11 10:26:15 -05:00
Christopher Allan Webber
80c1802440 Removing this horrifying submission test stuff from way back when 2011-05-10 16:35:34 -05:00
Christopher Allan Webber
f624940844 404 appropriately here 2011-05-10 16:25:04 -05:00
Christopher Allan Webber
2eef8761d8 Indenting these templates because I'm pedantic about tag sections
having their content indented :)
2011-05-10 16:24:51 -05:00
Sebastian Spaeth
9a16e16ffa Implement simple media detail page
This patch creates a "homepage" for each media. The URL is
/u/<username>/m/<objID>.

On it we display the media and some details. It is ugly and lacking some
stuff but it works. The only thing left to do is to throw an 404 error
if the <username> and the media uploader don't correspond.

- Also create a user "home page" while at it. It is merely a place
  holder for now though.

- Link from the entries on the homepage, to the media pages, so we
actually find them.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-10 16:01:43 -05:00
Christopher Allan Webber
9d97145fe4 Merge remote branch 'spaetz/fix_description' 2011-05-08 20:20:19 -05:00
Sebastian Spaeth
ec61f09492 Fix description submission in form handling
When we submitted an image the description would remain empty. THis was
because of some weird typo in form handling. Get an attribute with
.get('description') and not with .get(['description']). With this patch,
descriptions actually go into the database.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-09 00:23:12 +02:00
Christopher Allan Webber
cd847fd346 Asbool the email debug mode option 2011-05-08 10:07:39 -05:00
Sebastian Spaeth
34900cce8c Don't escape the verification URL
In the verification email we would output the URL using HTML encoded
text, so that e.g. & -> &amp;. We don't want that and we know the URL
won't contain user contributed content, so it is safe to turn off HTML
encoding here.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-08 15:46:35 +02:00
Christopher Allan Webber
a1eb1f6051 Only convert db port if it's there and use asint to do it (better errors if failing) 2011-05-08 07:16:50 -05:00
Christopher Allan Webber
0ce26c370c Merge remote branch 'refs/remotes/spaetz/master' 2011-05-08 07:11:57 -05:00
Christopher Allan Webber
eef100ada5 mgoblin_section.get, not app_config.get (doh)
My name's Chris Webber and I ignore pyflakes warnings.
2011-05-08 07:07:08 -05:00
Sebastian Spaeth
19f8a24e41 app.py: Need to pass in port number as 'int'
When we configured an explicite db_port in mediagoblin.ini, paster would
crash claiming that the port number must be an int. Given that we don't
have a "get_conf_int()" function or something similar (yet?), simply
convert the port number to int before passing it to the mongo Connection
instance.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2011-05-08 11:12:38 +02:00
Christopher Allan Webber
a5b06bb075 Removing unused sys import from setup.py 2011-05-07 22:45:30 -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
3eae207c54 [to_email] rather than list(to_email) which makes a nasty series like ['e','m','a','i','l'] 2011-05-07 22:44:37 -05:00
Christopher Allan Webber
9fa51f07af Merge remote branch 'refs/remotes/jwandborg/master' 2011-05-07 20:05:28 -05:00
Joar Wandborg
8a6a81bcaa Updated default sender address
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 02:03:11 +02:00
Joar Wandborg
07a3a69cd4 Added verification email template
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 02:01:26 +02:00
Joar Wandborg
4942b63711 Removed unused variable
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 01:58:58 +02:00
Joar Wandborg
4c093e85c7 Made changes according to http://bugs.foocorp.net/issues/271#note-7
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-08 00:55:57 +02:00
Christopher Allan Webber
7a5ddb45dc Reversing buildout and virtualenv instructions because I think
virtualenv is easier if you don't know how this stuff works, and it
works.
2011-05-07 13:58:36 -05:00
Joar Wandborg
a083786dcf Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin 2011-05-07 18:07:04 +02:00
Will Kahn-Greene
27057b42fb Removes the git requirement--that's redundant 2011-05-07 09:57:58 -04:00
Will Kahn-Greene
2bae877e67 Wraps the virtualenv wrapper line 2011-05-07 09:57:37 -04:00
Will Kahn-Greene
2704f7a6cb Tweaks the "if mongodb isn't working" troubleshooting section 2011-05-07 09:57:02 -04:00
Christopher Allan Webber
7501000353 Be sure to read the install instructions! 2011-05-07 08:54:53 -05:00
Will Kahn-Greene
1220e775b9 Fixes headers in hacking howto docs 2011-05-07 09:42:01 -04:00
Will Kahn-Greene
4564da2210 Overhauls hacking howto
* reworks virtualenv section to be way better
* reworks buildout section to mirror virtualenv section
* reworks other sections that depend on which development environment
  building method you chose
2011-05-07 08:49:36 -04:00
Joar Wandborg
801df16215 Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin 2011-05-07 13:46:30 +02:00
Will Kahn-Greene
52be418afe First pass at adding virtualenv instructions. 2011-05-06 22:06:36 -04:00
Will Kahn-Greene
8842779b4e Fixes a link in the docs 2011-05-06 21:54:10 -04:00
Joar Wandborg
88bcdcd7d2 Merge branch 'master' of http://git.gitorious.org/mediagoblin/mediagoblin 2011-05-07 03:11:36 +02:00
Joar Wandborg
5c42a82c5a Added functionality to send out verification email upon successful registration
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-07 03:08:09 +02:00
Joar Wandborg
b16ebe0e13 Changed the method used to generate uuids for verification_key, this one works, thanks paroneayea
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-07 02:30:35 +02:00
Joar Wandborg
85e1bc316e mediagoblin.util.send_email now supports both list() and string() in the 'to_addrs' parameter
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-07 00:57:39 +02:00
Joar Wandborg
67e63926f9 Fixed bug in models.py:User that caused all users created by the same python process to have the same verification_key value
Signed-off-by: Joar Wandborg <git@wandborg.com>
2011-05-07 00:55:32 +02:00
Christopher Allan Webber
1c424df505 Instructions on running celeryd 2011-05-06 10:06:57 -05:00
Christopher Allan Webber
4c1e752a08 Actually display submitted stuff on the mainpage. Crappy, but working! 2011-05-06 10:01:26 -05:00
Christopher Allan Webber
12b6ecac0f Erk, we didn't save the state right before 2011-05-06 10:01:11 -05:00
Christopher Allan Webber
fa7f9c6184 Process media! Successfully! 2011-05-06 09:37:24 -05:00
Christopher Allan Webber
1dddd4e913 A completely evil environment destroying script. 2011-05-06 07:44:54 -05:00
Christopher Allan Webber
1b734c4d67 It doesn't necessarily have to be bash. 2011-05-06 06:56:26 -05:00
Christopher Allan Webber
30d216aedc Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin 2011-05-06 06:55:20 -05:00
Christopher Allan Webber
4509880386 Made a link to the script wiping tool feature request ticket 2011-05-06 06:54:57 -05:00