1596 Commits

Author SHA1 Message Date
Jef van Schendel
20659de234 Add CC0 license header to Sphinx MediaGoblin theme (mg.css) 2012-01-13 17:38:20 +01:00
Elrond
02db7e0a83 Add MediaFile table and related infrastructure.
- This adds a new SQL table field type for path tuples.
  They're stored as '/' separated unicode strings.

- Uses it to implement a MediaFile table.

- Add relationship and proxy fields on MediaEntry to give a
  nice media_files "view" there.

- Let the converter fill the MediaFile.
2012-01-11 12:19:03 +01:00
Elrond
0ab21f981a Dot-Notation: Some random places 2012-01-11 11:42:26 +01:00
Elrond
cb7ae1e433 Fix url_for_self mixup
Move changes from mongo/models:url_for_self back into
mixin:url_for_self.
2012-01-11 11:16:35 +01:00
Christopher Allan Webber
73079ac4b8 Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Conflicts:
	mediagoblin/db/mongo/models.py
2012-01-10 08:12:30 -06:00
Michele Azzolari
1df68a3524 Fixed #724 and added extra infos to the atom feed (author uri and links to the html version of each entry) 2012-01-10 08:10:53 -06:00
Joar Wandborg
914b8bcde3 Added check for request.user to media.html attachment-related conditional 2012-01-10 13:12:14 +01:00
Elrond
c2d6792ddb Test Suite: Enable attachments, add failing test
attachments are an optional part. But it doesn't hurt to
enable them in the test suite at all.

Also (with enabled attachmemtns) the main media view fails,
if one isn't logged in (joar found it!).  So add a simple
(currently failing) test for this.
2012-01-10 12:52:01 +01:00
Elrond
1dc7f28d24 Fix reset.css reference and drop link to video-js.css
1. reset.css was moved to /css/extlib/ some time ago.
   So update the staticdirect link to it.

2. We don't have video-js.css (any more?). Drop link to it.
2012-01-09 14:39:54 +01:00
Elrond
1b876ac2ea Warn about unknown staticdirect paths.
Use pkg_resource to check for the existence of any files
referenced by staticdirect. If they don't exist, warn about
this.

This might raise false warnings in the future for more
advanced setups.
2012-01-09 14:39:54 +01:00
Elrond
7cbbf3e75b Create a default logging config
paste uses paste.ini to configure python's logging module.

Until now, there was NO config, not even a useful default
one. This means: any messages went away unseen.
Not good.

The new default logs everything to stderr at level INFO and
higher. Maybe not the best, but a good starting point.
2012-01-09 14:39:16 +01:00
Elrond
f42e49c3ad Add DB Mixin classes and use them
A bunch of functions on the db objects are really more like
"utility functions": They could live outside the classes
and be called "by hand" passing the appropiate reference.
They usually only use the public API of the object and
rarely use database related stuff.

Goals:
- First, simple: Share the code with the SQL objects, so
  that the code doesn't need to be duplicated.
- Second, it might unclutter the db models and make them
  more into "model only" stuff.
- Doesn't really hurt.
2012-01-08 21:55:46 +01:00
Christopher Allan Webber
bcd50908d2 Committing extracted and compiled translations 2012-01-07 13:48:12 -06:00
Christopher Allan Webber
3a4d8b9713 Committing present MediaGoblin translations before pushing extracted messages 2012-01-07 13:47:33 -06:00
Jef van Schendel
0788e48c0e Increase docs sidebar width 2012-01-07 00:04:38 +01:00
Jef van Schendel
242509239f New docs logo, small css changes 2012-01-06 23:58:43 +01:00
Jef van Schendel
b957cba0cb First push with new style (includes css file, logo image, fonts) 2012-01-06 19:56:50 +01:00
Jef van Schendel
7646e695bf Fix div breaking in user.html; add media query bits 2012-01-06 13:44:00 +01:00
Jef van Schendel
173999a7e4 Resize image below 660px width 2012-01-06 13:34:25 +01:00
Jef van Schendel
7945cd21ba * Rename mediagoblin_header, mediagoblin_body, mediagoblin_footer, mediagoblin_header_right, mediagoblin_logo
* Add html5shiv for older browsers
* Small size fix (940px instead of 960pgx)
2012-01-05 23:36:16 +01:00
Jef van Schendel
a91e4e07e7 Add closing bracket so the whole thing doesn't break down 2012-01-05 22:46:21 +01:00
Jef van Schendel
ee0b9ea282 Remove last 960.gs leftover; fix classes for edit forms 2012-01-05 21:52:28 +01:00
Jef van Schendel
d2fce291b5 Fix merge conflicts 2012-01-05 21:42:56 +01:00
Jef van Schendel
7df9f45c32 Several changes for mobile layout 2012-01-05 21:36:24 +01:00
Jef van Schendel
34b4090cbf Always show 'Change account settings' link 2012-01-05 15:58:03 +01:00
Elrond
b48abba303 Fix Unit Tests for new password changing 2012-01-05 14:54:03 +01:00
Elrond
49af00e491 Make show-password-js work for change password too
The show password js depends on the password field to have
an id of "password". So give it a proper id.

