aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Import MigrationManager from mongo in mongo backend.Elrond2012-01-042-2/+2
| | | | | | Inside the mongo db backend, use the mongo MigrationManager. This is hopefully the last reference to the generic MigrationManager reference on db.util.
* Add Markdown for submit page, edit page, profile edit page; thus fixing ↵Jef van Schendel2012-01-044-5/+16
| | | | ticket #690
* Dot-Notation for MediaEntry.queued_media_fileElrond2012-01-043-4/+4
|
* Dot-Notation for MediaEntry.stateElrond2012-01-042-3/+3
|
* Dot-Notation for MediaEntry.media_filesElrond2012-01-0410-16/+16
|
* sql convert: Use more library functionsElrond2012-01-011-11/+9
| | | | | | | | | | 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.
* Seperate jQuery bit that was still in media.htmlJef van Schendel2012-01-012-11/+11
|
* Fix unit tests for new forget password flowElrond2012-01-011-1/+1
| | | | | | | | 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.
* Remove fp_changed_success.html, use log in page + notification message insteadJef van Schendel2012-01-013-33/+6
|
* Remove fp_email_sent.html and refs to itJef van Schendel2012-01-012-32/+0
|
* Factor out check_db_migrations_currentElrond2012-01-014-22/+32
| | | | | | | | | | 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.
* Forgot this one. Also disable horizontal resize for the bio fieldJef van Schendel2012-01-011-1/+1
|
* Remove border-bottom from media_specsJef van Schendel2012-01-011-1/+0
|
* Disable horizontal resize for text areas.Jef van Schendel2012-01-011-1/+6
|
* Fixed submission error handling and broken testsJoar Wandborg2011-12-313-6/+12
| | | | | | - Fixed broken test_auth test - Fixed error handling on submission, it now raises the exception if it is not explicitly relevant to file submission.
* Merge remote branch 'remotes/joar/tests'Elrond2011-12-311-17/+0
|\ | | | | | | | | * remotes/joar/tests: Fixed broken confirm_password test
| * Fixed broken confirm_password testJoar Wandborg2011-12-301-17/+0
| |
* | ASCII media type support & fix a bug in file submission error handlingJoar Wandborg2011-12-3118-11/+7323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | Change forgotten password process: different redirect, added/changed messagesJef van Schendel2011-12-301-8/+16
| |
* | Fix #712: Comment counter always uses pluralJef van Schendel2011-12-301-40/+46
| |
* | Fix #715: On media submit page, "Separate" is misspelledJef van Schendel2011-12-302-2/+2
|/
* Forgot to include the newly created JS fileJef van Schendel2011-12-291-0/+19
|
* Isolate JavaScript; add new show_password.js to forgot-password-page as wellJef van Schendel2011-12-293-28/+8
|
* Finished #485 and worked out bugs: password fields always update, added ↵Jef van Schendel2011-12-292-1/+10
| | | | margins, fixed Chrome width bug, wrapped checkbox in label element
* Add a .save method on the sql db objectsElrond2011-12-291-1/+9
| | | | | | | | This is a shortcut to adding the object to a session (if needed) and giving a commit on the session. In reality, calling code should probably utilize the session on its own and call commit in an appropiate place.
* Support .get(fieldname) on sql db objectsElrond2011-12-291-0/+3
| | | | | | Some parts of the code like to call .get("somefield") on the db objects. It's easy to support this on sqlalchemy based objects, so lets do it.
* Fix "bin/gmg migrate" after mongo moveElrond2011-12-281-2/+2
| | | | | | | When moving most stuff from db to db/mongo, "gmg migrate" was left out. Fix it now!
* Show --log-file option in lazyserver help.Elrond2011-12-281-1/+1
|
* SQL Model: Add relationship propertiesElrond2011-12-281-0/+5
| | | | | | MediaEntry now has a get_uploader (property) loading the appropiate User object for the MediaEntry (and caches it). MediaComment has the same for author as get_author.
* SQL Model: Forgot MediaEntry.state fieldElrond2011-12-282-1/+2
| | | | | | | | While creating the new SQL model, the "state" field of MediaEntry was left out. Currently using a plain unicode string for it. Maybe should use sqlalchemy.types.Enum?
* Implement _id proxy on sql objects (on User for now)Elrond2011-12-281-0/+14
| | | | | | | | So that the old code can access the primary key still as "._id". Quite simple Python Descriptor thing. Very generic.
* Turn media.get_uploader into a propertyElrond2011-12-277-13/+14
| | | | | | | sqlalchemy gives autoloading (hopefully caching) link to other objects as properties. So turn get_uploader on the current mongo based stuff into a property to ease transition.
* Use media.url_for_self instead of calling urlgen directlyElrond2011-12-272-12/+6
| | | | | | | | | Replace urlgen('ID', user=media.get_uploader().username, media=media.*) by media.url_for_self(urlgen) in a few places. It's just a lot nicer!
* Move verification key generation to viewElrond2011-12-272-2/+1
| | | | | | | | Instead of creating the email verication key on the db model as a default for the field, create it in the registration view. Now all verification key generation is only in auth/views.py!
* Translate one stringElrond2011-12-251-1/+5
| | | | | | "There doesn't seem to be any media here yet..." is now translated also here (it's already in the list from another place).
* Replace media.get_uploader()._id by media.uploaderElrond2011-12-242-4/+4
| | | | | | media.get_uploader()._id loads a complete user object without actually needing it, because media.uploader already has the id!
* Improve .one() by using sqlalchemy's .one()Elrond2011-12-241-3/+1
|
* Add search level one() methodElrond2011-12-241-0/+13
| | | | And create a _fix_query_dict which converts '_id' to 'id'.
* Turn MediaComment's author() into get_author propertyElrond2011-12-232-2/+3
| | | | | | | | | 1) MediaComment's author method conflicts with the author field. So rename it to get_author. 2) Turn it from a normal function into a python property. That means you call it by ".get_author" not by ".get_author()". This is exactly what sqlalchemy gives us free of charge.
* added translation tags to html5 wwarningKaren Rustad2011-12-231-2/+6
|
* Added a 'you don't have HTML5 so this video will not work' warning using ↵Karen Rustad2011-12-232-0/+13
| | | | just the inherent properties of the <video> tag (and some css for style)
* Note reported bug in workaroundElrond2011-12-211-0/+1
| | | | | So that the workaround can eventually be removed, note the URL for the relevant bug in a comment.
* Workaround for Routes/urlgen bug.Elrond2011-12-211-0/+4
| | | | | | | | | | | | This is relevant for fcgi: Some servers (cherokee for example) put "HTTP":"off" in the environ. And the following code in urlgen breaks on this: if environ.get('HTTPS') or environ.get('wsgi.url_scheme') == 'https' \ or environ.get('HTTP_X_FORWARDED_PROTO') == 'https': hostinfo['protocol'] = 'https' workaround is to remove HTTPS:off from the environ.
* Merge remote branch 'remotes/joar/webfinger'Elrond2011-12-206-0/+225
|\ | | | | | | | | | | | | | | | | | | * remotes/joar/webfinger: Added references to docstring in mediagoblin.webfinger Removed mediagoblin.tools.feed which was accidentally included Polishing the webfinger implementation webfinger fully compliant with webfinger.org! Still *preliminary* solution. Changed some thngs to be compatible with webfinger.org, still *very preliminary* Added *very preliminary* support for webfinger
| * Added references to docstring in mediagoblin.webfingerJoar Wandborg2011-12-202-0/+13
| | | | | | | | and mediagoblin.webfinger.views [references mediagoblin.webfinger]
| * Removed mediagoblin.tools.feed which was accidentally includedJoar Wandborg2011-12-201-527/+0
| |
| * Polishing the webfinger implementationJoar Wandborg2011-12-204-30/+623
| | | | | | | | | | | | | | - Changed quotes in the templates from " to ' - Changed all link generation to use request.urlgen - Moved xrd links data generation from template to view - Added parsing of the account URI using urlparse
| * webfinger fully compliant with webfinger.org! Still *preliminary* solution.Joar Wandborg2011-12-151-1/+1
| |
| * Changed some thngs to be compatible with webfinger.org, still *very preliminary*Joar Wandborg2011-12-152-2/+5
| |
| * Added *very preliminary* support for webfingerJoar Wandborg2011-12-156-0/+143
| |