Christopher Allan Webber [Mon, 25 Apr 2011 01:57:38 +0000 (20:57 -0500)]
Actually call setup_celery_from_config when launching from paste.
Also changed **kw to **app_config, which is more useful of a variable
name.
Christopher Allan Webber [Mon, 25 Apr 2011 01:55:02 +0000 (20:55 -0500)]
Commit dummy_settings_module, of course.
Christopher Allan Webber [Sun, 24 Apr 2011 23:47:23 +0000 (18:47 -0500)]
setup_celery_from_config tool. Haven't tried if it works, but looks right...
Christopher Allan Webber [Sun, 24 Apr 2011 19:48:55 +0000 (14:48 -0500)]
Make certain bits of info accessable as global variables from anywhere
Christopher Allan Webber [Sun, 24 Apr 2011 15:04:53 +0000 (10:04 -0500)]
Time to require celery!
Christopher Allan Webber [Sat, 23 Apr 2011 19:13:33 +0000 (14:13 -0500)]
Properly require files when users submit
Christopher Allan Webber [Sat, 23 Apr 2011 18:29:15 +0000 (13:29 -0500)]
Submission of image works :)
/me pours some sparkling grape juice
Christopher Allan Webber [Sat, 23 Apr 2011 18:15:09 +0000 (13:15 -0500)]
Enclose queue_file writing in with statement so that it's closed correctly.
Christopher Allan Webber [Sat, 23 Apr 2011 18:06:27 +0000 (13:06 -0500)]
A stupid success view.
Christopher Allan Webber [Sat, 23 Apr 2011 17:56:32 +0000 (12:56 -0500)]
Adding the hidden next field to the login page so we actually do redirect
Christopher Allan Webber [Sat, 23 Apr 2011 17:56:01 +0000 (12:56 -0500)]
submit_start written in a way that, by golly, you'd think maybe it'd work
Christopher Allan Webber [Sat, 23 Apr 2011 17:54:11 +0000 (12:54 -0500)]
Probably better to request.POST.get?
Christopher Allan Webber [Sat, 23 Apr 2011 16:30:20 +0000 (11:30 -0500)]
we should check for request.user['status'] not request.user['session'], clearly.
Christopher Allan Webber [Sat, 23 Apr 2011 15:51:55 +0000 (10:51 -0500)]
making state for MediaEntry objects, also adding attributes:
- media_files
- attachment_files
- queue_files
- thumbnail_file
Christopher Allan Webber [Sat, 23 Apr 2011 14:03:25 +0000 (09:03 -0500)]
Adding a space for custom validators, though we haven't used it yet :)
Christopher Allan Webber [Sat, 23 Apr 2011 13:52:23 +0000 (08:52 -0500)]
Give User a status, also add uploader user field to MediaEntry
Christopher Allan Webber [Sat, 23 Apr 2011 13:46:02 +0000 (08:46 -0500)]
Provide a next= url when we require logging in
Will Kahn-Greene [Sat, 23 Apr 2011 02:08:49 +0000 (22:08 -0400)]
Fixes CC0 language
CC0 is a waiver and not a license, so this fixes all the language
accordingly.
Will Kahn-Greene [Sat, 23 Apr 2011 02:02:55 +0000 (22:02 -0400)]
Updates contributing howto
* lots of changes to the contributing howto from Matt, Greg, Will, and
Chris
* adds references between the contributing howto and other chapters
* adds a design decision regarding copyright assignment
Will Kahn-Greene [Wed, 20 Apr 2011 02:42:08 +0000 (22:42 -0400)]
License/copyright changes
* changes COPYING to explain licensing for all of GNU MediaGoblin
* adds design decision regarding why we picked the licensing we did
* adds CC0 and AGPLv3 texts
* removes licensing bits from hacking howto--we should put that somewhere
else
Christopher Allan Webber [Wed, 20 Apr 2011 00:16:56 +0000 (19:16 -0500)]
util.setup_user_in_request must be called last
Christopher Allan Webber [Wed, 20 Apr 2011 00:11:38 +0000 (19:11 -0500)]
Use request.app.db, not request.db
Christopher Allan Webber [Wed, 20 Apr 2011 00:05:58 +0000 (19:05 -0500)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Wed, 20 Apr 2011 00:05:46 +0000 (19:05 -0500)]
Start of the submit view, but not much there quite yet.
Christopher Allan Webber [Wed, 20 Apr 2011 00:04:22 +0000 (19:04 -0500)]
New requires_active_login decorator!
Will Kahn-Greene [Tue, 19 Apr 2011 16:37:20 +0000 (12:37 -0400)]
Hackinghowto tweaks
* adjusts some whitespace and formatting
* tweaks language and section breakdown
Christopher Allan Webber [Sun, 17 Apr 2011 21:45:36 +0000 (16:45 -0500)]
Makes most sense for [server:main] to be at bottom
Christopher Allan Webber [Sun, 17 Apr 2011 21:36:01 +0000 (16:36 -0500)]
Move the request.app stuff to the same area
Christopher Allan Webber [Sun, 17 Apr 2011 21:30:51 +0000 (16:30 -0500)]
Add the staticdirector stuff to the mediagoblin wsgi app.
Christopher Allan Webber [Sun, 17 Apr 2011 19:05:56 +0000 (14:05 -0500)]
How to run the server
Christopher Allan Webber [Sun, 17 Apr 2011 19:04:07 +0000 (14:04 -0500)]
Updated hackinghowto.rst with info on how to use the new buildout
stuff.
Christopher Allan Webber [Sun, 17 Apr 2011 18:44:10 +0000 (13:44 -0500)]
Buildout script which creates user_dev directory and necessary
subdirectories for the user.
Christopher Allan Webber [Sun, 17 Apr 2011 17:45:38 +0000 (12:45 -0500)]
Merge branch 'master' into buildout
Christopher Allan Webber [Sun, 17 Apr 2011 17:44:39 +0000 (12:44 -0500)]
Base MediaGoblin paste deploy config file.
Should do what's necessary, work out of the box, be deployable.
Christopher Allan Webber [Sun, 17 Apr 2011 17:42:48 +0000 (12:42 -0500)]
Buildout'ifying things.
- added buildout's bootstrap.py
- added buildout.cfg
- adjustments to .gitignore.
Christopher Allan Webber [Sun, 17 Apr 2011 15:36:46 +0000 (10:36 -0500)]
Actually set up the storage systems
Christopher Allan Webber [Sun, 17 Apr 2011 15:26:52 +0000 (10:26 -0500)]
Reorganization of storage.py.
Ordering: Errors, Storage interface / implementation, utils.
Christopher Allan Webber [Sun, 17 Apr 2011 15:24:36 +0000 (10:24 -0500)]
storage.storage_system_from_paste_config() utility, w/ tests
Christopher Allan Webber [Sun, 17 Apr 2011 14:43:03 +0000 (09:43 -0500)]
Moved app.load_controller -> util.import_component and added tests.
Christopher Allan Webber [Sun, 17 Apr 2011 14:30:10 +0000 (09:30 -0500)]
documentation for get_jinja_env
Christopher Allan Webber [Sun, 17 Apr 2011 14:18:12 +0000 (09:18 -0500)]
Encourage storage systems to passively accept extraneous keyword
arguments w/ **kwargs.
Also did that for BasicFileStorage.
Christopher Allan Webber [Sat, 16 Apr 2011 17:47:15 +0000 (12:47 -0500)]
Test for BasicFileStorage.file_url()
Christopher Allan Webber [Sat, 16 Apr 2011 17:46:58 +0000 (12:46 -0500)]
Import urlparse! Duh. I should remember to turn flymake-mode on.
Christopher Allan Webber [Sat, 16 Apr 2011 16:03:32 +0000 (11:03 -0500)]
Tests for BasicFileStorage.delete_file()
Christopher Allan Webber [Sat, 16 Apr 2011 16:00:53 +0000 (11:00 -0500)]
Tests for BasicFileStorage.get_file()
Christopher Allan Webber [Sat, 16 Apr 2011 15:59:23 +0000 (10:59 -0500)]
"if not os.path.exists(directory)", not "if not os.path.exists('directory')"
Christopher Allan Webber [Sat, 16 Apr 2011 15:27:03 +0000 (10:27 -0500)]
when running get_unique_filepath, clean_listy_filepath from the get-go
Christopher Allan Webber [Sat, 16 Apr 2011 14:36:36 +0000 (09:36 -0500)]
Added delete_file, url_for_file methods to BasicFileStorage
Christopher Allan Webber [Fri, 15 Apr 2011 13:15:13 +0000 (08:15 -0500)]
Ignore the docs/_build directory.
Will Kahn-Greene [Fri, 15 Apr 2011 02:28:02 +0000 (22:28 -0400)]
Overhauls TOC of manual
This work is based on discussion and etherpadding (is that a verb) on
April 14th between Deb, Greg, Karen, Will, and Chris.
It was an epic collaborative sprint.
Will Kahn-Greene [Wed, 13 Apr 2011 14:21:06 +0000 (10:21 -0400)]
Adds license/copyright headers to jinja2 templates.
Will Kahn-Greene [Wed, 13 Apr 2011 14:13:35 +0000 (10:13 -0400)]
Clarifies licensing for the project.
Will Kahn-Greene [Wed, 13 Apr 2011 14:04:30 +0000 (10:04 -0400)]
Changes Mediagoblin -> MediaGoblin.
Will Kahn-Greene [Wed, 13 Apr 2011 02:36:19 +0000 (22:36 -0400)]
Adds documentation.
* wrote up some basic bits of a hacking howto
* added a better deployment howto stub
Will Kahn-Greene [Wed, 13 Apr 2011 02:35:48 +0000 (22:35 -0400)]
Adds license/copyright header.
Will Kahn-Greene [Tue, 12 Apr 2011 23:56:04 +0000 (19:56 -0400)]
Fixes docs.
* fixes some typos
* tweaks some language issues that occured because I took Chris'
stuff out of the context of the original READMEish structure
* ditches installation for deploymenthowto and hackinghowto
Matt Lee [Mon, 11 Apr 2011 19:18:41 +0000 (15:18 -0400)]
Adding a file for testing of CIA bot
Christopher Allan Webber [Mon, 11 Apr 2011 13:39:23 +0000 (08:39 -0500)]
Started the workflow document. Currently just mockups. Soon: more techy info.
Christopher Allan Webber [Sun, 10 Apr 2011 22:03:23 +0000 (17:03 -0500)]
get_file() implementation for BasicFileStorage
Christopher Allan Webber [Sun, 10 Apr 2011 21:51:25 +0000 (16:51 -0500)]
Test BasicFileStorage.get_unique_filepath()
Christopher Allan Webber [Sun, 10 Apr 2011 21:50:52 +0000 (16:50 -0500)]
We should import uuid, because we use it!
Christopher Allan Webber [Sun, 10 Apr 2011 21:44:47 +0000 (16:44 -0500)]
get_unique_filepath not get_unique_filename!
Christopher Allan Webber [Sun, 10 Apr 2011 21:23:55 +0000 (16:23 -0500)]
Unit tests for BasicFileStorage.file_exists()
Christopher Allan Webber [Sun, 10 Apr 2011 20:50:32 +0000 (15:50 -0500)]
Started BasicFileStorage tests. test_basic_storage__resolve_filepath() done.
Also switched to using assert_raises, which is only sane!
Christopher Allan Webber [Sun, 10 Apr 2011 20:04:21 +0000 (15:04 -0500)]
Merge branch 'master' of gitorious.org:mediagoblin/mediagoblin
Christopher Allan Webber [Sun, 10 Apr 2011 20:01:00 +0000 (15:01 -0500)]
Added the url_for_file stub to the interface
Christopher Allan Webber [Sun, 10 Apr 2011 19:57:23 +0000 (14:57 -0500)]
I don't think we need _create_dirs_for_filepath.
Christopher Allan Webber [Sun, 10 Apr 2011 18:38:01 +0000 (13:38 -0500)]
Put down structure of BasicFileStorage, and the ._resolve_filepath() method
Will Kahn-Greene [Sat, 9 Apr 2011 22:43:26 +0000 (18:43 -0400)]
Fleshes out documentation.
use, what their function is, and urls for library documentation
* adds a forward chapter which talks about the documentation
* adds an installation stub
* adds a software stack chapter that covers what libraries are in
* adds a design decisions chapter which covers why we chose the
libraries and architecture
Christopher Allan Webber [Sat, 9 Apr 2011 19:26:41 +0000 (14:26 -0500)]
More documentation on all the core storage API methods
Christopher Allan Webber [Sat, 9 Apr 2011 19:08:07 +0000 (14:08 -0500)]
u'string', but of course ;)
Christopher Allan Webber [Sat, 9 Apr 2011 19:05:44 +0000 (14:05 -0500)]
Actually, we can implement get_unique_filename, which should be the
same across all storage API implementations
Christopher Allan Webber [Sat, 9 Apr 2011 19:02:54 +0000 (14:02 -0500)]
Most of the StorageInterface stubs in place and documented.
Christopher Allan Webber [Sat, 9 Apr 2011 16:45:38 +0000 (11:45 -0500)]
Raise a specific error if a filename component can't be resolved into anything.
Christopher Allan Webber [Sat, 9 Apr 2011 16:41:09 +0000 (11:41 -0500)]
file storage filelist cleaning
Christopher Allan Webber [Sat, 9 Apr 2011 13:11:43 +0000 (08:11 -0500)]
Include werkzeug. We'll need it for werkzeug.util.secure_filename at least.
Christopher Allan Webber [Sat, 9 Apr 2011 13:08:23 +0000 (08:08 -0500)]
Adding staticdirect infrastructure from cc.engine
Will Kahn-Greene [Fri, 8 Apr 2011 00:11:06 +0000 (20:11 -0400)]
Adds Sphinx docs infrastructure.
Christopher Allan Webber [Sun, 3 Apr 2011 23:58:23 +0000 (18:58 -0500)]
Herp derp GPL notice blocks should even be on routing.
Christopher Allan Webber [Sun, 3 Apr 2011 23:56:48 +0000 (18:56 -0500)]
Since we're searching by id, that try: except: was superfluous.
Christopher Allan Webber [Sun, 3 Apr 2011 23:55:55 +0000 (18:55 -0500)]
Functioning request.user, and a functioning greeting for users :)
Christopher Allan Webber [Sun, 3 Apr 2011 23:40:01 +0000 (18:40 -0500)]
This should allow for request.user and show users logged in
... except it's not working?
Christopher Allan Webber [Sun, 3 Apr 2011 23:35:52 +0000 (18:35 -0500)]
We should always have a request.user object, even if None.
Christopher Allan Webber [Sun, 3 Apr 2011 23:34:05 +0000 (18:34 -0500)]
Added setup_user_in_request
Christopher Allan Webber [Sun, 3 Apr 2011 23:32:29 +0000 (18:32 -0500)]
We should use one instead of find_one to really make sure there's only
one such user in the database
Christopher Allan Webber [Sun, 3 Apr 2011 23:28:17 +0000 (18:28 -0500)]
Also handle when there is no such user
Christopher Allan Webber [Sun, 3 Apr 2011 23:23:40 +0000 (18:23 -0500)]
Working logout function
Christopher Allan Webber [Sun, 3 Apr 2011 22:05:30 +0000 (17:05 -0500)]
Logins seem to work.
Christopher Allan Webber [Sun, 3 Apr 2011 21:38:13 +0000 (16:38 -0500)]
Added a check_login command to User
Christopher Allan Webber [Sun, 3 Apr 2011 21:37:36 +0000 (16:37 -0500)]
Use beaker from middleware, it's official.
Christopher Allan Webber [Sun, 3 Apr 2011 21:37:15 +0000 (16:37 -0500)]
Clarified documentation on fake_login_attempt and restored bcrypt import
Christopher Allan Webber [Sun, 3 Apr 2011 21:32:01 +0000 (16:32 -0500)]
starting to write login code
Christopher Allan Webber [Sun, 3 Apr 2011 20:31:16 +0000 (15:31 -0500)]
Added a fake_login_attempt utility.
Christopher Allan Webber [Sun, 3 Apr 2011 20:02:06 +0000 (15:02 -0500)]
Use the passwordfield for password fields, obviously ;o
Christopher Allan Webber [Sun, 3 Apr 2011 19:58:51 +0000 (14:58 -0500)]
Return an HTTPFound, not HTTPTemporaryRedirect
Christopher Allan Webber [Sun, 3 Apr 2011 18:35:18 +0000 (13:35 -0500)]
Registering almost works right :)
Christopher Allan Webber [Sun, 3 Apr 2011 18:35:01 +0000 (13:35 -0500)]
Base mediagoblin template, and register templates
Christopher Allan Webber [Sun, 3 Apr 2011 18:33:45 +0000 (13:33 -0500)]
We should return a unicode object in bcrypt_gen_password_hash
Christopher Allan Webber [Sun, 3 Apr 2011 14:58:35 +0000 (09:58 -0500)]
Put the User object officially in the 'users' document collection
Christopher Allan Webber [Sat, 2 Apr 2011 17:42:07 +0000 (12:42 -0500)]
Also make sure the auth system successfully returns False when login
failboats.