Also fixed the label generation for the case of field.name
and field.id being different.
2012-01-05 14:47:15 +01:00
Elrond
4a24500aa4 Fix more StrictUndefined issues 2012-01-05 14:46:27 +01:00
Jef van Schendel
1c53f98c09 Add change-account-settings link to user.html 2012-01-05 00:18:29 +01:00
Jef van Schendel
a473deda9a Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin 2012-01-05 00:17:51 +01:00
Jef van Schendel
c8071fa591 Create edit_account.html 2012-01-05 00:17:45 +01:00
Elrond
f1cdd278e7 f691: Use StrictUndefined for templates and fix some issues
References to undefined variables in templates were
silently ignored/converted to None/empty strings. This
makes coding lazy stuff easy, but it makes catching typos
harder.
(It would have catched one of the SQL things earlier!)

But on the other hand it might make the current templates
error out everywhere. In fact, early testing has shown two
instances, that errored out. Those are fixed with this
commit too.

If this turns out to make things more complex and useless
than actually solving any problems, it can easily be
dropped again.
2012-01-04 23:56:16 +01:00
Elrond
6a59a8abd4 Import MigrationManager from mongo in mongo backend.
Inside the mongo db backend, use the mongo
MigrationManager. This is hopefully the last reference to
the generic MigrationManager reference on db.util.
2012-01-04 22:31:52 +01:00
Jef van Schendel
9c196287ad Add Markdown for submit page, edit page, profile edit page; thus fixing ticket #690 2012-01-04 17:48:16 +01:00
Elrond
8545cfc97d Dot-Notation for MediaEntry.queued_media_file 2012-01-04 11:57:39 +01:00
Elrond
049284b1da Dot-Notation for MediaEntry.state 2012-01-04 11:57:39 +01:00
Elrond
228c4470f4 Dot-Notation for MediaEntry.media_files 2012-01-04 11:57:39 +01:00
Elrond
010fe2d71b sql convert: Use more library functions
1. Use the new setup_connection_and_db_from_config in the
   sql backend.

2. Use sql and mongo specific functions wherever
   appropiate instead of the generic "db.X" one. This makes
   the converter more indepedent of the current backend
   choice.
2012-01-01 23:51:14 +01:00
Jef van Schendel
ada0642e5a Seperate jQuery bit that was still in media.html 2012-01-01 22:58:32 +01:00
Elrond
445d811043 Fix unit tests for new forget password flow
After changing the password, the login page is now shown.
It contains a message.  (we can't test for that easily
currently.  There is a bug open on this problem.)

At least for the login page being shown now.
2012-01-01 19:20:38 +01:00
Jef van Schendel
35149b1124 Remove fp_changed_success.html, use log in page + notification message instead 2012-01-01 19:13:23 +01:00
Jef van Schendel
d8db95e4b7 Remove fp_email_sent.html and refs to it 2012-01-01 19:00:56 +01:00
Elrond
415077a743 Factor out check_db_migrations_current
When initializing the database connection the current mongo
based setup checked for new migrations and warned about
them. This was mongo specific so factor'd it out into a
more generic check_db_migrations_current function in the
mongo backend.

Also created a dummy one in the sql backend.
2012-01-01 18:36:42 +01:00
Jef van Schendel
f5d837fe4a Forgot this one. Also disable horizontal resize for the bio field 2012-01-01 18:14:39 +01:00
Jef van Schendel
ce86b1d5af Remove border-bottom from media_specs 2012-01-01 18:12:18 +01:00
Jef van Schendel
7fc782bb6d Disable horizontal resize for text areas. 2012-01-01 18:11:39 +01:00
Joar Wandborg
4601c30c2e Fixed submission error handling and broken tests
- Fixed broken test_auth test
- Fixed error handling on submission, it now raises the exception
  if it is not explicitly relevant to file submission.
2011-12-31 22:57:08 +01:00
Elrond
eab23e38d0 Merge remote branch 'remotes/joar/tests'
* remotes/joar/tests:
  Fixed broken confirm_password test
2011-12-31 21:57:51 +01:00
Joar Wandborg
a246ccca69 ASCII media type support & fix a bug in file submission error handling
* Added ASCII media processing
* Added ASCII media display
* Added ASCII media type

Rebased from Joar Wandborg's ascii art branch (squashed to remove the
commits borrowing code of dubious license)

Fixed a bug in file submission error handling:
 - Moved file-extension condition out of loop (what did it do there?)
 - Updated file submission tests
 - Changed error handling in file submission, should now report more
   than absolutely necessary.
2011-12-31 10:32:52 -06:00
Jef van Schendel
992e4f8032 Change forgotten password process: different redirect, added/changed messages 2011-12-30 21:29:15 +01:00